Block chain data storage method with guide function
Technical Field
The invention relates to the technical field of data storage, in particular to a block chain data storage method with a guiding function.
Background
A blockchain is a chain of blocks one by one. Each block holds certain information which is linked in a chain according to the time sequence of their respective generation. This chain is kept in all servers, and the entire blockchain is secure as long as one server in the entire system can work. These servers, referred to as nodes in the blockchain system, provide storage space and computational support for the entire blockchain system. Upon retrieval, a blockchain data storage method, system, apparatus and readable storage medium, as typically found in prior art blockchains, such as publication number CN112463753B, is disclosed, the method comprising: the block file system acquires a target block sequence number and target block content of a target block; the block file system comprises a catalog area and a data area, wherein the size of each cluster in the data area is the same as the block size of a block chain, and a target mapping relation between a target block sequence number and a target cluster address is recorded in the catalog area; and writing the content of the target block into the data area sequentially according to the target cluster address. In the method, the block file system can directly write the content of the target block into the data area in sequence after determining the target cluster address in the process of storing the block, and the catalog and the data can be written in sequence, so that a large amount of searching time and data writing time can be saved, and the data writing speed in the block chain can be increased.
The existing blockchain data storage is mostly displayed in a catalog mode, the guiding mode is single, so that a user needs to consume a large amount of time when searching data, the single guiding mode is inconvenient to meet the data searching requirements of different users, and the existing equipment needs to be improved aiming at the problems.
Disclosure of Invention
The invention aims to provide a blockchain data storage method with a guiding function, which solves the problems that the prior blockchain data storage in the background art is mostly displayed in a catalog form, the guiding mode is single, so that a user needs to consume a large amount of time when searching data, and the single guiding mode is inconvenient to meet the data searching requirements of different users.
In order to achieve the above purpose, the present invention provides the following technical solutions: a block chain data storage method with a guiding function comprises a block chain and an indexing module, and is characterized in that:
An analysis request module is arranged in the block chain and connected with an acquisition server information module, the acquisition server information module comprises a determination server identification module, a storage address information acquisition module is arranged in the determination server identification module, and the storage address information acquisition module comprises a target server storage module;
The index module is arranged in the target server storage module and comprises an encryption disc, a file thumbnail display module, a voice broadcasting module and a picture identification module, wherein a password sending module is arranged in the encryption disc, and the password sending module comprises a database module and a first typing module.
Preferably, the registration module and the determination server identification module are both arranged in the acquisition server information module, and the registration module is connected with the determination server identification module.
Preferably, the database module includes a first storage module, a second storage module and a custom storage module, and the first storage module, the second storage module and the custom storage module are mapped with the first data area, the second data area and the custom data area respectively.
Preferably, the first data area, the second data area and the custom data area are all connected with a backup module, and the backup module is connected with an external network for real-time backup.
Preferably, the first key-in module comprises a blocking module and a second key-in module, and a prompt message sending module is arranged in the blocking module.
Preferably, the file thumbnail display module comprises a time display module, and the time display module is used for displaying the latest modification time of the data.
Preferably, a playing content display module is arranged in the voice broadcasting module, and a font amplifying module is arranged in the playing content display module.
Preferably, the picture identification module is connected with the encryption disc, and the picture identification module automatically returns to the index module after identification failure.
Preferably, the block chain data storage method with the booting function comprises the following steps:
s1: the staff chooses to enter the blockchain, so that the relevant information can be input into the server information acquisition module by utilizing the analysis request module, the server information acquisition module analyzes the input information and searches the corresponding server identification module, when the corresponding server cannot be found, namely, the corresponding storage server does not exist, the registration module is popped up, the registration can be completed by utilizing the registration module, the server identification module enters after the registration is completed, and then the storage address can be acquired by the storage address information acquisition module and enters the corresponding target server storage module;
S2: the staff can search the target data through the index module in the target server storage module, namely, the staff can select to search according to the self requirements by using different guide modes such as a file thumbnail display module, a voice broadcasting module or a picture recognition module, when a user selects to click to search the data by using the file thumbnail display module, the data in the database is displayed in a reduced graph for the user to check, when the user selects to search the data by using the voice broadcasting module, the broadcasting content display module and the font amplification module can briefly broadcast the data in the database selected by the user click and display amplified captions in the broadcasting process, when the user selects to search the data by using the picture recognition module, the picture recognition module can scan and recognize the uploaded picture, and when related contents are not recognized, the data can be returned to the index module, so that the data can be conveniently searched by using other guide modules in the index module;
S3: after the data is found, a user needs to input a corresponding password through an encryption disc to open a corresponding database module, when the password sending module detects that the password is incorrect, the first keying-in module is controlled to clear the password, the user is required to input the password again, and when the password input times reach the set times, the blocking module edits the situation into information through the prompt information sending module and sends the information to a designated mailbox;
s4: when the password is input correctly, a user can select to open the first storage module, the second storage module or the custom storage module to enter the corresponding first data area, the second data area and the custom data area according to the data type to search the data, and meanwhile, the backup module is convenient for backing up the data in the first data area, the second data area and the custom data area, so that the data loss is prevented conveniently.
Compared with the prior art, the invention has the beneficial effects that: the blockchain data storage method with the booting function,
(1) The invention can effectively solve the problems that the prior blockchain data is mostly stored in a directory mode for displaying, the guiding mode is single, so that a user needs to consume a large amount of time when searching data, and the single guiding mode is inconvenient to meet the data searching requirements of different users;
(2) The invention can effectively solve the problem of single guiding mode when searching the data by the voice broadcasting module, the voice broadcasting module can broadcast the brief introduction of the related catalogue on the existing catalog guiding mode, namely, when a user searches the data by the voice broadcasting module, the display module and the font amplifying module can play the brief introduction of the corresponding data according to the click selection of the user, and the related characters are matched in the broadcasting process, and the characters are amplified, thereby being convenient for the user with vision problems to quickly search the file;
(3) According to the invention, the problem of single guiding mode during searching the data can be effectively solved through the picture identification module, and when a user selects to use the picture identification module to search the data, the picture identification module scans and identifies the picture uploaded by the user, so that the data can be conveniently and rapidly found, and meanwhile, the guiding mode of the block chain can be further enriched;
(4) The invention can effectively solve the problem of lower privacy of the blockchain information by the cooperation of the encryption disc, the blocking module and the prompt information sending module, the encryption disc can encrypt the database, when the number of times of inputting the password by operating the encryption disc reaches a set value, the blocking module can prevent a user from inputting the password, and the prompt information sending module can send the prompt information to a trusted mailbox, thereby being convenient for greatly improving the privacy of the device, avoiding illegal access and simultaneously preventing the information in the database from being leaked.
Drawings
FIG. 1 is a schematic flow chart of a main system of the present invention;
FIG. 2 is a schematic diagram of a main boot type workflow of the indexing module of the present invention;
FIG. 3 is a schematic diagram of a control relationship workflow between an index module, a first storage module, a second storage module, a custom storage module, a first data area, a second data area, a custom data area, and a backup module according to the present invention;
FIG. 4 is a schematic diagram of a control relationship workflow between an indexing module, a file thumbnail display module and a voice broadcast module according to the present invention;
FIG. 5 is a schematic diagram of a relational workflow controlled between an indexing module and a picture recognition module according to the present invention;
FIG. 6 is a schematic diagram of a control relationship workflow between a first key-in module, a block module, a second key-in module, and a prompt sending module according to the present invention.
In the figure: 1. a blockchain; 2. an analysis request module; 3. the method comprises the steps of obtaining a server information module; 4. determining a server identification module; 5. a registration module; 6. a memory address information obtaining module; 7. a target server storage module; 8. an indexing module; 9. a first storage module; 10. a second storage module; 11. a custom storage module; 12. a first data area; 13. a second data area; 14. a custom data area; 15. a backup module; 16. an encryption disc; 17. a password sending module; 18. a database module; 19. a first key-in module; 20. a blocking module; 21. a second key-in module; 22. a prompt information sending module; 23. a file thumbnail display module; 24. a voice broadcasting module; 25. a picture identification module; 26. a time display module; 27. a play content display module; 28. and a font amplifying module.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1-6, the present invention provides a technical solution: a block chain data storage method with a booting function,
Example 1
As shown in fig. 1, 2 and 3, an analysis request module 2 is provided in the blockchain 1, and the analysis request module 2 is connected with an acquisition server information module 3, the acquisition server information module 3 includes a determination server identification module 4, and a storage address information obtaining module 6 is provided in the determination server identification module 4, and the storage address information obtaining module 6 includes a target server storage module 7.
In a further embodiment, the registration module 5 and the determination server identification module 4 are both arranged in the acquisition server information module 3, and the registration module 5 is connected to the determination server identification module 4.
As shown in fig. 2,3, 4, 5 and 6, the index module 8 is disposed in the target server storage module 7, and the index module 8 includes an encryption disc 16, a file thumbnail display module 23, a voice broadcast module 24 and a picture recognition module 25, a password transmission module 17 is disposed in the encryption disc 16, and the password transmission module 17 includes a database module 18 and a first key-in module 19.
In a further embodiment, the database module 18 includes a first storage module 9, a second storage module 10 and a custom storage module 11, and the first storage module 9, the second storage module 10 and the custom storage module 11 are mapped with the first data area 12, the second data area 13 and the custom data area 14, respectively.
Specifically, the staff member can use the first data area 12, the second data area 13 and the custom data area 14 to store different types of data, so that the staff member can conveniently search the data later and can conveniently manage the data.
In a further embodiment, the first data area 12, the second data area 13 and the custom data area 14 are all connected to the backup module 15, and the backup module 15 is connected to the external network for real-time backup.
In particular, the backup module 15 facilitates real-time backup of data, and also facilitates ensuring that data can be restored normally after accidental deletion or modification of data.
In a further embodiment, the first key-in module 19 includes a blocking module 20 and a second key-in module 21, and a prompt message sending module 22 is disposed in the blocking module 20.
In a further embodiment, the file thumbnail display module 23 includes a time display module 26, and the time display module 26 is configured to display the latest modification time of the data.
In a further embodiment, the voice broadcasting module 24 is provided with a playing content displaying module 27, and the playing content displaying module 27 is provided with a font amplifying module 28.
In a further embodiment, the picture recognition module 25 is connected to the encryption disc 16, and the picture recognition module 25 automatically returns to the indexing module 8 after the recognition failure.
Specifically, the user can search the data by using the guiding modes such as the file thumbnail display module 23 or the voice broadcasting module 24 at the indexing module 8.
Example two
This embodiment is a further description of the above embodiment, and it should be understood that this embodiment includes all the foregoing technical features and is further specifically described.
Specifically, during actual work, firstly, a worker selects to enter the blockchain 1, so that relevant information can be input by using the analysis request module 2 to enter the acquisition server information module 3, the acquisition server information module 3 analyzes the input information and searches for the corresponding determination server identification module 4, when the corresponding server is not found, namely, the corresponding storage server is not found, the registration module 5 is popped up, so that registration can be completed by using the registration module 5, after registration is completed or a matched server is found, the corresponding server identification module 4 is entered, and then a storage address can be acquired by the storage address information acquisition module 6 and the corresponding target server storage module 7 is entered;
Then, staff can search target data through the index module 8 in the target server storage module 7, and can select to search according to the own requirements by using different guiding modes such as the file thumbnail display module 23, the voice broadcasting module 24 or the picture recognition module 25, when a user selects to search the data by using the file thumbnail display module 23, the data in the database is displayed in a reduced outline, the method is mainly aimed at searching the graphic file for the user to check, when the user selects to search the data by using the voice broadcasting module 24, the broadcasting content display module 27 and the font amplification module 28 play the data in the database selected by clicking by the user, and display amplified captions in the broadcasting process, the method is mainly aimed at searching by the user with vision problems, when the user selects to search the data by using the picture recognition module 25, the picture recognition module 25 scans and recognizes the uploaded pictures, the guiding mode is suitable for searching various types of files, and when the related content cannot be recognized, the method is returned to the index module 8, so that the other guiding modules in the index module 8 can be used for searching the data conveniently;
Next, the user needs to input the corresponding password through the ejected encryption disc 16 to open the corresponding database module 18, when the password sending module 17 detects that the password is incorrect, the first typing module 19 is controlled to empty the password, and the user is required to re-input the password until the password input times reach the set times, and the blocking module 20 edits the situation into information through the prompt information sending module 22 and sends the information to the designated mailbox;
finally, when the password is correctly input, the user can select to open the first storage module 9, the second storage module 10 or the custom storage module 11 according to the data type to enter the corresponding first data area 12, the second data area 13 and the custom data area 14 for searching the data, and meanwhile, the backup module 15 is convenient for backing up the data in the first data area 12, the second data area 13 and the custom data area 14, thereby being convenient for preventing the data from losing.
Although the present invention has been described with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described, or equivalents may be substituted for elements thereof, and any modifications, equivalents, improvements and changes may be made without departing from the spirit and principles of the present invention.