An information storage method, apparatus, device, and storage medium

By first storing it in the database during the information storage process and switching to the blockchain to respond to the request after the blockchain is confirmed successfully, the problem of the database being tampered with and the business module being inaccessible during the information storage process is solved, and information is secure and efficient.

CN116361281BActive Publication Date: 2025-08-01AISINO CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111619417.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2025-08-01
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

During the information storage process, the business module cannot access the information in the blockchain, resulting in inefficient business processing, and at the same time, the database storage information is at risk of being tampered with.

Method used

By receiving the information to be stored sent by the terminal device, preprocessing and storing it in the database, and responding to the query request through the database before the blockchain is stored successfully. After the storage is successful, the operation request is responded to the blockchain to ensure the security and accessibility of the information.

Benefits of technology

It realizes the risk of database information being tampered with during the process of storing information to the blockchain, and at the same time solves the problem that business modules cannot access blockchain information, improving business processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116361281B_ABST
    Figure CN116361281B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides an information storage method, apparatus, device, and storage medium, which relate to the field of blockchain technology. The method includes: after an information storage system receives information to be stored sent by a terminal device, preprocesses the information to be stored to obtain target information, and stores the target information in a database. The information storage system sends the target information to the blockchain so that the blockchain stores the target information. Before receiving a storage success message returned by the blockchain, in response to a query request for the target information through the database, and after receiving the storage success message returned by the blockchain, in response to an operation request for the target information through the blockchain. In the present application, the target information is stored in the blockchain, which avoids the risk of being tampered with when the target information is stored in the database. At the same time, during the process of storing the target information in the blockchain, the problem that the target information cannot be accessed in the blockchain when the target information is stored is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of blockchain technology, and in particular, to a method, device, equipment, and storage medium for information storage. Background Art

[0002] With the development of the Internet, different industry institutions are carrying out informatization construction and deployment. Currently, when the server stores the collected information, two information storage methods are often used, namely, the server stores the information in a database, or the server stores the information in a blockchain.

[0003] When the server stores the information in a database, the information in the database is at risk of being tampered with. When the server stores the information in a blockchain, although the risk of information being tampered with in the blockchain is solved, the time taken for the blockchain to store information is relatively long, and during the information storage process, the business module cannot access the information in the blockchain, thus affecting the business processing efficiency. Summary of the Invention

[0004] Embodiments of the present application provide a method, device, equipment, and storage medium for information storage, which are used to solve the problem that the business module cannot access the information in the blockchain during the information storage process.

[0005] On the one hand, embodiments of the present application provide an information storage method, which includes:

[0006] Receiving the information to be stored sent by the terminal device, preprocessing the information to be stored to obtain target information, and storing the target information in the database;

[0007] Sending the target information to the blockchain so that the blockchain stores the target information, where, before receiving the storage success message returned by the blockchain, responding to the query request for the target information through the database; after receiving the storage success message returned by the blockchain, responding to the operation request for the target information through the blockchain.

[0008] Optionally, the preprocessing the information to be stored to obtain target information includes:

[0009] Performing a splitting process on the information to be stored to obtain target information.

[0010] Optionally, after receiving the storage success message returned by the blockchain, it further includes:

[0011] Deleting the target information saved in the database.

[0012] Optionally, before receiving the storage success message returned by the blockchain, responding to a query request for the target information through the database includes:

[0013] Before receiving the storage success message returned by the blockchain, receiving a query request for the target information sent by the terminal device;

[0014] Obtaining query information from the database, integrating the query information to obtain the target information, and sending the target information to the terminal device.

[0015] Optionally, after receiving the storage success message returned by the blockchain, responding to an operation request for the target information through the blockchain includes:

[0016] After receiving the storage success message returned by the blockchain, receiving an operation request for the target information sent by the terminal device;

[0017] Sending an operation request to the blockchain so that the blockchain performs corresponding data operations on the target information to obtain a data operation result;

[0018] Receiving the data operation result sent by the blockchain and sending the data operation result to the terminal device.

[0019] Optionally, before responding to an operation request for the information to be stored through the blockchain, it further includes:

[0020] Determining that the target information saved in the database is consistent with the target information saved in the blockchain.

[0021] Optionally, it further includes:

[0022] If a storage failure message returned by the blockchain is received, sending the storage failure message to the terminal device.

[0023] On the one hand, an embodiment of the present application provides an information storage device, and the device includes:

[0024] A receiving module, configured to receive information to be stored sent by a terminal device, preprocess the information to be stored to obtain target information, and store the target information in a database;

