Warehouse logistics data storage method and system
By applying blockchain technology in warehousing and logistics data storage, combining data classification, weight calculation and encrypted storage, the security and efficiency problems of traditional warehousing data storage methods are solved, and more efficient and secure warehousing management and logistics data processing are achieved.
Patent Information
- Application Number
- CN202510175491.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2045-02-18
AI Technical Summary
Traditional warehousing data storage methods rely on centralized databases, with single storage means and poor security, which cannot effectively solve the efficient circulation, security and real-time requirements of warehousing and logistics data.
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 the data to the main chain storage unit of different blockchain nodes according to the weight value and storage priority, encrypting the storage location and storing it 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 enhances the stability and response speed of the system.
Smart Images

Figure CN119646098A_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 faces unprecedented challenges in data storage and management. Modern warehouse management involves a wide range of data types, including inventory information, shipping status, environmental monitoring, and order processing records. The efficient flow of this data not only requires processing across multiple systems and platforms, but also requires ensuring data security, integrity, and real-time availability. However, traditional warehouse data storage methods, which mostly rely on centralized databases, offer limited storage methods and poor security, posing a pressing challenge. Summary of the Invention
[0003] The purpose of the present invention is to provide a warehousing and logistics data storage method and system to address the deficiencies in the existing technology, 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] One embodiment of the present application provides a method for storing warehousing logistics data, the method comprising: Acquire a warehousing and logistics data set to be stored, classify the warehousing and logistics data set, and determine a storage priority for each type of warehousing and logistics data subset; 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 a different blockchain node based on the current weight value and the storage priority, wherein each blockchain node includes multiple 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.
[0005] 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, The security score of the i-th blockchain node.
[0006] 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: Determine a weight level of the corresponding blockchain node based on the current weight value, wherein the weight level is greater than or equal to the level of the storage priority; The warehousing and logistics data subset of 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 warehousing and logistics data subset of the level of storage priority will be stored in the main chain storage unit of the blockchain node of the next level of weight level.
[0007] Optionally, 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 its physical location or logical location 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 warehouse 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 and logistics data, y is the vertical coordinate of the warehousing and logistics data, A and B are the corresponding encryption coefficients, N is the modulus constant, and mod is the modulus operator.
[0008] Another embodiment of the present application provides a warehousing logistics data storage system, the system comprising: An acquisition module, configured to acquire a warehousing and logistics data set to be stored, classify the warehousing and logistics data set, and determine a storage priority for each type of warehousing and logistics data subset; A first storage module is configured to calculate a current weight value of each blockchain node in a blockchain network for storing warehousing and logistics data, and store each type of warehousing and logistics data subset in a main chain storage unit of a different blockchain node based on the current weight value and the storage priority, wherein each blockchain node includes multiple main chain storage units and side chain storage units, and the main chain storage unit is configured 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.
[0009] 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 run.
[0010] Yet another embodiment of the present application provides an electronic device, comprising 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 above methods.
[0011] Compared with the existing technology, 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 the main chain storage unit of different blockchain nodes 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 to obtain encrypted storage location information, and stores the storage location information in the 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
[0012] 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; 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; Figure 3 A schematic structural diagram of a warehousing and logistics data storage system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0013] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limiting the present invention.
[0014] 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.
[0015] 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 for a warehouse logistics data storage method provided by an embodiment of the present invention. Figure 1As 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.
[0016] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, which, when executed, can cause the processor to execute any one of the warehouse logistics data storage methods.
[0017] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0018] 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.
[0019] 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 shown in the figure, or combine certain components, or have a different component arrangement.
[0020] It should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0021] See also Figure 2 An embodiment of the present invention provides a method for storing warehousing logistics data, which may include the following steps: S201, obtaining a warehousing and logistics data set to be stored, classifying the warehousing and logistics data set, and determining a storage priority for each type of warehousing and logistics data subset; 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 and divide it into different subsets, such as "temperature monitoring data", "goods in and out records", "transportation trajectory data", etc. The basis for classification is usually the type of data, its purpose and its importance to warehouse management. The system will then determine the storage priority of each data subset based on the degree of 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.
[0022] First, warehouse management systems can leverage sensors and information systems to automatically collect warehouse logistics data. This can be achieved through integration with existing ERP (Enterprise Resource Planning) systems or WMS (Warehouse Management System). After acquiring the data, the system applies pre-defined rules to categorize different types of data, such as by data content, timestamp, source, or other characteristics. Once categorized, the system analyzes the real-time demand and importance of each type of data and uses rule-based decision support algorithms (e.g., based on risk assessment or update frequency) to prioritize storage for each data type. Ultimately, the system maintains this classification and priority information for subsequent blockchain node storage, ensuring that the categorized data is efficiently and systematically stored on appropriate blockchain nodes, thereby maximizing the storage efficiency and security of logistics data.
[0023] By effectively classifying and prioritizing warehouse and logistics data, subsequent data storage strategies can be optimized, ensuring that critical data is prioritized for processing and storage even when storage resources are limited, thereby improving the responsiveness and efficiency of the entire warehouse and logistics system. Secondly, clear data classification helps enhance data manageability, enabling rapid location of required information during subsequent data retrieval and analysis, avoiding redundancy and confusion caused by fragmented data. Furthermore, reasonable storage priorities provide warehouse managers with an intuitive assessment of data importance, effectively supporting decision-making and ensuring 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 prioritization, the decentralized nature of blockchain can be more efficiently utilized, enhancing data reliability and security.
[0024] 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 a different blockchain node based on the current weight value and the storage priority, wherein each blockchain node includes multiple main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data; This process involves evaluating the performance of each node in the blockchain network to determine its suitability and priority for storage tasks. When calculating the current weight, the system comprehensively evaluates factors such as node performance, data redundancy, and security to determine each node's ability and reliability in processing specific data types. By combining these weights with pre-defined storage priorities, the system intelligently allocates each type of warehouse logistics data subset to the most appropriate blockchain node's main chain storage unit, ensuring data security and efficiency during storage.
[0025] This significant step not only ensures efficient storage of warehousing and logistics data but also improves data security and reliability. By rationally calculating the weights of blockchain nodes, the system balances the storage load across different nodes, preventing performance degradation or failures caused by overload on certain nodes, thereby enhancing the stability of the entire network. Furthermore, high-priority data is stored on nodes with better performance and security, reducing the risk of data loss or leakage and providing a reliable data foundation for real-time decision-making and analysis in 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 more streamlined.
[0026] Specifically, a calculation formula for the current weight value can be:
[0027] The significance of its design and construction lies in comprehensively evaluating the performance of blockchain nodes through multiple dimensions to ensure the intelligence and security of data storage. is the current weight value of the i-th 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 for the i-th blockchain node combines multiple security assessment criteria to provide a comprehensive security reference. This formula design quantifies the applicability of each node in storage tasks, facilitating dynamic storage management.
[0028] 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 a different blockchain node, 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; In this step, the system assigns a weight rank to each blockchain node based on its calculated current weight. Weight rank is determined based on each node's capabilities and reliability in storage tasks, ensuring it matches the storage priority of each type of data. Specifically, the system sets several weight thresholds and compares the node's weight values to determine the node's rank. For example, nodes with higher weight values may be assigned a rank of 1, while nodes with lower weight values may be assigned a rank of 3 or lower. This classification not only helps identify which nodes can handle higher-priority data but also provides clear guidance for subsequent data storage allocation.
[0029] This step is crucial in the data storage process. By rationally weighting nodes, it ensures that high-priority warehouse logistics data is stored preferentially on nodes with stronger capabilities, effectively reducing the risk of data loss or corruption. Furthermore, the weighting levels enable the system to flexibly respond to varying data storage needs. By dynamically allocating storage tasks across nodes, it improves storage resource utilization and overall system stability. Ultimately, this tiered storage strategy contributes to efficient and secure warehouse management.
[0030] In practice, the system sets a weighting standard, such as ranking all blockchain nodes in ascending order, and defining thresholds for each level. For example, the system categorizes nodes into three levels: Level 1, Level 2, and Level 3, and measures node performance based on pre-set criteria. Weighting assessments can be based on a comprehensive consideration of factors such as historical storage performance, system response time, and data integrity, generating a weighting for each node. This process can be performed periodically to ensure timely updates to weightings as node performance changes, maintaining adaptability in storage management.
[0031] The warehousing and logistics data subset of 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 warehousing and logistics data subset of the level of storage priority will be stored in the main chain storage unit of the blockchain node of the next level of weight level.
[0032] In this step, the system assigns different priority warehouse logistics data subsets to corresponding blockchain nodes based on the previously determined weight levels. This means that a data subset with a priority of 1 will be stored first in a node with a weight of 1, and so on. The system also monitors the storage status of these nodes. Once a node reaches its preset maximum storage capacity, the system automatically transfers any unstored data of that priority level to a node with the next higher weight level. This flexible storage mechanism ensures efficient data storage and access even when storage resources are limited.
[0033] The importance of this step is reflected in its improved data storage efficiency and security. By storing high-priority data in the best-performing nodes, the system reduces the risk of data loss and ensures that critical data is always available. Furthermore, the automatic transfer of unstored data not only improves storage resource utilization but also ensures that data is properly handled under all circumstances, avoiding data loss due to storage limits. This highly adaptable and intelligent storage strategy will enable the warehouse logistics system to operate efficiently and reliably in the face of changes and challenges.
[0034] In actual implementation, the system categorizes each subset of warehouse logistics data by priority and assigns it to the corresponding blockchain node based on pre-set conditions. For example, data with a priority of 1 will be stored in the main chain storage unit of all nodes with a weight of 1. If the storage capacity of these nodes reaches the preset upper limit, the system will initiate an automatic transfer mechanism to transfer the remaining priority 1 data to nodes with a weight of 2 for storage. This process requires the system to monitor the storage status of each node in real time and dynamically adjust it based on the node's storage capacity and security to ensure data integrity and availability.
[0035] S203, encrypting the storage location of the warehousing logistics data in each main chain storage unit to obtain encrypted storage location information, and storing the storage location information in the side chain storage unit corresponding to the main chain storage unit.
[0036] During this phase, the system performs location encryption on the warehouse and logistics data in each mainchain storage unit to protect the data's storage location information. By encrypting the location of each data item and generating encrypted storage location information, this ensures that the data is not exposed to attacks due to location information leakage during access or transmission. This encrypted location information is securely stored in the corresponding sidechain storage unit, further enhancing data security. This process not only maintains the privacy of warehouse and logistics data but also ensures the overall reliability of the system.
[0037] This step has significant security and privacy implications. By encrypting the storage location, the system effectively mitigates potential data leaks, ensuring that attackers cannot easily access the specific storage location of data, even during transmission or storage, thereby minimizing the possibility of data tampering or loss. Furthermore, storing encrypted location information on the sidechain reduces the burden on mainchain storage units, improving data storage flexibility and management efficiency. Ultimately, this encryption mechanism not only enhances the security of the warehousing and logistics system but also provides a robust data management tool.
[0038] Specifically, the storage location of the warehousing and logistics data in each main chain storage unit is encrypted to obtain encrypted storage location information. The coordinates of each warehousing and logistics data can be determined according to the physical location or logical location of each warehousing and logistics data in the main chain storage unit, wherein the main chain storage unit is regarded as a grid and each warehousing and logistics data is regarded as a point on the grid; In this step, the system treats the main chain storage unit as a two-dimensional grid, using physical or logical coordinates to represent the exact location of each piece of warehouse logistics data within 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 as a grid. Each piece of warehouse logistics data is treated as a point on the grid. This representation makes data storage and management more intuitive and facilitates subsequent encryption and retrieval operations.
[0039] This design step is crucial, improving the efficiency and organization of data access. By aligning data items, the system not only quickly locates specific data tracking points but also optimizes data access paths, reducing retrieval time. Furthermore, the grid-based structure provides a clear path for data management and maintenance, avoiding chaotic data storage. This design makes warehouse and logistics data management more standardized and systematic, laying a solid foundation for subsequent encryption and secure storage.
[0040] In practice, the system divides the main chain storage unit into multiple grids, setting a row and column structure. For example, each grid represents an area of a specific size, and the system assigns coordinates to each data item based on storage order or logical relationships. For example, if a piece of warehouse logistics data includes multiple attributes, the system might 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 is organized into a series of ordered coordinate positions within the grid, facilitating more efficient management and retrieval.
[0041] The coordinates of each warehouse logistics data are encrypted, and the encrypted coordinate information is obtained as follows:
[0042] The encryption formula is designed to protect the coordinate information of warehouse logistics data through mathematical operations. This formula combines the horizontal coordinate x and the vertical coordinate y through a linear combination to form the encrypted coordinate information. The introduction of modular operations ensures that the encrypted result is within a certain range, making it not only suitable for storage and management but also effectively resisting potential attacks.
[0043] Among them, the The encrypted coordinate information is represented by x, which represents the horizontal coordinate of the warehousing and logistics data, and y, which represents the vertical coordinate of the warehousing and logistics data. A and B represent the corresponding encryption coefficients, and N is the modulus constant, which is used to limit the range of the encryption result to ensure it is within a manageable range, helping to improve data storage efficiency and access speed. mod is the modulo operator, which ensures that the encrypted result is within a specific interval, ensuring that the encrypted position still has a certain regularity and is not too scattered.
[0044] In this step, the system encrypts the grid coordinates of each piece of warehouse logistics data to generate encrypted coordinate information. This process utilizes a linear encryption formula, combining the horizontal coordinate x and the vertical coordinate y and encrypting them, ensuring that the storage location of each data item is difficult to identify. Parameters A and B serve as encryption coefficients, increasing the randomness and complexity of the encrypted result, while the modular operation N ensures that the encrypted result is within a specific range, facilitating subsequent storage and management.
[0045] This step reinforces the importance of data security. By encrypting the coordinates, we protect the stored location information, preventing unauthorized access and data leakage. Encrypted coordinate information not only ensures the privacy of data during storage but also enhances the system's resilience against potential attacks. Furthermore, ensuring the structure of encrypted data makes subsequent decryption and data access more efficient, effectively supporting the security and smoothness of warehouse logistics data management.
[0046] During implementation, the system traverses the coordinates of each data item and encrypts each coordinate using pre-set encryption coefficients A and B to generate encrypted coordinate information. After encryption, this information is stored in the corresponding sidechain storage unit for subsequent access and management. This encryption process not only ensures data security but also provides a reliable way for the system to address increasingly complex cybersecurity challenges.
[0047] 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 according to the current weight value and the storage priority, each type of warehousing and logistics data subset is stored in the main chain storage unit of different blockchain nodes; the storage location of the warehousing and logistics data in each main chain storage unit is encrypted respectively 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, 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.
[0048] Another embodiment of the present invention provides a warehousing logistics data storage system, see Figure 3 , the system may include: An acquisition module 301 is configured to acquire a warehousing and logistics data set to be stored, classify the warehousing and logistics data set, and determine a storage priority for each type of warehousing and logistics data subset; A first storage module 302 is configured to calculate a current weight value of each blockchain node in a blockchain network for storing warehousing and logistics data, and store each type of warehousing and logistics data subset in a main chain storage unit of a different blockchain node based on the current weight value and the storage priority, wherein each blockchain node includes multiple 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 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.
[0049] 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 according to the current weight value and the storage priority, each type of warehousing and logistics data subset is stored in the main chain storage unit of different blockchain nodes; the storage location of the warehousing and logistics data in each main chain storage unit is encrypted respectively 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, 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.
[0050] An embodiment of the present invention further provides a storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.
[0051] Specifically, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps: S201, obtaining a warehousing and logistics data set to be stored, classifying the warehousing and logistics data set, and determining a storage priority for each type of warehousing and logistics data subset; 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 a different blockchain node based on the current weight value and the storage priority, wherein each blockchain node includes multiple main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data; S203, encrypting the storage location of the warehousing logistics data in each main chain storage unit to obtain encrypted storage location information, and storing the storage location information in the side chain storage unit corresponding to the main chain storage unit.
[0052] 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 according to the current weight value and the storage priority, each type of warehousing and logistics data subset is stored in the main chain storage unit of different blockchain nodes; the storage location of the warehousing and logistics data in each main chain storage unit is encrypted respectively 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, 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.
[0053] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
[0054] 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.
[0055] Specifically, in this embodiment, the processor may be configured to execute the following steps through a computer program: S201, obtaining a warehousing and logistics data set to be stored, classifying the warehousing and logistics data set, and determining a storage priority for each type of warehousing and logistics data subset; 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 a different blockchain node based on the current weight value and the storage priority, wherein each blockchain node includes multiple main chain storage units and side chain storage units, and the main chain storage unit is used to store warehousing and logistics data; S203, encrypting the storage location of the warehousing logistics data in each main chain storage unit to obtain encrypted storage location information, and storing the storage location information in the side chain storage unit corresponding to the main chain storage unit.
[0056] 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 according to the current weight value and the storage priority, each type of warehousing and logistics data subset is stored in the main chain storage unit of different blockchain nodes; the storage location of the warehousing and logistics data in each main chain storage unit is encrypted respectively 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, 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.
[0057] 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 scope of implementation of the present invention is not limited to what is shown in the drawings. Any changes made in accordance with the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which do not exceed the spirit covered by the description and drawings, should be within the scope of protection 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 product federal recommendation method and device based on multi-level block chain
CN116109372A
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
Unmanned moving vehicle communication control system using blockchain and unmanned moving vehicle communication method using same
WO2020149561A1