A management method, management device and storage medium for an intelligent service library
Through the integrated data management of the physical business library of the intelligent business library, electronic dynamic password locks and trunk bags of the trunk device, combined with blockchain technology, the problems of high fees and poor data security of the traditional staked model are solved, real-time informatization and traceability are realized, and security and traceability are improved.
Patent Information
- Application Number
- CN202211051714.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-08-30
AI Technical Summary
The traditional custody model of bank branches is high in cost and labor intensity, and the information management of existing smart devices has problems such as poor data security and vulnerability, which cannot meet the needs of smart outlet construction.
Intelligent business library equipment is adopted, including physical business library, electronic dynamic password locks and trunk bags containing radio frequency electronic tags. By obtaining device information and trace data, integrating data is generated and classified and inputting index models are entered, and stored in blockchain nodes to realize real-time informationization and trace management, and use hash computing and index compression to improve security.
Real-time informationization and traceability processing of intelligent business library equipment is realized, the security and traceability of data management are improved, data tampering is prevented, and the needs of smart outlet construction are adapted.
Smart Images

Figure CN115563100B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, and particularly to a management method, a management device and a storage medium for an intelligent service library. Background Art
[0002] The management mode of important items in financial institutions such as bank branches still follows the traditional escort mode. The traditional escort mode has high costs, high labor intensity, and cannot guarantee the business hours of branches, which is not suitable for the construction of intelligent branches. Even if there are intelligent devices for electronic informatization, the information is stored in the mainstream relational database in a traditional way, and the business data also needs to be processed in real time through a supporting information management system. The data security is poor and it is vulnerable to attacks. Once the information management system breaks down, it will endanger the timeliness, authenticity, security, etc. of the business processing of important items. Summary of the Invention
[0003] This application provides a management method, a management device and a storage medium for an intelligent service library, which are used for real-time informatization and real-time traceability of the operations of intelligent service library devices.
[0004] The first aspect of this application provides a management method for an intelligent service library, including:
[0005] Obtain the device information of the intelligent service library device, where the intelligent service library device includes an entity service library, an electronic dynamic password lock and a tail box containing a radio frequency electronic tag. The tail box is stored in the entity service library, and the electronic dynamic password lock is used to lock the entity service library;
[0006] When it is detected that a user operates the intelligent service library device, obtain trace data information;
[0007] Integrate the device information and the trace data information to generate integrated data information;
[0008] Classify the integrated data information according to different operation types to obtain at least two types of integrated data information;
[0009] Input at least two types of the integrated data information into corresponding index models respectively to obtain at least two types of data structures;
[0010] Store the at least two types of data structures in at least two blockchain nodes.
[0011] Optionally, after inputting at least two types of the integrated data information into corresponding index models respectively to obtain at least two types of data structures, the management method further includes:
[0012] Determine at least two index information according to the at least two types of data structures;
[0013] Fill the at least two pieces of index information into an index information list;
[0014] Compare and determine in sequence whether the index information in the same column of adjacent rows is the same according to the arrangement order of the index information in the index information list;
[0015] When the index information in the same column of adjacent rows is the same, compress the same column index information;
[0016] When the column index information in the same column of adjacent rows is different, record the column index information of the same column with different comparison results and its corresponding position information in the adjacent two rows, and compress the column index information of other columns after the same column with different comparison results in the adjacent two rows;
[0017] After the compression processing of the column index information corresponding to each row in the index information list is completed, generate an index array for the index information list according to the column index information obtained after the compression processing.
[0018] Optionally, the respectively obtaining at least two types of data structures by respectively inputting at least two types of the integrated data information into corresponding index models includes:
[0019] Input the first type of integrated data information into a first index model, determine first index information, and determine first transaction data, and perform a hash calculation on the first index information and the first transaction data to obtain a first hash value;
[0020] Assemble the first index information, the first transaction data, and the first hash value to obtain a first type of data structure;
[0021] Input the second type of integrated data information into a second index model, determine second index information, and determine second transaction data, and perform a hash calculation on the second index information and the second transaction data to obtain a second hash value;
[0022] Assemble the second index information, the second transaction data, and the second hash value to obtain a second type of data structure.
[0023] Optionally, after storing the at least two types of data structures in at least two blockchain nodes, the management method further includes:
[0024] Trace back to the first blockchain node according to the first index information to obtain a first type of data structure;
[0025] Trace back to the second blockchain node according to the second index information to obtain a second type of data structure;
[0026] Perform a hash calculation on the first index information and the first transaction data in the first type of data structure to obtain a third hash value;
[0027] Perform a hash calculation on the second index information and the second transaction data in the second type of data structure to obtain a fourth hash value;
[0028] Judge whether the first index information and the first transaction data are tampered with according to the third hash value and the first hash value;
[0029] If the first index information and the first transaction data are not tampered with, the terminal determines a first operation record according to the first type of data structure and generates a first operation record form;
[0030] If the first index information or the first transaction data is tampered with, the terminal performs an anomaly analysis on the first index information or the first transaction data, determines first anomaly data, and repairs the first anomaly data;
[0031] Judge whether the second index information and the second transaction data are tampered with according to the fourth hash value and the second hash value;
[0032] If the second index information and the second transaction data are not tampered with, the terminal determines a second operation record according to the second type of data structure and generates a second operation record form;
[0033] If the second index information or the second transaction data is tampered with, the terminal performs an anomaly analysis on the second index information or the second transaction data, determines second anomaly data, and repairs the second anomaly data.
[0034] Optionally, the judging whether the first index information and the first transaction data are tampered with according to the third hash value and the first hash value includes:
[0035] Judge whether the third hash value is the same as the first hash value;
[0036] If the third hash value is the same as the first hash value, it is determined that the first index information and the first transaction data are not tampered with;
[0037] If the third hash value is not the same as the first hash value, it is determined that the first index information or the first transaction data is tampered with.
[0038] Optionally, the judging whether the second index information and the second transaction data are tampered with according to the fourth hash value and the second hash value includes:
[0039] Judge whether the fourth hash value is the same as the second hash value;
[0040] If the fourth hash value is the same as the second hash value, it is determined that the second index information and the second transaction data have not been tampered with;
[0041] If the fourth hash value is different from the second hash value, it is determined that the second index information or the second transaction data has been tampered with.
[0042] Optionally, the device information includes:
[0043] The device SN information of the entity business library and the affiliated institution information, the lock ID information of the electronic dynamic password lock and the lock activation data information, and the electronic tag number information of the tail box.
[0044] The second aspect of this application provides a management device for an intelligent business library, including:
[0045] A first acquisition unit, configured to acquire device information of an intelligent business library device, where the intelligent business library device includes an entity business library, an electronic dynamic password lock, and a tail box with a radio frequency electronic tag, the tail box is stored in the entity business library, and the electronic dynamic password lock is used to lock the entity business library;
[0046] A second acquisition unit, configured to acquire trace data information when detecting that a user operates the intelligent business library device;
[0047] An integration unit, configured to integrate the device information and the trace data information to generate integrated data information;
[0048] A classification unit, configured to classify the integrated data information according to different operation types to obtain at least two types of integrated data information;
[0049] An input unit, configured to input at least two types of the integrated data information into corresponding index models respectively to obtain at least two types of data structures;
[0050] A storage unit, configured to store the at least two types of data structures in at least two blockchain nodes.
[0051] Optionally, the management device further includes:
[0052] A determination unit, configured to determine at least two index information according to the at least two types of data structures;
[0053] An entry unit, configured to enter the at least two index information into an index information list;
[0054] A first judgment unit, configured to sequentially compare and judge whether the index information in the same column of adjacent rows is the same according to the arrangement order of the index information in the index information list;
[0055] The first compression unit is used to compress the same column index information when the index information in the same column of two adjacent rows is the same;
[0056] The second compression unit is used to record the column index information and its corresponding position information of the same column with different comparison results in the two adjacent rows when the column index information in the same column of two adjacent rows is different, and compress the column index information of other columns after the same column with different comparison results in the two adjacent rows;
[0057] The first generation unit is used to generate an index array for the index information list according to the column index information obtained after the compression process after the compression process of the column index information corresponding to each row in the index information list is completed.
[0058] Optionally, the input unit is specifically used for:
[0059] Input the first type of integrated data information into the first index model to determine the first index information, and determine the first transaction data, and perform a hash calculation on the first index information and the first transaction data to obtain a first hash value;
[0060] Assemble the first index information, the first transaction data, and the first hash value to obtain a first type of data structure;
[0061] Input the second type of integrated data information into the second index model to determine the second index information, and determine the second transaction data, and perform a hash calculation on the second index information and the second transaction data to obtain a second hash value;
[0062] Assemble the second index information, the second transaction data, and the second hash value to obtain a second type of data structure.
[0063] Optionally, the management device further includes:
[0064] The first traceability unit is used to trace the first blockchain node according to the first index information to obtain a first type of data structure;
[0065] The second traceability unit is used to trace the second blockchain node according to the second index information to obtain a second type of data structure;
[0066] The first calculation unit is used to perform a hash calculation on the first index information and the first transaction data in the first type of data structure to obtain a third hash value;
[0067] The second calculation unit is used to perform a hash calculation on the second index information and the second transaction data in the second type of data structure to obtain a fourth hash value;
[0068] A second judgment unit, configured to judge whether the first index information and the first transaction data are tampered with according to the third hash value and the first hash value;
[0069] A second generation unit, configured to, if the first index information and the first transaction data are not tampered with, the terminal determines a first operation record according to the first type of data structure and generates a first operation record form;
[0070] A first analysis unit, configured to, if the first index information or the first transaction data is tampered with, the terminal performs anomaly analysis on the first index information or the first transaction data, determines first anomaly data, and repairs the first anomaly data;
[0071] A third judgment unit, configured to judge whether the second index information and the second transaction data are tampered with according to the fourth hash value and the second hash value;
[0072] A third generation unit, configured to, if the second index information and the second transaction data are not tampered with, the terminal determines a second operation record according to the second type of data structure and generates a second operation record form;
[0073] A second analysis unit, configured to, if the second index information or the second transaction data is tampered with, perform anomaly analysis on the second index information or the second transaction data, determine second anomaly data, and repair the second anomaly data.
[0074] Optionally, the second judgment unit is specifically configured to:
[0075] Judge whether the third hash value is the same as the first hash value;
[0076] If the third hash value is the same as the first hash value, it is determined that the first index information and the first transaction data are not tampered with;
[0077] If the third hash value is not the same as the first hash value, it is determined that the first index information or the first transaction data is tampered with.
[0078] Optionally, the third judgment unit is specifically configured to:
[0079] Judge whether the fourth hash value is the same as the second hash value;
[0080] If the fourth hash value is the same as the second hash value, it is determined that the second index information and the second transaction data are not tampered with;
[0081] If the fourth hash value is not the same as the second hash value, it is determined that the second index information or the second transaction data is tampered with.
[0082] Optionally, the device information includes:
[0083] The device SN information and the affiliated institution information of the entity business library, the lock ID information, the lock activation data information of the electronic dynamic password lock, and the electronic tag number information of the tail box.
[0084] The third aspect of the present application provides a management device for an intelligent business library. The management device includes:
[0085] A processor, a memory, an input / output unit, and a bus;
[0086] The processor is connected to the memory, the input / output unit, and the bus;
[0087] The memory stores a program, and the processor calls the program to execute the management method of an intelligent business library in the first aspect and any optional one in the first aspect.
[0088] The fourth aspect of the present application provides a computer-readable storage medium. A program is stored on the computer-readable storage medium, and when the program is executed on a computer, it executes the management method of an intelligent business library in the first aspect and any optional one in the first aspect.
[0089] It can be seen from the above technical solutions that the present application has the following advantages: The present application proposes a management method for an intelligent business library. The management method includes: obtaining the device information of the intelligent business library device, and when detecting that a user operates the intelligent business library device, obtaining trace data information; integrating the device information and the trace data information to generate integrated data information; classifying the integrated data information according to different operation types to obtain at least two types of integrated data information; respectively inputting at least two types of integrated data information into corresponding index models to respectively obtain at least two types of data structures; storing at least two types of data structures in at least two blockchain nodes. Through the above method, the device information and the trace data information are combined into different data structures, and the different data structures are stored in different blockchain nodes, thereby realizing real-time informatization and real-time traceability processing of the intelligent business library device and the operation of the intelligent business library device. And due to the immutability of the blockchain, the security of the management of the intelligent business library device is also improved. Description of the Drawings
[0090] In order to more clearly illustrate the technical solutions in the present application, 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 application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0091] Figure 1Schematic flowchart of an embodiment of a management method for an intelligent service library provided by this application;
[0092] Figure 2-a Schematic flowchart of another embodiment of a management method for an intelligent service library provided by this application;
[0093] Figure 2-b Schematic flowchart of another embodiment of a management method for an intelligent service library provided by this application;
[0094] Figure 3 Schematic structural diagram of an embodiment of an intelligent service library management device provided by this application;
[0095] Figure 4 Schematic structural diagram of another embodiment of an intelligent service library management device provided by this application;
[0096] Figure 5 Schematic structural diagram of an embodiment of an intelligent service library management device provided by this application;
[0097] Figure 6 Schematic flowchart of an embodiment of data processing for an intelligent service library provided by this application;
[0098] Figure 7 Schematic flowchart of another embodiment of data processing for an intelligent service library provided by this application. Detailed implementation manners
[0099] This application provides a management method, a management device, and a storage medium for an intelligent service library, which are used to perform real-time informatization and real-time traceability on the operations of intelligent service library devices.
[0100] It should be noted that the management method for an intelligent service library provided by this application can be applied to a terminal or a server. For example, the terminal can be a smart phone, a computer, a tablet computer, a smart TV, a smart watch, a portable computer terminal, or a fixed terminal such as a desktop computer. For the convenience of explanation, the terminal is used as the execution subject in this application for example.
[0101] Please refer to Figure 1 , Figure 1 which is an embodiment of a management method for an intelligent service library provided by this application. The method includes:
[0102] 101. The terminal obtains the device information of the intelligent service library device. The intelligent service library device includes an entity service library, an electronic dynamic password lock, and a tail box containing a radio frequency electronic tag. The tail box is stored in the entity service library, and the electronic dynamic password lock is used to lock the entity service library;
[0103] In this embodiment, the terminal obtains the device information of the intelligent service library device, and the device information includes: the device SN information of the entity service library and the affiliated institution information, where SN is the abbreviation of SerialNumber, and the device SN information is a concept introduced to verify the legal identity of the product. An entity service library corresponds to only one set of device SN information, and the affiliated institution information of the entity service library refers to which bank the entity service library belongs to.
[0104] The device information also includes: the lock ID information and the lock activation data information of the electronic dynamic password lock. The lock ID information is used to identify the electronic dynamic password lock. An electronic dynamic password lock is an electronic lock with a dynamic password, which is commonly used in places with high confidentiality and involving money. The dynamic password is also called a one-time password, which means that the user's password changes dynamically according to time or the number of uses, and each password can only be used once. In this embodiment, the electronic dynamic password lock uses a special hardware called a dynamic token, which is built with a power supply, a password generation chip, and a display screen. The numeric keys of the electronic dynamic password lock are used to input the user's PIN code, and the display screen is used to display the one-time password. Each time the correct PIN code is input, a currently available one-time dynamic password can be obtained. The password generation chip of the electronic dynamic password lock runs a dedicated password algorithm to generate the current password according to the current time and the number of uses and displays it on the display screen. The authentication server calculates the current valid password using the same algorithm. Since the password used each time must be generated by the dynamic token, and only legitimate users hold this dynamic hardware, as long as the password verification passes, the system can consider the identity of the user to be reliable. And because the password used by the user each time is different, even if a hacker intercepts a password, they cannot use this password to impersonate a legitimate user's identity, because another dynamic password must be used for the next login. The dynamic password lock requires two password elements. One element is the static PIN code, which is set and kept by the user himself. The other element is the dynamic password, which is dynamically generated by the password token, is unpredictable, and is synchronized with the access control of the background server and is verified by the background server. Therefore, the user must input the correct static PIN code and dynamic password to pass the identity authentication. The dynamic password lock itself requires the input of the PIN code to be used. The security factor of the static PIN code is that this PIN code is not input on a computer but on the password lock. In this way, all hacker trojan programs will theoretically fail because these trojans simply cannot run on another hardware password lock. For a hacker to crack the user's password, first, they need to physically obtain the user's dynamic password lock, and second, they also need to obtain the user's PIN code. In this way, the hacker must break into the user's home (computer hackers also need to learn the techniques of ordinary burglars), steal the electronic dynamic password lock, and then crack the PIN code. Without the user's PIN code, it still cannot be used. Usually, the dynamic password lock itself has a certain security protection function. If the PIN code is entered incorrectly 10 times, it will automatically lock and cannot be used. This also ensures the physical security of the dynamic password lock. The dynamic password technology can improve the security of the client users because no matter what method a hacker uses, it is not easy to steal the user's password. Even if a hacker steals a password once, they cannot log in and use it.
[0105] The device information also includes: the electronic tag number information of the tail box containing the radio frequency electronic tag, and the electronic tag number information is used to identify the tail box. The tail box refers to the box or luggage used by bank branches to store cash or valuable items.
[0106] In this embodiment, the tail box is stored in the physical business repository, and the electronic dynamic password lock is used to lock the physical business repository.
[0107] 102. When it is detected that the user operates the intelligent business repository device, the terminal obtains trace information.
[0108] In this embodiment, when it is detected that the user operates the intelligent business repository device, the terminal obtains trace information, which is used to record all situations where the intelligent business repository device is operated. For example: when the user initiates an operation of accessing the tail box through the terminal, after the terminal verifies the user's identity information and permission information, it performs the unlocking or locking operation of the electronic dynamic password lock and the opening or closing operation of the physical business repository according to the operation instruction sent by the user through the terminal. During this entire process, the generated trace information, such as: user identity information, intelligent business repository device status change information, inbound and outbound change information of the tail box entering and leaving the physical business repository, and inventory check result information, will all generate trace information. The terminal obtains this trace information and conducts traceability tracking on the intelligent business repository device through this trace information.
[0109] 103. The terminal integrates the device information and trace data information to generate integrated data information.
[0110] In this embodiment, the terminal generates integrated data information according to the corresponding relationship between the device information and the trace data information. For example: when the user extracts Tail Box A, the terminal determines the device information A1 of Tail Box A, and obtains the trace information A2 generated by the user during the process of extracting Tail Box A, and integrates the device information A1 and A2 to generate the integrated data information of Tail Box A.
[0111] 104. The terminal classifies the integrated data information according to different operation types to obtain at least two types of integrated data information.
[0112] In this embodiment, for example, the operation types include the unlocking operation of the electronic dynamic password lock, the locking operation of the electronic dynamic password lock, the opening operation of the physical business repository, the closing operation of the physical business repository, the operation of taking out the tail box from the physical business repository, the operation of putting the tail box into the physical business repository, and the inventory check operation of the items in the physical business repository. Then, according to these operation types, the integrated data information is respectively divided into seven types of integrated data information.
[0113] 105. The terminal inputs at least two types of integrated data information into the corresponding index models respectively to obtain at least two types of data structures.
[0114] In this embodiment, the terminal inputs different types of integrated data information into corresponding index models respectively to obtain different types of data structures. For example, the terminal inputs the first type of integrated data information related to the inventory operation into the inventory index model to obtain the first type of data structure, and inputs the second type of integrated data information related to the unlocking operation into the status index model to obtain the second type of data structure.
[0115] 106. The terminal stores at least two types of data structures in at least two blockchain nodes.
[0116] In this embodiment, the terminal stores different types of data structures in different blockchain nodes, so that when a user needs to call or trace a certain data structure, the corresponding blockchain node of the data structure can be found, thereby realizing the traceability of this type of data structure. Blockchain nodes form the backbone of the blockchain network, and the purpose of blockchain nodes is to help promote the development of decentralized networks. Information is not stored in a centralized server, but in a distributed and decentralized manner, and users can have full control over this information. The more and wider the distribution of blockchain nodes, the more decentralized the blockchain network is, and the safer and more stable the network operation is.
[0117] In this embodiment, the device information of the intelligent business library device is obtained, and when it is detected that the user operates the intelligent business library device, the trace data information is obtained; the device information and the trace data information are integrated to generate integrated data information; the integrated data information is classified according to different operation types to obtain at least two types of integrated data information; at least two types of integrated data information are respectively input into corresponding index models to obtain at least two types of data structures; at least two types of data structures are stored in at least two blockchain nodes. Through the above method, the device information and the trace data information are combined into different data structures, and the different data structures are stored in different blockchain nodes, thereby realizing the real-time informatization and real-time traceability processing of the intelligent business library device and the operation of the intelligent business library device. And due to the immutability of the blockchain, the security of the management of the intelligent business library device is also improved.
[0118] To make the management method of an intelligent business library provided by this application more obvious and understandable, the following will provide a detailed description of the management method of an intelligent business library provided by this application:
[0119] Please refer to Figure 2-a and Figure 2-b , Figure 2-a and Figure 2-b which is another embodiment of the management method of an intelligent business library provided by this application. The management method includes:
[0120] 201. The terminal obtains the device information of the intelligent service library. The intelligent service library devices include an entity service library, an electronic dynamic password lock, and a tail box with a radio frequency electronic tag. The tail box is stored in the entity service library, and the electronic dynamic password lock is used to lock the entity service library.
[0121] 202. When it detects that the user operates the intelligent service library device, the terminal obtains the trace data information.
[0122] 203. The terminal integrates the data information and the trace data information to generate integrated data information.
[0123] 204. The terminal classifies the integrated data information according to different operation types to obtain at least two types of integrated data information.
[0124] Steps 201 to 204 in this embodiment are similar to steps 101 to 104 in the foregoing Figure 1 embodiment, and details are not described herein again.
[0125] 205. The terminal inputs at least two types of data integration information into the corresponding index models respectively to obtain at least two types of data structures.
[0126] In this embodiment, the terminal inputs at least two types of data integration information into the corresponding index models respectively to obtain at least two types of data structures, including: inputting the first type of integrated data information into the first index model to determine the first index information, and determining the first transaction data, calculating the hash value of the first index information and the first transaction data to obtain the first hash value; assembling the first index information, the first transaction data, and the first hash value to obtain the first type of data structure; inputting the second type of integrated data information into the second index model to determine the second index information, and determining the second transaction data, calculating the hash value of the second index information and the second transaction data to obtain the second hash value; assembling the second index information, the second transaction data, and the second hash value to obtain the second type of data structure. For example: if the first type of integrated data information includes the institution ID, device SN, and inventory check result data, after inputting the first type of integrated data information into the first index model, the first index model determines the combined data of the institution ID and device SN as the first index information, and determines the inventory check result data as the transaction data. At this time, the first index model calculates the first hash value for the institution ID, device SN, and inventory check result data, and the first index model fills the institution ID, device SN, inventory check result data, and the first hash value into the data structure organization in a preset manner to obtain the first data structure.
[0127] 206. The terminal determines at least two index information according to at least two types of data structures.
[0128] In this embodiment, different data structures correspond to different index information. For example, the first index information corresponding to the first type of data structure is 1, the second index information corresponding to the second type of data structure is 2, the third index information corresponding to the third type of data structure is 4, and the fourth index information corresponding to the fourth type of data structure is 1.
[0129] 207. The terminal fills at least two index information into the index information list;
[0130] In this embodiment, the terminal fills multiple index information into the index information list, which facilitates subsequent analysis or extraction of the multiple index information.
[0131] 208. The terminal sequentially compares and determines whether the index information in the same column of adjacent two rows is the same according to the arrangement order of the index information in the index information list;
[0132] In this embodiment, the terminal sequentially compares and determines whether the index information in the same column of adjacent two rows is the same according to the arrangement order of the index information in the index information list. If they are the same, step 209 is executed; if they are not the same, step 210 is executed.
[0133] 209. When the index information in the same column of adjacent two rows is the same, the terminal compresses the same index information;
[0134] In this embodiment, for example, the adjacent two rows are the first row and the second row. Assume that the index information corresponding to the first column of the first row is 2, and the index information corresponding to the first column of the second row is 2. Determine whether the index information corresponding to the first column of the first row and the first column of the second row is the same. If the index information of the first column of the first row is the same as the index information of the first column of the second row (both are 2), then at this time, the terminal records any one of the two index information and the position information of this index information, and continues to determine whether the index information in the next column of the adjacent two rows is the same. Through the above method, the repeated column index information in the same column of the adjacent two rows is compressed, thereby reducing the data volume of the index information, and thus improving the search efficiency of the column index information.
[0135] 210. When the index information in the same column of adjacent two rows is not the same, the terminal records the index information in the same column with different comparison results and its corresponding position information in the adjacent two rows, and compresses the column index information of the other columns after the same column with different comparison results in the adjacent two rows;
[0136] In this embodiment, for example, two adjacent rows are the first row and the second row. Assume that the column index information corresponding to the second column of the first row is 5, and the column index information corresponding to the second column of the second row is 7. Determine whether the index information of the second column of the first row is the same as the index information of the second column of the second row. If the index information of the second column of the first row is different from the index information of the second column of the second row (5 and 7 are different), then record the column index information and position information of each column where the comparison result is different, and end the determination of whether the column index information of the leftmost column in two adjacent rows is the same. Then increment the row number for comparison by one, and jump to execute step 208.
[0137] 211. After the compression process of the column index information corresponding to each row in the index information list is completed, the terminal generates an index array for the index information list according to the column index information obtained after the compression process.
[0138] In this embodiment, after the determination of the column index information in all rows of the index list is completed, since when the comparison result is that the column index information of the same column in two adjacent rows is different, the column index information and position information of each column where the comparison result is different are recorded, and the operation of determining whether the column index information of the next column in two adjacent rows is the same is ended. At this time, the intermediate table (in an intermediate state between the index information list and the index array) only records the positions of the column index information corresponding to the different column index information of the same column. The subsequent column index information will no longer be recorded, that is, the column index information of the columns other than the same column where the comparison result is different in two adjacent rows will no longer be displayed in the index array corresponding to the index information list.
[0139] In this embodiment, after the compression process of the column index information of the index information list, according to the index information obtained after the compression process, an index array for the index information list is generated. In the generated index array, the repeated column index information in the same column of two adjacent rows is compressed, and the column index information after the first different column index information in the same column of two adjacent rows is not stored. In this way, for the index array corresponding to the index information list obtained, the last column index information retained in each row indicates the greatest difference between this row and the adjacent other rows in the index information list, thereby greatly reducing the amount of data in the index array and ensuring the search efficiency of the index information.
[0140] 212. The terminal stores at least two types of data structures in at least two blockchain nodes.
[0141] In this embodiment, the terminal stores at least two types of data structures in at least two blockchain nodes through index calculation.
[0142] 213. The terminal traces the first blockchain node according to the first index information to obtain the first type of data structure.
[0143] In this embodiment, for example, the first index information is 1, the first blockchain node corresponding to the first index information is A, and the first type of data structure stored in the first blockchain node is A1. Then, the terminal searches for the first type of data structure A1 in the first blockchain node A according to the first index information 1.
[0144] 214. The terminal traces the second blockchain node according to the second index information to obtain the second type of data structure.
[0145] In this embodiment, for example, the second index information is 2, the second blockchain node corresponding to the second index information is B, and the second type of data structure stored in the second blockchain node is B1. Then, the terminal searches for the first type of data structure B1 in the first blockchain node B according to the second index information 2.
[0146] 215. The terminal performs a hash calculation on the first index information and the first transaction data in the first type of data structure to obtain a third hash value.
[0147] In this embodiment, the terminal performs a hash calculation on the first index information and the first transaction data in the first data structure to obtain a third hash value, and the third hash value is used to determine whether the data in the first type of data structure has been tampered with.
[0148] 216. The terminal performs a hash calculation on the second index information and the second transaction data in the second type of data structure to obtain a fourth hash value.
[0149] In this embodiment, the terminal performs a hash calculation on the second index information and the second transaction data in the second type of data structure to obtain a fourth hash value, and the fourth hash value is used to determine whether the data in the second type of data structure has been tampered with.
[0150] 217. The terminal determines whether the first index information and the first transaction data have been tampered with according to the third hash value and the first hash value.
[0151] In this embodiment, the terminal compares the third hash value and the first hash value, and determines whether the first index information and the first transaction data have been tampered with according to the comparison result. If the third hash value is the same as the first hash value, the terminal determines that the first index information and the first transaction data have not been tampered with; if the third hash value is different from the first hash value, the terminal determines that the first index information or the first transaction data has been tampered with.
[0152] 218. If the first index information and the first transaction data have not been tampered with, the terminal determines the first operation record according to the first type of data structure and generates a first operation record table.
[0153] In this embodiment, the terminal determines a first operation record according to a first type of data structure, generates a first operation record table, and displays the first operation record table through a display device, so that the user can monitor the operation records of the intelligent service library device in real time through the display device.
[0154] 219. If the first index information or the first transaction data is tampered with, the terminal performs an anomaly analysis on the first index information or the first transaction data, determines first anomaly data, and repairs the first anomaly data.
[0155] In this embodiment, if the first index information or the first transaction data is tampered with, the terminal performs an anomaly analysis on the first index information or the first transaction data, determines first anomaly data, and repairs the first anomaly data, thereby improving the security of the first index information or the first transaction data.
[0156] 220. The terminal determines whether the second index information and the second transaction data are tampered with according to the fourth hash value and the second hash value.
[0157] In this embodiment, the terminal compares the fourth hash value and the second hash value, and determines whether the second index information and the second transaction data are tampered with according to the comparison result. If the fourth hash value is the same as the second hash value, the terminal determines that the second index information and the second transaction data are not tampered with; if the fourth hash value is different from the second hash value, the terminal determines that the second index information or the second transaction data is tampered with.
[0158] 221. If the second index information and the second transaction data are not tampered with, the terminal determines a second operation record according to a second type of data structure and generates a second operation record table.
[0159] In this embodiment, the terminal determines a second operation record according to a second type of data structure, generates a second operation record table, and displays the second operation record table through a display device, so that the user can monitor the operation records of the intelligent service library device in real time through the display device.
[0160] 222. If the second index information or the second transaction data is tampered with, the terminal performs an anomaly analysis on the second index information or the second transaction data, determines second anomaly data, and repairs the second anomaly data.
[0161] In this embodiment, if the second index information or the second transaction data is tampered with, the terminal performs an anomaly analysis on the second index information or the second transaction data, determines second anomaly data, and repairs the second anomaly data, thereby improving the security of the second index information or the second transaction data.
[0162] The above describes a management method for an intelligent service library provided by this application. Next, a management device for an intelligent service staff library provided by this application will be described:
[0163] Please refer to Figure 3 , Figure 3 which is an embodiment of a management device for an intelligent service library provided by this application. The management device includes:
[0164] A first acquisition unit 301, configured to acquire device information of an intelligent service library device. The intelligent service library device includes a physical service library, an electronic dynamic password lock, and a tail box containing a radio frequency electronic tag. The tail box is stored in the physical service library, and the electronic dynamic password lock is used to lock the physical service library;
[0165] A second acquisition unit 302, configured to acquire trace data information when it is detected that a user operates the intelligent service library device;
[0166] An integration unit 303, configured to integrate the device information and the trace data information to generate integrated data information;
[0167] A classification unit 304, configured to classify the integrated data information according to different operation types to obtain at least two types of integrated data information;
[0168] An input unit 305, configured to input at least two types of integrated data information into corresponding index models respectively to obtain at least two types of data structures;
[0169] A storage unit 306, configured to store at least two types of data structures in at least two blockchain nodes.
[0170] In the system of this embodiment, the functions executed by each unit correspond to the steps in the method embodiment shown above Figure 1 , and will not be elaborated here specifically.
[0171] Next, a management device for an intelligent service library provided by this application will be described in detail. Please refer to Figure 4 , Figure 4 which is another embodiment of a management device for an intelligent service library provided by this application. The management device includes:
[0172] A first acquisition unit 401, configured to acquire device information of an intelligent service library device. The intelligent service library device includes a physical service library, an electronic dynamic password lock, and a tail box containing a radio frequency electronic tag. The tail box is stored in the physical service library, and the electronic dynamic password lock is used to lock the physical service library;
[0173] A second acquisition unit 402, configured to acquire trace data information when it is detected that a user operates the intelligent service library device;
[0174] An integration unit 403, configured to integrate device information and trace data information to generate integrated data information;
[0175] A classification unit 404, configured to classify the integrated data information according to different operation types to obtain at least two types of integrated data information;
[0176] An input unit 405, configured to input at least two types of integrated data information into corresponding index models respectively to obtain at least two types of data structures;
[0177] A storage unit 406, configured to store at least two types of data structures in at least two blockchain nodes.
[0178] Optionally, the management device further includes:
[0179] A determination unit 407, configured to determine at least two index information according to at least two types of data structures;
[0180] A filling unit 408, configured to fill at least two index information into an index information list;
[0181] A first judgment unit 409, configured to sequentially judge whether the index information in the same column of adjacent two rows is the same according to the arrangement order of the index information in the index information list;
[0182] A first compression unit 410, configured to compress the same column index information when the index information in the same column of adjacent two rows is the same;
[0183] A second compression unit 411, configured to record the column index information and its corresponding position information in the same column where the comparison result is different when the column index information in the same column of adjacent two rows is different, and compress the column index information of other columns after the same column where the comparison result is different in adjacent two rows;
[0184] A first generation unit 412, configured to generate an index array for the index information list according to the column index information obtained after the compression process after the compression process of the column index information corresponding to each row in the index information list is completed.
[0185] Optionally, the input unit 405 is specifically configured to:
[0186] Input the first type of integrated data information into the first index model, determine the first index information, and determine the first transaction data, and perform a hash calculation on the first index information and the first transaction data to obtain a first hash value;
[0187] Assemble the first index information, the first transaction data and the first hash value to obtain the first type of data structure;
[0188] Input the second type of integrated data information into the second index model to determine the second index information, and determine the second transaction data. Perform a hash calculation on the second index information and the second transaction data to obtain the second hash value;
[0189] Assemble the second index information, the second transaction data, and the second hash value to obtain the second type of data structure.
[0190] Optionally, the management device further includes:
[0191] The first traceability unit 413 is used to trace the first blockchain node according to the first index information to obtain the first type of data structure;
[0192] The second traceability unit 414 is used to trace the second blockchain node according to the second index information to obtain the second type of data structure;
[0193] The first calculation unit 415 is used to perform a hash calculation on the first index information and the first transaction data in the first type of data structure to obtain the third hash value;
[0194] The second calculation unit 416 is used to perform a hash calculation on the second index information and the second transaction data in the second type of data structure to obtain the fourth hash value;
[0195] The second judgment unit 417 is used to judge whether the first index information and the first transaction data are tampered with according to the third hash value and the first hash value;
[0196] The second generation unit 418 is used to, if the first index information and the first transaction data are not tampered with, the terminal determines the first operation record according to the first type of data structure and generates the first operation record form;
[0197] The first analysis unit 419 is used to, if the first index information or the first transaction data is tampered with, the terminal performs abnormal analysis on the first index information or the first transaction data to determine the first abnormal data and repair the first abnormal data;
[0198] The third judgment unit 420 is used to judge whether the second index information and the second transaction data are tampered with according to the fourth hash value and the second hash value;
[0199] The third generation unit 421 is used to, if the second index information and the second transaction data are not tampered with, the terminal determines the second operation record according to the second type of data structure and generates the second operation record form;
[0200] The second analysis unit 422 is used to, if the second index information or the second transaction data is tampered with, perform abnormal analysis on the second index information or the second transaction data to determine the second abnormal data and repair the second abnormal data.
[0201] Optionally, the second determination unit 417 is specifically configured to:
[0202] Determine whether the third hash value is the same as the first hash value;
[0203] If the third hash value is the same as the first hash value, it is determined that the first index information and the first transaction data have not been tampered with;
[0204] If the third hash value is different from the first hash value, it is determined that the first index information or the first transaction data has been tampered with.
[0205] Optionally, the third determination unit 420 is specifically configured to:
[0206] Determine whether the fourth hash value is the same as the second hash value;
[0207] If the fourth hash value is the same as the second hash value, it is determined that the second index information and the second transaction data have not been tampered with;
[0208] If the fourth hash value is different from the second hash value, it is determined that the second index information or the second transaction data has been tampered with.
[0209] Optionally, the device information includes:
[0210] The device SN information and the affiliated institution information of the entity business library, the lock ID information of the electronic dynamic password lock, the lock activation data information, and the electronic tag number information of the tail box.
[0211] In the system of this embodiment, the functions executed by each unit correspond to the steps in the method embodiment shown in FIG. 2 above, and will not be elaborated here specifically.
[0212] This application also provides a management device for an intelligent business library. Please refer to Figure 5 , Figure 5 FIG. is an embodiment of a management device for an intelligent business library provided by this application. The management device includes:
[0213] A processor 501, a memory 502, an input / output unit 503, and a bus 504;
[0214] The processor 501 is connected to the memory 502, the input / output unit 503, and the bus 504;
[0215] The memory 502 stores a program, and the processor 501 calls the program to execute any one of the management methods of the intelligent business library.
[0216] This application also relates to a computer-readable storage medium. A program is stored on the computer-readable storage medium. When the program runs on a computer, the computer is caused to execute any one of the management methods of the intelligent business library.
[0217] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0218] In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.
[0219] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0220] In addition, in each embodiment of the present application, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0221] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
Claims
1. A management method for an intelligent service library, characterized in that, The management method includes: Obtaining device information of an intelligent service library device, where the intelligent service library device includes an entity service library, an electronic dynamic password lock, and a tail box with a radio frequency electronic tag. The tail box is stored in the entity service library, and the electronic dynamic password lock is used to lock the entity service library; When it is detected that a user operates the intelligent service library device, obtaining trace data information; Integrating the device information and the trace data information to generate integrated data information; Classifying the integrated data information according to different operation types to obtain at least two types of integrated data information; Inputting at least two types of the integrated data information into corresponding index models respectively to obtain at least two types of data structures; Storing the at least two types of data structures in at least two blockchain nodes; The step of inputting at least two types of the integrated data information into corresponding index models respectively to obtain at least two types of data structures includes: Inputting the first type of integrated data information into the first index model, determining the first index information, determining the first transaction data, and performing a hash calculation on the first index information and the first transaction data to obtain a first hash value; Assembling the first index information, the first transaction data, and the first hash value to obtain the first type of data structure; Inputting the second type of integrated data information into the second index model, determining the second index information, determining the second transaction data, and performing a hash calculation on the second index information and the second transaction data to obtain a second hash value; Assembling the second index information, the second transaction data, and the second hash value to obtain the second type of data structure; The device information includes: The device SN information and the affiliated institution information of the entity service library, the lock ID information and the lock activation data information of the electronic dynamic password lock, and the electronic tag number information of the tail box.
2. The management method according to claim 1, wherein After inputting at least two types of the integrated data information into corresponding index models respectively to obtain at least two types of data structures, the management method further includes: Determining at least two index information according to the at least two types of data structures; Filling the at least two index information into an index information list; Sequentially comparing and determining whether the index information in the same column of adjacent rows is the same according to the arrangement order of the index information in the index information list; When the index information in the same column of adjacent rows is the same, compressing the same column index information; When the column index information in the same column of adjacent rows is different, recording the column index information in the same column with different comparison results and its corresponding position information in the adjacent rows, and compressing the column index information of other columns after the same column with different comparison results in the adjacent rows; After the compression processing of the column index information corresponding to each row in the index information list is completed, generating an index array for the index information list according to the compressed column index information; 3. The management method according to claim 1, characterized in that, After storing the at least two types of data structures in at least two blockchain nodes, the management method further includes: Tracing the first blockchain node according to the first index information to obtain the first type of data structure; Trace the second blockchain node according to the second index information to obtain the second type of data structure; Perform a hash calculation on the first index information and the first transaction data in the first type of data structure to obtain a third hash value; Perform a hash calculation on the second index information and the second transaction data in the second type of data structure to obtain a fourth hash value; Judge whether the first index information and the first transaction data are tampered with according to the third hash value and the first hash value; If the first index information and the first transaction data are not tampered with, the terminal determines the first operation record according to the first type of data structure and generates a first operation record table; If the first index information or the first transaction data is tampered with, the terminal performs anomaly analysis on the first index information or the first transaction data to determine the first abnormal data and repairs the first abnormal data; Judge whether the second index information and the second transaction data are tampered with according to the fourth hash value and the second hash value; If the second index information and the second transaction data are not tampered with, the terminal determines the second operation record according to the second type of data structure and generates a second operation record table; If the second index information or the second transaction data is tampered with, perform anomaly analysis on the second index information or the second transaction data to determine the second abnormal data and repair the second abnormal data.
4. The management method according to claim 3, wherein The judging whether the first index information and the first transaction data are tampered with according to the third hash value and the first hash value includes: Judge whether the third hash value is the same as the first hash value; If the third hash value is the same as the first hash value, it is determined that the first index information and the first transaction data are not tampered with; If the third hash value is different from the first hash value, it is determined that the first index information or the first transaction data is tampered with.
5. The management method according to claim 3, wherein The judging whether the second index information and the second transaction data are tampered with according to the fourth hash value and the second hash value includes: Judge whether the fourth hash value is the same as the second hash value; If the fourth hash value is the same as the second hash value, it is determined that the second index information and the second transaction data are not tampered with; If the fourth hash value is different from the second hash value, it is determined that the second index information or the second transaction data is tampered with.
6. A management device for an intelligent service library, characterized in that For executing the management method according to any one of claims 1 to 5, the management device includes: A first acquisition unit for acquiring device information of an intelligent service library device, where the intelligent service library device includes an entity service library, an electronic dynamic password lock, and a tail box including a radio frequency electronic tag, the tail box is stored in the entity service library, and the electronic dynamic password lock is used to lock the entity service library; A second acquisition unit for acquiring trace data information when it is detected that a user operates the intelligent service library device; An integration unit for integrating the device information and the trace data information to generate integrated data information; A classification unit for classifying the integrated data information according to different operation types to obtain at least two types of integrated data information; An input unit, configured to input at least two types of the integrated data information into corresponding index models respectively, and obtain at least two types of data structures respectively; A storage unit, configured to store the at least two types of data structures in at least two blockchain nodes.
7. A management device for an intelligent service library, characterized in that The management device includes: A processor, a memory, an input / output unit, and a bus; The processor is connected to the memory, the input / output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, on which a program is stored, and when the program is executed on a computer, it executes the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Data processing method, device, node equipment and storage medium
CN111639080A
Financial service information processing method based on block chain and related equipment
CN114663228A