[0025] An operation module, configured to send the target information to the blockchain so that the blockchain stores the target information, wherein before receiving the storage success message returned by the blockchain, responding to a query request for the target information through the database; after receiving the storage success message returned by the blockchain, responding to an operation request for the target information through the blockchain.

[0026] Optionally, the receiving module is specifically configured to:

[0027] Split the information to be stored to obtain target information.

[0028] Optionally, it further includes a deletion module, and the deletion module is specifically configured to:

[0029] After receiving the storage success message returned by the blockchain, delete the target information saved in the database.

[0030] Optionally, the operation module is specifically configured to:

[0031] Before receiving the storage success message returned by the blockchain, receive a query request for the target information sent by the terminal device;

[0032] Obtain query information from the database, integrate the query information to obtain the target information, and send the target information to the terminal device.

[0033] Optionally, the operation module is specifically configured to:

[0034] After receiving the storage success message returned by the blockchain, receive an operation request for the target information sent by the terminal device;

[0035] Send an operation request to the blockchain so that the blockchain performs corresponding data operations on the target information to obtain a data operation result;

[0036] Receive the data operation result sent by the blockchain and send the data operation result to the terminal device.

[0037] Optionally, the operation module is further configured to:

[0038] Before the blockchain responds to the operation request for the information to be stored, determine that the target information saved in the database is consistent with the target information saved in the blockchain.

[0039] Optionally, the operation module is further configured to:

[0040] If a storage failure message returned by the blockchain is received, send a storage failure message to the terminal device.

[0041] On the one hand, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the above information storage method are implemented.

[0042] On the one hand, an embodiment of the present application provides a computer-readable storage medium storing a computer program executable by a computer device. When the program runs on the computer device, the computer device is caused to execute the steps of the above information storage method.

[0043] In an embodiment of the present application, after the information storage system receives the information to be stored sent by the terminal device, it preprocesses the information to be stored to obtain target information, and stores the target information in the database. The information storage system sends the target information to the blockchain so that the blockchain stores the target information. Before receiving the storage success message returned by the blockchain, the information storage system responds to the query request for the target information through the database, and after receiving the storage success message returned by the blockchain, responds to the operation request for the target information through the blockchain. In the present application, the target information is stored in the blockchain, avoiding the risk of being tampered with when the target information is stored in the database. At the same time, during the process of storing the target information in the blockchain, the database responds to the query request for the target information, solving the problem that when the target information is stored, the target information in the blockchain cannot be accessed, thereby affecting the business processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0045] Figure 1 It is a schematic diagram of a system architecture provided by an embodiment of the present application;

[0046] Figure 2 It is a schematic flowchart of an information storage method provided by an embodiment of the present application;

[0047] Figure 3 It is a schematic flowchart of an information storage method provided by an embodiment of the present application;

[0048] Figure 4 It is a schematic diagram of the structure of an information storage system provided by an embodiment of the present application;

[0049] Figure 5 It is a schematic diagram of the structure of an information storage device provided by an embodiment of the present application;

[0050] Figure 6 It is a schematic diagram of the structure of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0051] In order to make the objectives, technical solutions and beneficial effects of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0052] Reference Figure 1 , which is a system architecture diagram applicable to an embodiment of the present application. The system architecture at least includes a terminal device 101, an information storage system 102, and a blockchain 103.

[0053] The terminal device 101 is installed with a target application for information storage. The application can be a pre-installed client, a web version application, a small program embedded in other applications, etc. The terminal device 101 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto.

[0054] The information storage system 102 and the blockchain 103 are the back-end servers of the target application and provide services for the target application. The information storage system 102 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms.

[0055] The blockchain 103 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms.

[0056] The terminal device 101 and the information storage system 102 can be directly or indirectly connected through wired or wireless communication methods, and the present application does not limit this here. The information storage system 102 and the blockchain ၁၀၃ can be directly or indirectly connected through wired or wireless communication methods, and the present application does not limit this here.

[0057] In response to the user's information storage operation, the terminal device 101 sends an information storage instruction to the information storage system 102. The information storage system 102 receives the information to be stored sent by the terminal device, preprocesses the information to be stored to obtain target information, and stores the target information in the database in the information storage system 102; sends the information to be stored to the blockchain 103 so that the blockchain 103 stores the information to be stored. Among them, before the information storage system 102 receives the storage success message returned by the blockchain 103, it responds to the query request for the information to be stored through the database; after the information storage system 102 receives the storage success message returned by the blockchain 103, it responds to the operation request for the information to be stored through the blockchain 103.

