Warehousing logistics data storage method and system
By introducing blockchain technology into warehousing logistics data storage, calculating the weight value of blockchain nodes and encrypting storage locations, the problem of insufficient security and flexibility of traditional warehousing logistics data storage methods is solved, and more efficient and secure data processing and management is achieved.
Patent Information
- Application Number
- CN202510175491.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2045-02-18
AI Technical Summary
Traditional warehousing and logistics data storage methods rely on centralized databases, with single storage means and poor security, making it difficult to meet the high requirements of modern warehousing management for data security, integrity and real-time.
Blockchain technology is used to combine data storage, and by obtaining and classifying warehousing and logistics data, calculating the weight value of blockchain nodes, and storing data into the main chain storage unit of different blockchain nodes according to the weight value and storage priority, and encrypting the storage location, storing encrypted information to the side chain storage unit.
It realizes more efficient, safer and more flexible warehousing management and logistics data processing, improves data security and reliability, and adapts to the complex needs of modern warehousing and logistics industry for data storage.
Smart Images

Figure CN119646098B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of warehousing and logistics, and in particular to a method and system for storing warehousing and logistics data. Background Art
[0002] With the rapid development of e-commerce and global supply chains, the warehousing and logistics industry is facing unprecedented challenges in data storage and management. Modern warehousing management involves a wide variety of data information types, including inventory information, transportation status, environmental monitoring, order processing records, etc. The efficient flow of these data requires not only processing between multiple systems and platforms, but also ensuring the security, integrity and real-time nature of the data. However, traditional warehousing data storage methods mostly rely on centralized databases, with a single storage method and poor security, which is a problem that needs to be solved urgently. Summary of the invention
[0003] The purpose of the present invention is to provide a warehousing logistics data storage method and system to address the deficiencies in the prior art, and to effectively combine blockchain technology and data storage requirements to achieve more efficient, safer and more flexible warehousing management and logistics data processing.
[0004] An embodiment of the present application provides a method for storing warehousing logistics data, the method comprising:
[0005] Acquire a warehousing logistics data set to be stored, classify the warehousing logistics data set, and determine the storage priority of each type of warehousing logistics data subset;
[0006] Calculate the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data, and store each type of warehousing and logistics data subset in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority, wherein each blockchain node includes a plurality of main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data;
[0007] The storage location of the warehousing logistics data in each main chain storage unit is encrypted to obtain encrypted storage location information, and the storage location information is stored in the side chain storage unit corresponding to the main chain storage unit.
[0008] Optionally, the current weight value is calculated as follows: Among them, the is the current weight value of the i-th blockchain node, is the node performance correlation coefficient of the i-th blockchain node, is the data redundancy of the i-th blockchain node, is the node security correlation coefficient of the i-th blockchain node, Give the security score of the i-th blockchain node.
[0009] Optionally, storing each type of warehousing logistics data subset in a main chain storage unit of a different blockchain node according to the current weight value and the storage priority includes:
[0010] Determine a weight level of the corresponding blockchain node according to the current weight value, wherein the weight level is greater than or equal to the level of the storage priority;
[0011] A subset of warehousing and logistics data with each level of storage priority is stored in the main chain storage unit of the blockchain node corresponding to the same level of weight level. If the blockchain node reaches the preset storage data volume, the warehousing and logistics data not stored in the subset of warehousing and logistics data with this level of storage priority is stored in the main chain storage unit of the blockchain node of the next level of weight level.
[0012] Optionally, the storage location of the warehousing logistics data in each main chain storage unit is encrypted to obtain encrypted storage location information, including:
[0013] Determine the coordinates of each warehousing logistics data according to the physical position or logical position of each warehousing logistics data in the main chain storage unit, wherein the main chain storage unit is regarded as a grid and each warehousing logistics data is regarded as a point on the grid;
[0014] The coordinates of each storage logistics data are encrypted, and the encrypted coordinate information is obtained as follows: Among them, the is the encrypted coordinate information, wherein x is the horizontal coordinate of the warehousing logistics data, y is the vertical coordinate of the warehousing logistics data, A and B are the corresponding encryption coefficients, N is the modulus constant, and mod is the modulus operator.
[0015] Another embodiment of the present application provides a warehousing logistics data storage system, the system comprising:
[0016] An acquisition module, used to acquire a warehousing logistics data set to be stored, classify the warehousing logistics data set, and determine the storage priority of each type of warehousing logistics data subset;
[0017] A first storage module is used to calculate the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data, and store each type of warehousing and logistics data subset in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority, wherein each blockchain node includes a plurality of main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data;
[0018] The second storage module is used to encrypt the storage location of the warehousing logistics data in each main chain storage unit respectively, obtain encrypted storage location information, and store the storage location information in the side chain storage unit corresponding to the main chain storage unit.
[0019] Yet another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program is configured to execute any of the above methods when running.
[0020] Yet another embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the methods described above.
[0021] Compared with the prior art, the present invention provides a warehousing and logistics data storage method, which obtains a warehousing and logistics data set to be stored, classifies the warehousing and logistics data set, and determines the storage priority of each type of warehousing and logistics data subset; calculates the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data, and stores each type of warehousing and logistics data subset in a main chain storage unit of a different blockchain node according to the current weight value and the storage priority; encrypts the storage location of the warehousing and logistics data in each main chain storage unit respectively to obtain encrypted storage location information, and stores the storage location information in a side chain storage unit corresponding to the main chain storage unit, thereby effectively combining blockchain technology and data storage requirements to achieve more efficient, safer and more flexible warehousing management and logistics data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A hardware structure block diagram of a computer terminal for a warehousing logistics data storage method provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of a flow chart of a method for storing warehousing logistics data provided by an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of the structure of a warehousing logistics data storage system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.
[0026] The embodiment of the present invention first provides a method for storing warehouse logistics data, which can be applied to electronic devices such as computer terminals, specifically ordinary computers, etc.
[0027] The following describes it in detail by taking running on a computer terminal as an example. Figure 1 The hardware structure block diagram of a computer terminal of a warehouse logistics data storage method provided by an embodiment of the present invention. Figure 1 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0028] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any one of the warehouse logistics data storage methods.
[0029] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0030] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any warehouse logistics data storage method.
[0031] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0032] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0033] See also Figure 2 , an embodiment of the present invention provides a method for storing warehousing logistics data, which may include the following steps:
[0034] S201, obtaining a warehousing logistics data set to be stored, classifying the warehousing logistics data set, and determining a storage priority of each type of warehousing logistics data subset;
[0035] This stage covers the comprehensive collection of various logistics-related data, including but not limited to inventory information, order data, transportation status, environmental monitoring data, etc. After obtaining the data, the next step is to classify the data into different subsets, such as "temperature monitoring data", "goods in and out of the warehouse record", "transportation trajectory data", etc. The classification is usually based on the type of data, purpose and importance to warehouse management. Subsequently, the system will determine the storage priority of each data subset based on the impact of each type of data on warehouse operations and real-time needs. For example, temperature monitoring data can be given a higher storage priority because it is critical to the safety of perishable goods during storage, while general inventory update data can be given a lower priority. This process ensures that the system can store data in an orderly and reasonable manner, thereby providing support for subsequent data processing and decision-making.
[0036] First, the warehouse management system can use sensors and information systems to automatically collect warehouse logistics-related data, which can be achieved through integration with existing ERP (Enterprise Resource Planning) systems or WMS (Warehouse Management System). After the data is acquired, the system will use preset rules to classify different types of data, such as grouping based on data content, timestamp, source or other characteristics. After the classification is completed, the system will analyze the real-time needs and importance of each type of data and use rule-based decision support algorithms (such as risk assessment or update frequency) to set storage priorities for each type of data. Ultimately, the system will maintain these classification and priority information for reference in the subsequent blockchain node storage process, ensuring that the classified data can be efficiently and systematically stored on the appropriate blockchain nodes, thereby maximizing the storage efficiency and security of logistics data.
[0037] By effectively classifying and prioritizing warehouse logistics data, we can optimize subsequent data storage strategies and ensure that key data is processed and stored with priority when storage resources are limited, thereby improving the response speed and efficiency of the entire warehouse logistics system. Secondly, clear data classification helps to enhance the manageability of data, so that the required information can be quickly located in subsequent data retrieval and analysis, avoiding redundancy and confusion caused by data dispersion. In addition, reasonable storage priorities also provide warehouse managers with intuitive data importance assessments, which can effectively support the decision-making process and ensure that the most important data can be quickly accessed in emergencies. Finally, this process lays the foundation for the implementation of blockchain storage solutions. Through classification and priority setting, the decentralized characteristics of blockchain can be more efficiently utilized to enhance the reliability and security of data.
[0038] S202, calculating the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data, and storing each type of warehousing and logistics data subset in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority, wherein each blockchain node includes a plurality of main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data;
[0039] This process involves evaluating the performance of each node in the blockchain network to determine its suitability and priority in the storage task. When calculating the current weight value, the system will conduct a comprehensive evaluation based on factors such as the node's performance indicators, data redundancy, and security to determine the ability and reliability of each node in processing specific types of data. By combining these weight values with pre-set storage priorities, the system will be able to intelligently allocate each type of warehouse logistics data subset to the main chain storage unit of the most suitable blockchain node, thereby ensuring the security and efficiency of data storage.
[0040] The implementation of this step is of great significance. It not only ensures the efficient storage of warehousing and logistics data, but also improves the security and reliability of the data. By reasonably calculating the weight values of blockchain nodes, the system can balance the storage load between different nodes, avoiding performance degradation or failure of some nodes due to overload, thereby enhancing the stability of the entire network. At the same time, high-priority data will be stored on nodes with better performance and security guarantees, reducing the risk of data loss or leakage, and providing a reliable data foundation for real-time decision-making and analysis of warehousing and logistics. This intelligent storage allocation method not only improves data processing efficiency, but also facilitates subsequent data access and management, making the entire warehousing and logistics process smoother.
[0041] Specifically, a calculation formula for the current weight value may be:
[0042]
[0043] The significance of its design and construction is to comprehensively evaluate the performance of blockchain nodes through multiple dimensions to ensure the intelligence and security of data storage. is the current weight value of the ith blockchain node, which is the core indicator for decision-making storage allocation. is the node performance correlation coefficient of the i-th blockchain node, which reflects the computing power and processing speed of the node and directly affects its storage efficiency. The data redundancy of the i-th blockchain node refers to the data backup capacity that the node can accommodate. The higher the redundancy, the stronger the data security. is the node security correlation coefficient of the i-th blockchain node, which measures the node’s security measures and anti-attack capabilities. The security score of the i-th blockchain node is combined with multiple security assessment criteria to provide a comprehensive security reference. This formula design allows the applicability of each node in the storage task to be quantified, which helps to achieve dynamic storage management.
[0044] Specifically, according to the current weight value and the storage priority, each type of warehousing logistics data subset is stored in the main chain storage unit of different blockchain nodes, and the weight level of the corresponding blockchain node can be determined according to the current weight value, wherein the weight level is greater than or equal to the level of the storage priority;
[0045] In this step, the system assigns a weight level to each blockchain node based on the calculated current weight value. The weight level is divided based on the ability and reliability of each node in the storage task to ensure that it matches the storage priority of each type of data. Specifically, the system sets several weight thresholds and compares the weight values of the nodes to determine the node level. For example, nodes with higher weight values can be marked as level 1, while nodes with lower weight values can be marked as level 3 or lower. This division not only helps to identify which nodes can handle higher priority data, but also provides clear guidance for subsequent data storage allocation.
[0046] This step is crucial in the data storage process. It ensures that high-priority warehouse logistics data can be stored on nodes with stronger capabilities through reasonable node weight division, thereby effectively reducing the risk of data loss or damage. At the same time, the setting of weight levels enables the system to flexibly respond to different data storage needs. By dynamically allocating the storage tasks of the nodes, the utilization efficiency of storage resources and the stability of the overall system are improved. Ultimately, this hierarchical storage strategy will help the efficient and safe operation of warehouse management.
[0047] In actual operation, the system will set a weight level standard, such as arranging the weight values of all blockchain nodes in ascending order and determining the thresholds of several levels respectively. For example, the system divides nodes into 3 levels: Level 1, Level 2 and Level 3, and measures the performance of nodes according to preset standards. The weight level evaluation can be based on a comprehensive consideration of factors such as historical storage performance, system response time and data integrity, and the weight level of each node is generated accordingly. This operation can be performed regularly to ensure that the weight level can be updated in time when the node performance changes, so as to maintain the adaptability of storage management.
[0048] A subset of warehousing and logistics data with each level of storage priority is stored in the main chain storage unit of the blockchain node corresponding to the same level of weight level. If the blockchain node reaches the preset storage data volume, the warehousing and logistics data not stored in the subset of warehousing and logistics data with this level of storage priority is stored in the main chain storage unit of the blockchain node of the next level of weight level.
[0049] In this step, the system allocates different priority warehousing logistics data subsets to corresponding blockchain nodes according to the previously determined weight levels. This means that the data subset with priority 1 will be stored preferentially in the node with weight level 1, and so on. At the same time, the system monitors the storage status of these nodes. Once a node reaches its preset maximum storage capacity, the system will automatically transfer the unstored data under this priority to the node with the next level of weight level. This flexible storage mechanism ensures that data can be effectively stored and accessed even when storage resources are tight.
[0050] The importance of this step is reflected in its improvement of data storage efficiency and security. By storing high-priority data in the best-performing nodes, the system can reduce the risk of data loss and ensure that critical data is always available. At the same time, the mechanism of automatically transferring unstored data not only improves the utilization of storage resources, but also ensures that data can be properly handled under any circumstances, avoiding data loss due to storage limits. This highly adaptable and intelligent storage strategy will enable the warehousing and logistics system to operate efficiently and reliably in the face of changes and challenges.
[0051] In the actual implementation process, the system will classify each type of warehousing logistics data subset according to its priority and assign it to the corresponding blockchain node according to preset conditions. For example, data with a priority of 1 will be stored in the main chain storage unit of all nodes with a weight level of 1. If the storage capacity of these nodes reaches the preset upper limit, the system will start the automatic transfer mechanism to transfer the remaining data with a priority of 1 to the nodes with a weight level of 2 for storage. This process requires the system to monitor the storage status of each node in real time and dynamically adjust it according to the storage capacity and security of the node to ensure the integrity and availability of the data.
[0052] S203, encrypt the storage location of the warehousing logistics data in each main chain storage unit to obtain encrypted storage location information, and store the storage location information in the side chain storage unit corresponding to the main chain storage unit.
[0053] In this link, the system performs location encryption operations on the warehousing and logistics data in each main chain storage unit to protect the data storage location information. By encrypting the location of each data item and generating encrypted storage location information, it is ensured that the data will not be exposed to the risk of being attacked when it is accessed or transmitted due to the leakage of location information. The encrypted location information will be securely stored in the corresponding side chain storage unit, further enhancing the security of the data. This process not only maintains the privacy of warehousing and logistics data, but also provides a guarantee for the overall reliability of the system.
[0054] The implementation of this step has important security and privacy protection significance. By encrypting the storage location, the system effectively avoids the potential risk of data leakage, ensuring that even when the data is transmitted or stored, attackers cannot easily obtain the specific storage location of the data, thereby minimizing the possibility of data tampering or loss. In addition, the strategy of storing encrypted location information in the side chain reduces the burden on the main chain storage unit and improves the flexibility and management efficiency of data storage. Ultimately, this encryption mechanism not only improves the security of the warehousing and logistics system, but also provides it with a robust data management method.
[0055] Specifically, the storage location of the warehousing logistics data in each main chain storage unit is encrypted respectively to obtain the encrypted storage location information, and the coordinates of each warehousing logistics data can be determined according to the physical location or logical location of each warehousing logistics data in the main chain storage unit, wherein the main chain storage unit is regarded as a grid, and each warehousing logistics data is regarded as a point on the grid;
[0056] In this step, the system treats the main chain storage unit as a two-dimensional grid, and uses physical or logical coordinates to represent the exact location of each storage logistics data in the storage unit. By dividing the storage unit into rows and columns, the system can assign unique coordinates to each data item, thus forming a clear data storage structure that can be represented by a grid. Each storage logistics data is regarded as a point on the grid. This representation makes data storage and management more intuitive and facilitates subsequent encryption and retrieval operations.
[0057] The design of this step is of great significance and can improve the efficiency and organization of data access. By coordinate data items, the system can not only quickly locate specific data tracking points, but also optimize data access paths and reduce retrieval time. At the same time, the grid structure provides a clear idea for data management and maintenance, avoiding chaotic data storage. Such a design makes the entire warehouse logistics data management more standardized and systematic, laying a good foundation for subsequent encryption and secure storage.
[0058] In actual operation, the system divides the main chain storage unit into multiple grids and sets a row and column structure. For example, each grid is an area of a specific size, and the system assigns coordinates to each data item according to the storage order or logical relationship. Assuming that a warehouse logistics data includes multiple attributes, the system can store the first attribute (such as product ID) at coordinates (0,0), the second attribute (such as quantity) at (0,1), and so on. In this way, all warehouse logistics data will form a series of ordered coordinate positions in the grid, which is convenient for more efficient management and retrieval.
[0059] The coordinates of each storage logistics data are encrypted, and the encrypted coordinate information is obtained as follows:
[0060]
[0061] The encryption formula is designed to protect the coordinate information of warehouse logistics data through mathematical operations. The formula combines the horizontal coordinate x and the vertical coordinate y through linear combination to form the encrypted coordinate information. The introduction of modular operation ensures that the encryption result is within a certain range, making it not only suitable for storage and management, but also effective in resisting potential attacks.
[0062] Among them, the is the encrypted coordinate information, x is the horizontal coordinate of the warehousing logistics data, y is the vertical coordinate of the warehousing logistics data, A and B are the corresponding encryption coefficients, and N is the modulus constant, which is used to limit the range of the encryption result to ensure that it is within a manageable range, which helps to improve the storage efficiency and access speed of the data. The mod is a modulus operator, which ensures that the result of the encryption calculation is in a specific interval, so that the encrypted position still has a certain regularity and is not too scattered.
[0063] In this step, the system encrypts the grid coordinates of each storage logistics data to generate encrypted coordinate information. This process uses a linear encryption formula to combine and encrypt the horizontal coordinate x and the vertical coordinate y to ensure that the storage location of each data item is not easily identified. Parameters A and B are used as encryption coefficients to increase the randomness and complexity of the encryption result, and the modular operation N ensures that the encryption result is within a specific range, which is convenient for subsequent storage and management.
[0064] This step implements the importance of data security. By encrypting the coordinates, the storage location information is protected to prevent unauthorized access and data leakage. The encrypted coordinate information not only ensures the privacy of the data during storage, but also enhances the system's ability to resist potential attacks. In addition, ensuring the structure of encrypted data also makes subsequent decryption and data access more efficient, effectively supporting the security and smoothness of warehouse logistics data management.
[0065] During the implementation process, the system will traverse the coordinates of each data item, encrypt each coordinate through the preset encryption coefficients A and B, and generate encrypted coordinate information. After encryption, this information will be stored in the corresponding side chain storage unit for subsequent access and management. This encryption process not only ensures the security of the data, but also provides a reliable way for the system to cope with increasingly complex network security challenges.
[0066] It can be seen that the warehousing and logistics data set to be stored is obtained, the warehousing and logistics data set is classified, and the storage priority of each type of warehousing and logistics data subset is determined; the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data is calculated, and each type of warehousing and logistics data subset is stored in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority; the storage location of the warehousing and logistics data in each main chain storage unit is encrypted respectively to obtain the encrypted storage location information, and the storage location information is stored in the side chain storage unit corresponding to the main chain storage unit, so as to effectively combine the blockchain technology and data storage requirements to achieve more efficient, safer and more flexible warehousing management and logistics data processing.
[0067] Another embodiment of the present invention provides a storage logistics data storage system, see Figure 3 , the system may include:
[0068] The acquisition module 301 is used to acquire the warehousing logistics data set to be stored, classify the warehousing logistics data set, and determine the storage priority of each type of warehousing logistics data subset;
[0069] The first storage module 302 is used to calculate the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data, and store each type of warehousing and logistics data subset in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority, wherein each blockchain node includes a plurality of main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data;
[0070] The second storage module 303 is used to encrypt the storage location of the warehousing logistics data in each main chain storage unit, obtain encrypted storage location information, and store the storage location information in the side chain storage unit corresponding to the main chain storage unit.
[0071] It can be seen that the warehousing and logistics data set to be stored is obtained, the warehousing and logistics data set is classified, and the storage priority of each type of warehousing and logistics data subset is determined; the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data is calculated, and each type of warehousing and logistics data subset is stored in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority; the storage location of the warehousing and logistics data in each main chain storage unit is encrypted respectively to obtain the encrypted storage location information, and the storage location information is stored in the side chain storage unit corresponding to the main chain storage unit, so as to effectively combine the blockchain technology and data storage requirements to achieve more efficient, safer and more flexible warehousing management and logistics data processing.
[0072] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0073] Specifically, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps:
[0074] S201, obtaining a warehousing logistics data set to be stored, classifying the warehousing logistics data set, and determining a storage priority of each type of warehousing logistics data subset;
[0075] S202, calculating the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data, and storing each type of warehousing and logistics data subset in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority, wherein each blockchain node includes a plurality of main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data;
[0076] S203, encrypt the storage location of the warehousing logistics data in each main chain storage unit to obtain encrypted storage location information, and store the storage location information in the side chain storage unit corresponding to the main chain storage unit.
[0077] It can be seen that the warehousing and logistics data set to be stored is obtained, the warehousing and logistics data set is classified, and the storage priority of each type of warehousing and logistics data subset is determined; the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data is calculated, and each type of warehousing and logistics data subset is stored in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority; the storage location of the warehousing and logistics data in each main chain storage unit is encrypted respectively to obtain the encrypted storage location information, and the storage location information is stored in the side chain storage unit corresponding to the main chain storage unit, so as to effectively combine the blockchain technology and data storage requirements to achieve more efficient, safer and more flexible warehousing management and logistics data processing.
[0078] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0079] Specifically, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0080] Specifically, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0081] S201, obtaining a warehousing logistics data set to be stored, classifying the warehousing logistics data set, and determining a storage priority of each type of warehousing logistics data subset;
[0082] S202, calculating the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data, and storing each type of warehousing and logistics data subset in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority, wherein each blockchain node includes a plurality of main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data;
[0083] S203, encrypt the storage location of the warehousing logistics data in each main chain storage unit to obtain encrypted storage location information, and store the storage location information in the side chain storage unit corresponding to the main chain storage unit.
[0084] It can be seen that the warehousing and logistics data set to be stored is obtained, the warehousing and logistics data set is classified, and the storage priority of each type of warehousing and logistics data subset is determined; the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data is calculated, and each type of warehousing and logistics data subset is stored in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority; the storage location of the warehousing and logistics data in each main chain storage unit is encrypted respectively to obtain the encrypted storage location information, and the storage location information is stored in the side chain storage unit corresponding to the main chain storage unit, so as to effectively combine the blockchain technology and data storage requirements to achieve more efficient, safer and more flexible warehousing management and logistics data processing.
[0085] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings. The above is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the description and drawings, should be within the protection scope of the present invention.
Claims
1. A method for storing warehousing logistics data, characterized in that: The method comprises: Acquire a warehousing logistics data set to be stored, classify the warehousing logistics data set, and determine the storage priority of each type of warehousing logistics data subset; Calculate the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data, and store each type of warehousing and logistics data subset in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority, wherein each blockchain node includes a plurality of main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data; The storage location of the warehousing logistics data in each main chain storage unit is encrypted to obtain encrypted storage location information, and the storage location information is stored in the side chain storage unit corresponding to the main chain storage unit.
2. The method according to claim 1, characterized in that The calculation formula of the current weight value is: Among them, the is the current weight value of the i-th blockchain node, is the node performance correlation coefficient of the i-th blockchain node, is the data redundancy of the i-th blockchain node, is the node security correlation coefficient of the i-th blockchain node, Give the security score of the i-th blockchain node.
3. The method according to claim 2, characterized in that According to the current weight value and the storage priority, storing each type of warehousing logistics data subset in the main chain storage unit of different blockchain nodes includes: Determine a weight level of the corresponding blockchain node according to the current weight value, wherein the weight level is greater than or equal to the level of the storage priority; A subset of warehousing and logistics data with each level of storage priority is stored in the main chain storage unit of the blockchain node corresponding to the same level of weight level. If the blockchain node reaches the preset storage data volume, the warehousing and logistics data not stored in the subset of warehousing and logistics data with this level of storage priority is stored in the main chain storage unit of the blockchain node of the next level of weight level.
4. The method according to claim 3, characterized in that The storage location of the warehousing logistics data in each main chain storage unit is encrypted to obtain encrypted storage location information, including: Determine the coordinates of each warehousing logistics data according to the physical position or logical position of each warehousing logistics data in the main chain storage unit, wherein the main chain storage unit is regarded as a grid and each warehousing logistics data is regarded as a point on the grid; The coordinates of each storage logistics data are encrypted, and the encrypted coordinate information is obtained as follows: Among them, the is the encrypted coordinate information, wherein x is the horizontal coordinate of the warehousing logistics data, y is the vertical coordinate of the warehousing logistics data, A and B are the corresponding encryption coefficients, N is the modulus constant, and mod is the modulus operator.
5. A warehousing logistics data storage system, characterized in that: The system comprises: An acquisition module, used to acquire a warehousing logistics data set to be stored, classify the warehousing logistics data set, and determine the storage priority of each type of warehousing logistics data subset; A first storage module is used to calculate the current weight value of each blockchain node in the blockchain network used to store warehousing and logistics data, and store each type of warehousing and logistics data subset in the main chain storage unit of different blockchain nodes according to the current weight value and the storage priority, wherein each blockchain node includes a plurality of main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data; The second storage module is used to encrypt the storage location of the warehousing logistics data in each main chain storage unit respectively, obtain encrypted storage location information, and store the storage location information in the side chain storage unit corresponding to the main chain storage unit.
6. The system according to claim 5, characterized in that The calculation formula of the current weight value is: Among them, the is the current weight value of the i-th blockchain node, is the node performance correlation coefficient of the i-th blockchain node, is the data redundancy of the i-th blockchain node, is the node security correlation coefficient of the i-th blockchain node, Give the security score of the i-th blockchain node.
7. The system according to claim 6, characterized in that The first storage module is specifically used for: Determine a weight level of the corresponding blockchain node according to the current weight value, wherein the weight level is greater than or equal to the level of the storage priority; A subset of warehousing and logistics data with each level of storage priority is stored in the main chain storage unit of the blockchain node corresponding to the same level of weight level. If the blockchain node reaches the preset storage data volume, the warehousing and logistics data not stored in the subset of warehousing and logistics data with this level of storage priority is stored in the main chain storage unit of the blockchain node of the next level of weight level.
8. The system according to claim 7, characterized in that The second storage module is specifically used for: Determine the coordinates of each warehousing logistics data according to the physical position or logical position of each warehousing logistics data in the main chain storage unit, wherein the main chain storage unit is regarded as a grid and each warehousing logistics data is regarded as a point on the grid; The coordinates of each storage logistics data are encrypted, and the encrypted coordinate information is obtained as follows: Among them, the is the encrypted coordinate information, wherein x is the horizontal coordinate of the warehousing logistics data, y is the vertical coordinate of the warehousing logistics data, A and B are the corresponding encryption coefficients, N is the modulus constant, and mod is the modulus operator.
9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 4 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Cold-chain logistics carbon emission data monitoring method and device based on block chain and edge calculation
CN117114542A
Side chain type block chain alliance chain cross-chain supervision system
CN118012957A