[0058] Based on Figure 1 the above system architecture diagram, an embodiment of the present application provides a process of an information storage method, as Figure 2 shown. This method is executed by Figure 1 the information storage system 102 shown as follows:

[0059] Step S201: Receive the information to be stored sent by the terminal device, preprocess the information to be stored to obtain target information, and store the target information in the database.

[0060] Specifically, the information storage system performs splitting processing on the information to be stored to obtain target information.

[0061] For example, the information to be stored is shown in Table 1, including two groups of information. The number in the first group of information is 01, the user name is Zhang San, and the affiliated department is Department 1. The number in the second group of information is 02, the user name is Li Si, and the affiliated department is Department 2.

[0062] Table 1.

[0063] Number Username Department 01 Zhang San Department 1 02 Li Si Department 2

[0064] The information storage system performs splitting processing on the information to be stored to obtain two groups of target information, as shown in Table 2 and Table 3 respectively.

[0065] Table 2.

[0066] Number Username Department 01 Zhang San Department 1

[0067] Table 3.

[0068] Number Username Department 02 Li Si Department 2

[0069] Step S202: Send the target information to the blockchain so that the blockchain stores the target information.

[0070] Specifically, the information storage system can send the target information to the database and the blockchain simultaneously; it can also send the target information to the database first and then to the blockchain; or it can send the target information to the blockchain first and then to the database.

[0071] Step S203: Determine whether a storage success message returned by the blockchain is received. If so, execute Step S205; otherwise, execute Step S204.

[0072] Step S204: Respond to the query request for the target information through the database.

[0073] Specifically, receive the query request for the target information sent by the terminal device, obtain the query information from the database, integrate the query information to obtain the target information, and send the target information to the terminal device.

[0074] For example, the query request is to query the target information corresponding to number 01. After the information storage system receives this query request, it obtains the query information corresponding to number 01 from the database, which are 01, Zhang San, and Department 1 respectively. Integrate the above query information to obtain the target information, that is, number: 01, user name: Zhang San, affiliated department: Department 1, and send this information to the terminal device.

[0075] Step S205: Respond to the operation request for the target information through the blockchain.

[0076] Specifically, after the information storage system receives the storage success message returned by the blockchain, it simultaneously deletes the target information saved in the database.

[0077] The operation request includes an addition request, a deletion request, a modification request, and a query request.

[0078] Receive the operation request for the target information sent by the terminal device, send the operation request to the blockchain so that the blockchain performs corresponding data operations on the target information to obtain a data operation result; receive the data operation result sent by the blockchain and send the data operation result to the terminal device.

[0079] For example, when the operation request is a deletion request, the information storage system receives the deletion request for the target information sent by the terminal device and sends this deletion request to the blockchain. After the blockchain performs the corresponding deletion operation on the target information, it obtains a data deletion result. The information storage system receives the data deletion result sent by the blockchain and sends this data deletion result to the terminal device.

[0080] When the operation request is a query request, the information storage system receives the query request for the target information sent by the terminal device, and sends the query request to the blockchain. After the blockchain performs the corresponding query operation on the target information, it obtains the data query result. The information storage system receives the data query result sent by the blockchain and sends the data query result to the terminal device.

[0081] In the embodiment of the present application, after the information storage system receives the information to be stored sent by the terminal device, it preprocesses the information to be stored to obtain the target information, and stores the target information in the database. The information storage system sends the target information to the blockchain so that the blockchain stores the target information. Before the information storage system receives the storage success message returned by the blockchain, it responds to the query request for the target information through the database. After receiving the storage success message returned by the blockchain, it responds to the operation request for the target information through the blockchain. In the present application, the target information is stored in the blockchain, which avoids the risk of being tampered with when the target information is stored in the database. At the same time, during the process of storing the target information in the blockchain, the database responds to the query request for the target information, which solves the problem that when the target information is stored, the target information in the blockchain cannot be accessed, thus affecting the business processing efficiency.

[0082] Optionally, since there may be a risk of tampering with the target information stored in the database, before step S205 above, the information storage system needs to determine whether the target information stored in the database is consistent with the target information stored in the blockchain. If they are consistent, step S205 is executed; otherwise, an alarm message is sent to the terminal device.

[0083] Optionally, in step S203 above, if the information storage system receives a storage failure message returned by the blockchain, it sends a storage failure message to the terminal device.

[0084] To better explain the embodiments of the present application, the following takes a specific embodiment scenario as an example to introduce the process of an information storage method provided by the embodiments of the present application, as Figure 3 shown:

[0085] Step S301, receive the information to be stored sent by the terminal device, preprocess the information to be stored to obtain the target information, and store the target information in the database.

[0086] Step S302, send the target information to the blockchain so that the blockchain stores the target information.

[0087] Step S303, determine whether a storage success message returned by the blockchain is received. If so, execute step S307; otherwise, execute step S304.

[0088] Step S304: Determine whether a storage failure message returned by the blockchain is received. If so, execute Step S305; otherwise, execute Step S306.

[0089] Step S305: Send a storage failure message to the terminal device.

[0090] Step S306: Receive a query request for the target information sent by the terminal device, obtain query information from the database, integrate the query information to obtain the target information, and send the target information to the terminal device.

[0091] Step S307: Determine whether the target information saved in the database is consistent with the target information saved in the blockchain. If so, execute Step S308; otherwise, execute Step S311.

[0092] Step S308: Delete the target information saved in the database.

[0093] Step S309: Receive an operation request for the target information sent by the terminal device, and send the operation request to the blockchain so that the blockchain performs corresponding data operations on the target information to obtain a data operation result.

[0094] Step S310: Receive the data operation result sent by the blockchain and send the data operation result to the terminal device.

[0095] Step S311: Send an alarm message to the terminal device.

[0096] In the embodiment of the present application, storing the target information in the blockchain avoids the risk of being tampered with when storing the target information in the database. At the same time, during the process of storing the target information in the blockchain, the database responds to the query request for the target information, solving the problem that when storing the target information, the target information in the blockchain cannot be accessed, thus affecting the business processing efficiency. At the same time, after the information storage system receives the storage success message returned by the blockchain, the information storage system deletes the target information saved in the database, effectively avoiding information leakage.

[0097] To better explain the embodiment of the present application, the following describes an information storage method provided by the embodiment of the present application in combination with a specific implementation scenario. This method is executed by Figure 1 the information storage system 102 therein. As Figure 4 shown, it includes a terminal device 101, an information storage system 102, and a blockchain 103. Among them, the system architecture of the information storage system 102 includes a service acquisition module 401, an access and storage service module 402, a monitoring and verification module 403, and a database 404.

[0098] The terminal device 101 sends the information to be stored to the service acquisition module 401. The service acquisition module 401 sends the information to be stored to the access service module 402. The access service module 402 preprocesses the information to be stored to obtain the target information, and stores the target information in the database 404. Meanwhile, the access service module 402 sends the target information to the blockchain 103, and the blockchain 103 stores the target information. The monitoring and verification module 403 monitors the blockchain. Before the monitoring and verification module 403 receives the storage success message returned by the blockchain 103, it responds to the query request for the target information through the database 404; after the monitoring and verification module 403 receives the storage success message returned by the blockchain 103, it responds to the operation request for the target information through the blockchain 103.

[0099] Based on the same technical concept, an embodiment of the present application provides an information storage device, as Figure 5 shown, the information storage device 500 includes:

[0100] A receiving module 501, configured to receive the information to be stored sent by the terminal device, preprocess the information to be stored to obtain the target information, and store the target information in the database;

[0101] An operation module 502, configured to send the target information to the blockchain so that the blockchain stores the target information, wherein before receiving the storage success message returned by the blockchain, it responds to the query request for the target information through the database; after receiving the storage success message returned by the blockchain, it responds to the operation request for the target information through the blockchain.

[0102] Optionally, the receiving module 501 is specifically configured to:

[0103] Perform splitting processing on the information to be stored to obtain the target information.

[0104] Optionally, it further includes a deletion module 503, and the deletion module 503 is specifically configured to:

[0105] After receiving the storage success message returned by the blockchain, delete the target information saved in the database.

[0106] Optionally, the operation module 502 is specifically configured to:

[0107] Before receiving the storage success message returned by the blockchain, receive the query request for the target information sent by the terminal device;

[0108] Retrieve query information from the database, integrate the query information to obtain the target information, and send the target information to the terminal device.

[0109] Optionally, the operation module 502 is specifically configured to:

[0110] After receiving the storage success message returned by the blockchain, receive the operation request for the target information sent by the terminal device;

[0111] Send the operation request to the blockchain so that the blockchain performs corresponding data operations on the target information to obtain a data operation result;

[0112] Receive the data operation result sent by the blockchain and send the data operation result to the terminal device.

[0113] Optionally, the operation module 502 is further configured to:

[0114] Before the blockchain responds to the operation request for the information to be stored, determine that the target information saved in the database is consistent with the target information saved in the blockchain.

[0115] Optionally, the operation module 502 is further configured to:

[0116] If a storage failure message returned by the blockchain is received, send the storage failure message to the terminal device.

[0117] Based on the same technical concept, an embodiment of the present application provides a computer device, which may be a terminal or a server. For example, Figure 6 As shown, it includes at least one processor 601 and a memory 602 connected to the at least one processor. In the embodiment of the present application, the specific connection medium between the processor 601 and the memory 602 is not limited. Figure 6 Taking the example that the processor 601 and the memory 602 are connected by a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0118] In the embodiment of the present application, the memory 602 stores instructions executable by the at least one processor 601. By executing the instructions stored in the memory 602, the at least one processor 601 can execute the steps included in the above information storage method.

[0119] Among them, the processor 601 is the control center of the computer device. It can connect various parts of the computer device through various interfaces and circuits. By running or executing the instructions stored in the memory 602 and calling the data stored in the memory 602, information storage is performed. Optionally, the processor 601 may include one or more processing units. The processor 601 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 601. In some embodiments, the processor 601 and the memory 602 may be implemented on the same chip. In some embodiments, they may also be separately implemented on independent chips.

[0120] The processor 601 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0121] The memory 602, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory 602 can include at least one type of storage medium. For example, it can include flash memory, hard disks, multimedia cards, card-type memories, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memories, magnetic disks, optical disks, and so on. The memory 602 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 602 in the embodiments of the present application can also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data.

[0122] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium storing a computer program executable by a computer device. When the program runs on the computer device, it causes the computer device to execute the steps of the above information storage method.

[0123] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program code.

[0124] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing devices to generate a machine, such that the instructions executed by the processors of the computer or other programmable data processing devices generate for implementing in the process Figure 1 one process or multiple processes and / or blocksFigure 1 devices for the functions specified in one or more boxes.

[0125] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device that implements the functions specified in one Figure 1 process or more processes and / or boxes Figure 1 or more boxes.

[0126] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one Figure 1 process or more processes and / or boxes Figure 1 or more boxes.

[0127] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these changes and modifications.

Claims

1. An information storage method, applied to an information storage system, characterized in that Including: Receiving the information to be stored sent by the terminal device, preprocessing the information to be stored to obtain target information, and storing the target information in the database; Sending the target information to the blockchain so that the blockchain stores the target information. Among them, before receiving the storage success message returned by the blockchain, responding to the query request for the target information through the database; after receiving the storage success message returned by the blockchain, determining that the target information saved in the database is consistent with the target information saved in the blockchain, deleting the target information saved in the database, and responding to the operation request for the target information through the blockchain.

2. The method according to claim 1, wherein The preprocessing of the information to be stored to obtain target information includes: Performing a splitting process on the information to be stored to obtain target information.

3. The method according to claim 1, characterized in that, Before receiving the storage success message returned by the blockchain, responding to the query request for the target information through the database includes: Before receiving the storage success message returned by the blockchain, receiving the query request for the target information sent by the terminal device; Obtaining query information from the database, integrating the query information to obtain the target information, and sending the target information to the terminal device.

4. The method according to claim 1, characterized in that, After receiving the storage success message returned by the blockchain, responding to the operation request for the target information through the blockchain includes: After receiving the storage success message returned by the blockchain, receiving the operation request for the target information sent by the terminal device; Sending an operation request to the blockchain so that the blockchain performs corresponding data operations on the target information to obtain a data operation result; Receiving the data operation result sent by the blockchain and sending the data operation result to the terminal device.

5. The method according to claim 1, characterized in that, It also includes: If receiving the storage failure message returned by the blockchain, sending the storage failure message to the terminal device.

6. An information storage device, characterized in that, Including: A receiving module, configured to receive the information to be stored sent by the terminal device, preprocess the information to be stored to obtain target information, and store the target information in the database; An operation module, configured to send the target information to the blockchain so that the blockchain stores the target information. Among them, before receiving the storage success message returned by the blockchain, responding to the query request for the target information through the database; after receiving the storage success message returned by the blockchain, determining that the target information saved in the database is consistent with the target information saved in the blockchain, deleting the target information saved in the database, and responding to the operation request for the target information through the blockchain.

7. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, It stores a computer program executable by a computer device. When the program runs on the computer device, it causes the computer device to execute the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Distributed file upload method based on cloud storage technology and system

    CN105025053A

  • Database backup method and device and database recovery method and device based on block chain

    CN110413691A