WO2019184210A1 - Multi-warehouse data management method based on block chain and related device - Google Patents

Multi-warehouse data management method based on block chain and related device Download PDF

Info

Publication number
WO2019184210A1
WO2019184210A1 PCT/CN2018/101679 CN2018101679W WO2019184210A1 WO 2019184210 A1 WO2019184210 A1 WO 2019184210A1 CN 2018101679 W CN2018101679 W CN 2018101679W WO 2019184210 A1 WO2019184210 A1 WO 2019184210A1
Authority
WO
WIPO (PCT)
Prior art keywords
warehouse
blockchain
node
inventory data
data
Prior art date
Application number
PCT/CN2018/101679
Other languages
French (fr)
Chinese (zh)
Inventor
卢吉
Original Assignee
深圳春沐源控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳春沐源控股有限公司 filed Critical 深圳春沐源控股有限公司
Publication of WO2019184210A1 publication Critical patent/WO2019184210A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0435Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Definitions

  • the present application relates to the field of information processing, and in particular, to a blockchain-based multi-warehouse data management method and related equipment.
  • Warehouse material management is a vital link in social production. At present, most social production is still managed by manual registration in warehouse material management, and there is a lack of a reliable management method.
  • the management of the inbound and outbound data of each warehouse and the inventory data are often independent of each other.
  • the library management and The operators manually query one by one the management cost is greatly increased, but the material management efficiency is low, which is not conducive to material inventory and retrieval.
  • the information exchange between each other often has a long delay and low data reliability.
  • the embodiment of the present application provides a blockchain-based multi-warehouse data management method and related equipment, which is used for scientifically and effectively managing multi-warehouse materials, improving the efficiency of warehouse material management, and reliability of warehouse data.
  • the first aspect of the embodiment of the present application provides a blockchain-based multi-warehouse data management method, which is characterized in that:
  • the corresponding warehouse node updates the local inventory data
  • the warehouse node in the access blockchain includes at least two;
  • the warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same kind of materials in each warehouse node.
  • the warehouse node updates the local inventory data, and further includes:
  • the method further includes:
  • the query request instructing to query inventory information of a specific kind of material or querying inventory information of various materials in a specific warehouse
  • the inventory information corresponding to the query request is fed back to the client.
  • the method further includes:
  • the broadcast message When receiving the broadcast message of each warehouse node, the broadcast message is decrypted and verified according to the key pair corresponding to the warehouse node, and if the verification is passed, the block in the corresponding broadcast message is synchronized to the locally stored blockchain.
  • the second aspect of the embodiments of the present application provides a blockchain-based multi-warehouse data management device, which includes:
  • the update module is configured to update the local inventory data when the local inventory data of the warehouse node in the access blockchain changes, and the warehouse node in the access blockchain includes at least two;
  • a synchronization module for writing the updated local inventory data into the block and synchronizing into the blockchain
  • the statistics module is configured to extract the latest local inventory data of each warehouse node from the blockchain, and collect inventory data of the same kind of materials in each warehouse node.
  • the updating module includes:
  • a receiving unit configured to receive an update request sent by the user by using a client, where the update request includes at least a user ID;
  • a verification unit configured to verify whether the user ID matches the preset ID list, and if yes, receive operation information of the user, and update the local inventory data according to the operation information.
  • the multi-storehouse data management device based on the blockchain further includes:
  • a receiving module configured to receive a query request sent by the user through the client, where the query request indicates to query inventory information of a specific type of material or query inventory information of various materials in a specific warehouse;
  • a feedback module configured to feed back, to the client, the inventory information corresponding to the query request.
  • the multi-storehouse data management device based on the blockchain further includes:
  • a configuration module configured to configure a corresponding ID and a corresponding key pair for each warehouse node
  • the verification module when receiving the broadcast message of each warehouse node, is used for decrypting and verifying the broadcast message according to the key pair corresponding to the warehouse node, and if the verification is passed, synchronizing the block in the corresponding broadcast message to the local storage In the blockchain.
  • a third aspect of the embodiments of the present application provides a computer device, comprising: a processor and a memory, wherein the processor is configured to implement the computer program stored in the memory, such as the first aspect and the first aspect The steps in any of the possible embodiments.
  • a fourth aspect of the embodiments of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement any one of the first aspect and the first aspect. The steps in a possible implementation of the item.
  • the embodiments of the present application have the following advantages:
  • the management device of the multiple warehouses can access the blockchain to become a warehouse node in the blockchain.
  • the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node
  • the local inventory data can be updated in real time.
  • the warehouse node can write the updated local inventory data to the block in real time and synchronize it to the blockchain, and access other block nodes of the blockchain from the block.
  • the latest local inventory data of each warehouse node is extracted in the chain, and the inventory data of the same kind of materials in each warehouse node is statistically calculated in real time by using the latest inventory data in the blockchain, that is, the inventory data of multiple warehouses is realized in the embodiment of the present application. Real-time update and comprehensive management to improve the efficiency of warehouse material management and warehouse data reliability.
  • FIG. 1 is a schematic diagram of an embodiment of a multi-storehouse data management method based on a blockchain according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of another embodiment of a method for managing multiple warehouse data based on a blockchain according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of an embodiment of a multi-storehouse data management apparatus based on a blockchain according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of another embodiment of a multi-storehouse data management apparatus based on a blockchain according to an embodiment of the present application;
  • FIG. 5 is a schematic diagram of another embodiment of a multi-storehouse data management apparatus based on a blockchain according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an embodiment of a computer device according to an embodiment of the present application.
  • the embodiment of the present application provides a blockchain-based multi-warehouse data management method and related equipment, which is used for scientifically and effectively managing multi-warehouse materials, improving the efficiency of warehouse material management, and reliability of warehouse data.
  • the present application relates to a blockchain technology.
  • a blockchain Block Chain
  • the blockchain is disclosed to all blockchain nodes of the access server.
  • the data structure of distributed storage contains several blocks.
  • the user terminal including the client can be registered as a blockchain node, and the other blockchain nodes of the access blockchain server form a P2P network, and the blockchain data can be stored in each node of the P2P network, and any one or more of the P2P networks.
  • Blockchain nodes will not cause the loss of blockchain data, so the blockchain data has strong security, ensuring permanent preservation and non-tampering of data.
  • the blockchain node of the access server can add the block; the block is added to the blockchain data one by one according to the persistence time order, except Each block outside the first block in the blockchain data is linked to its previous block, so that the blockchain data forms a block link, just like a chain. After a block is persisted to the blockchain data, the block cannot be modified.
  • an embodiment of a blockchain-based multi-warehouse data management method in the embodiment of the present application may include: 101, when accessing When the local inventory data of the warehouse node in the blockchain changes, the corresponding warehouse node updates the local inventory data.
  • a management device may be configured for multiple warehouses in the same area or different regions, and a point-to-point distributed data transmission and storage architecture is established through the blockchain technology, and management devices of each warehouse can be registered as blocks.
  • One node of the chain, each warehouse management device of the access blockchain acts as a node of the blockchain, and each node can independently upload and calculate data.
  • the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node can update the local inventory data according to the operation of the administrator.
  • the updated local inventory data may be written into the block for broadcasting, so that the node accessing the blockchain synchronizes the latest block into the blockchain and stores them in each node respectively. database.
  • the warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same type of materials in each warehouse node.
  • each node Since each blockchain node will synchronize the latest local inventory to the blockchain in real time, each node can extract the latest local inventory data of each warehouse node in the blockchain, and use this to count the same in each warehouse node.
  • the inventory data of the kind of materials because the data in the blockchain acquired by each node is consistent, the final statistics are also consistent.
  • the specific inventory data may further include a location number corresponding to each location, a box number corresponding to each storage box, a weight or a number of each box number, etc., and specific inventory data may be reasonably set according to actual needs. There is no limit here.
  • the inventory data may be counted according to the type of the material, and the inventory data may be counted according to the production state of the material, which is not limited herein.
  • the production state of the material which is not limited herein.
  • Table 1 it is divided into three states according to the production state of the product: semi-finished products, finished products, and finished packaging products.
  • the corresponding local inventory data may be the storage amount of the semi-finished warehouse material, the storage capacity of the finished warehouse material, and the storage capacity of the product warehouse material.
  • the total inventory data of the warehouses in various regions of the country may be calculated according to the local inventory data of each region. .
  • the management device of the multiple warehouses can access the blockchain to become a warehouse node in the blockchain.
  • the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node
  • the local inventory data can be updated in real time.
  • the warehouse node can write the updated local inventory data to the block in real time and synchronize it to the blockchain, and access other block nodes of the blockchain from the block.
  • the latest local inventory data of each warehouse node is extracted in the chain, and the inventory data of the same kind of materials in each warehouse node is statistically calculated in real time by using the latest inventory data in the blockchain, that is, the inventory data of multiple warehouses is realized in the embodiment of the present application. Real-time update and comprehensive management to improve the efficiency of warehouse material management and warehouse data reliability.
  • An embodiment can include:
  • the corresponding warehouse node updates the local inventory data.
  • a management device may be configured for multiple warehouses in the same area or different regions, and a point-to-point distributed data transmission and storage architecture is established through the blockchain technology, and management devices of each warehouse can be registered as blocks.
  • One node of the chain, each warehouse management device of the access blockchain acts as a node of the blockchain, and each node can independently upload and calculate data.
  • the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node can update the local inventory data according to the operation of the administrator.
  • the specific process for the warehouse node to update the local inventory data may include:
  • the node device of each warehouse can be managed by one or more administrators, and each user can be assigned a specific permission, and a corresponding ID list is preset for each operation, and the user corresponding to the user ID in the ID list is associated. Has the corresponding operation authority. For example, according to the type of materials in each warehouse, each manager only has the management right of the warehouse data of one or more materials, and the specific rights allocation can be reasonably configured according to actual needs. Not limited.
  • the corresponding management personnel can log in to the node device according to the user ID, and send an update request to the node device, and the node device can receive the user to send through the client.
  • An update request the update request includes at least a user ID, and the node device can verify whether the user ID matches the preset ID list, and if the match indicates that the user has the corresponding operation right item, the node device can receive the operation information of the user. And update local inventory data based on operational information.
  • the updated local inventory data may be written into the block for broadcasting, so that the node accessing the blockchain synchronizes the latest block into the blockchain and stores them in each node respectively. database.
  • each warehouse node device when each warehouse node device sends a broadcast message to perform blockchain synchronization, the block in the broadcast message may be verified.
  • each warehouse node may be assigned a corresponding ID and a corresponding key when the warehouse node is registered; the specific server may use a symmetric encryption algorithm to allocate a key and an ID to the warehouse node, or use an asymmetric algorithm to allocate the warehouse node. If a key pair and ID are symmetric encryption algorithms, in the symmetric encryption algorithm, the data sender can process the plaintext (original data) together with the encryption key through a special encryption algorithm to make it a complex encryption key. The text is sent out.
  • the key pair assigned by the algorithm is described as an example.
  • the key pair includes a public key (Public Key) and a corresponding private key (Private Key).
  • the public key and the private key are obtained by an encryption algorithm, for example, encryption.
  • the algorithm is a Rivest-Shamir-Adleman (RSA) or a Digital Signature Algorithm (DSA) public key, which is a public part of the key pair and is publicly disclosed.
  • the private key is a non-public part that is not publicly available and needs to be saved by the warehouse node.
  • Public keys are typically used to encrypt session keys, verify digital signatures, or encrypt data that can be decrypted with the corresponding private key.
  • the key pair obtained by this algorithm is guaranteed to be unique worldwide. When using this key pair, if one piece of data is used to encrypt a piece of data, it must be decrypted with another key. For example, encrypting data with a public key must be decrypted with a private key. If it is encrypted with a private key, it must be decrypted with a public key, otherwise the decryption will not succeed.
  • the public key and the private key may be 256 bits or more in length.
  • the public key can also be used to generate an identity ID.
  • the ID can be generated by a certain operation of the public key.
  • the ID is in one-to-one correspondence with the public key.
  • the ID can be a hash value of the public key or the public key or contain the public key. A script with an operation instruction, etc.
  • the ID is used to identify the warehouse node.
  • the ID of the warehouse node can be generated by the public key of the warehouse node, and the public key of the warehouse node is in one-to-one correspondence, and the guarantee is unique to the entire network.
  • the ID of the warehouse node may be the public key of the warehouse node itself, or may be a public key hash value generated by hashing the public key of the warehouse node according to a hash algorithm, or may be a script including a public key.
  • the private key is the signature of the smart contract or the bidding block issued by the warehouse node.
  • the warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same type of materials in each warehouse node.
  • step 203 in the embodiment is similar to the content described in the step 103 in the embodiment shown in FIG. 1 .
  • step 103 which is not described herein.
  • each blockchain node may receive a query request sent by the client through the client, and query the request. Instructing to query the inventory information of a specific kind of material or query the inventory information of various materials in a specific warehouse, the blockchain node can feed back the inventory information corresponding to the query request to the client according to the query type of the user.
  • the management device of the multiple warehouses can access the blockchain to become a warehouse node in the blockchain.
  • the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node
  • the local inventory data can be updated in real time.
  • the warehouse node can write the updated local inventory data to the block in real time and synchronize it to the blockchain, and access other block nodes of the blockchain from the block.
  • the latest local inventory data of each warehouse node is extracted in the chain, and the inventory data of the same kind of materials in each warehouse node is statistically calculated in real time by using the latest inventory data in the blockchain, that is, the inventory data of multiple warehouses is realized in the embodiment of the present application. Real-time update and comprehensive management to improve the efficiency of warehouse material management and warehouse data reliability.
  • the size of the sequence numbers of the above steps does not mean the order of execution order, and the order of execution of each step should be determined by its function and internal logic, and should not be applied to this application.
  • the implementation of the embodiments constitutes any limitation.
  • an embodiment of a blockchain-based multi-warehouse data management device in the embodiment of the present application may include:
  • the update module 301 is configured to update the local inventory data when the local inventory data of the warehouse node in the access blockchain changes, and the warehouse node in the access blockchain includes at least two;
  • the synchronization module 302 is configured to write the updated local inventory data into the block and synchronize to the blockchain;
  • the statistics module 303 is configured to extract the latest local inventory data of each warehouse node from the blockchain, and collect inventory data of the same kind of materials in each warehouse node.
  • the update module 301 in the embodiment of the present application may include:
  • the receiving unit 3011 is configured to receive an update request sent by the user by using a client, where the update request includes at least a user ID;
  • the verification unit 3012 is configured to verify whether the user ID matches the preset ID list, and if yes, receive the operation information of the user, and update the local inventory data according to the operation information.
  • the blockchain-based multi-warehouse data management apparatus in the embodiment of the present application may further include:
  • the receiving module 304 is configured to receive a query request sent by the user through the client, where the query request indicates to query inventory information of a specific type of material or query inventory information of various materials in a specific warehouse;
  • the feedback module 305 is configured to feed back the inventory information corresponding to the query request to the client.
  • the blockchain-based multi-warehouse data management apparatus in the embodiment of the present application may further include:
  • the configuration module 306 is configured to configure a corresponding ID and a corresponding key pair for each warehouse node.
  • the verification module 307 is configured to perform decryption verification on the broadcast message according to the key pair corresponding to the warehouse node when receiving the broadcast message of each warehouse node, and if the verification passes, synchronize the block in the corresponding broadcast message to the local storage. In the blockchain.
  • the management device of the multiple warehouses can access the blockchain to become a warehouse node in the blockchain.
  • the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node
  • the local inventory data can be updated in real time.
  • the warehouse node can write the updated local inventory data to the block in real time and synchronize it to the blockchain, and access other block nodes of the blockchain from the block.
  • the latest local inventory data of each warehouse node is extracted in the chain, and the inventory data of the same kind of materials in each warehouse node is statistically calculated in real time by using the latest inventory data in the blockchain, that is, the inventory data of multiple warehouses is realized in the embodiment of the present application. Real-time update and comprehensive management to improve the efficiency of warehouse material management and warehouse data reliability.
  • the vehicle accessory data processing device for the blockchain in the embodiment of the present application is described above from the perspective of the modular functional entity.
  • the computer device in the embodiment of the present application is described below from the perspective of hardware processing:
  • the embodiment of the present application further provides a computer device 6, as shown in FIG. 6.
  • the computer device 6 generally refers to a computer device having a strong processing capability such as a server.
  • computer device 6 includes a power source 610, a memory 620, a processor 630, a wired or wireless network interface 640, and a computer program stored in the memory and executable on the processor.
  • the steps in the embodiments of the various vehicle OBD joint management methods described above are implemented when the processor executes the computer program, such as steps 101 through 103 shown in FIG.
  • the functions of the various modules or units in the various apparatus embodiments described above are implemented when the processor executes a computer program.
  • the processor is specifically configured to implement the following steps:
  • the corresponding warehouse node updates the local inventory data
  • the warehouse node in the access blockchain includes at least two;
  • the warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same kind of materials in each warehouse node.
  • the processor may be further configured to implement the following steps:
  • the processor may be further configured to implement the following steps:
  • the query request instructing to query inventory information of a specific kind of material or querying inventory information of various materials in a specific warehouse
  • the inventory information corresponding to the query request is fed back to the client.
  • the processor may be further configured to implement the following steps:
  • the broadcast message When receiving the broadcast message of each warehouse node, the broadcast message is decrypted and verified according to the key pair corresponding to the warehouse node, and if the verification is passed, the block in the corresponding broadcast message is synchronized to the locally stored blockchain.
  • the computer device 6 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • a computer program can be partitioned into one or more modules/units, one or more modules/units being stored in memory and executed by a processor.
  • One or more modules/units may be a series of computer program instructions that are capable of performing a particular function, which is used to describe the execution of a computer program in a computer device.
  • FIG. 6 does not constitute a limitation to the computer device 6, and the computer device 6 may include more or less components than those illustrated, or may combine certain components, or different components. Arrangements, such as computer devices, may also include input and output devices, buses, and the like.
  • the so-called processor can be a central processing unit (CPU), or other general-purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the processor is the control center of the computer device, and the various portions of the entire computer device are connected by various interfaces and lines.
  • the memory can be used to store computer programs and/or modules that perform various functions of the computer device by running or executing computer programs and/or modules stored in the memory, and by invoking data stored in the memory.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the storage data area may be stored according to the mobile phone. Use the created data (such as audio data, phone book, etc.).
  • the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • Flash Card at least one disk storage device, flash memory device, or other volatile solid-state storage device.
  • the present application also provides a computer readable storage medium having a computer program stored thereon.
  • the computer program When the computer program is executed by the processor, the following steps can be implemented:
  • the corresponding warehouse node updates the local inventory data
  • the warehouse node in the access blockchain includes at least two;
  • the warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same kind of materials in each warehouse node.
  • the processor may be further configured to implement the following steps:
  • the processor may be further configured to implement the following steps:
  • the query request instructing to query inventory information of a specific kind of material or querying inventory information of various materials in a specific warehouse
  • the inventory information corresponding to the query request is fed back to the client.
  • the processor may be further configured to implement the following steps:
  • the broadcast message When receiving the broadcast message of each warehouse node, the broadcast message is decrypted and verified according to the key pair corresponding to the warehouse node, and if the verification is passed, the block in the corresponding broadcast message is synchronized to the locally stored blockchain.
  • the modules/units integrated by the computer device can be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the present application implements all or part of the processes in the above embodiments, and can also be completed by a computer program to instruct related hardware.
  • the computer program can be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when executed by a processor.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code form, executable file or some intermediate form.
  • the computer readable medium may include any entity or device capable of carrying computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-Only Memory (ROM), a random access device. Memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media does not include Electrical carrier signal and telecommunication signal.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of cells is only a logical function division.
  • multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

Abstract

Provided in the application are a multi-warehouse data management method based on a block chain and a related device, for properly and effectively managing multi-warehouse materials, improving efficiency of material management of warehouses and improving warehouse data reliability. The method comprises the following steps: when local inventory data of a warehouse node accessed to the block chain changes, updating local inventory data of corresponding warehouse node, wherein the warehouse node accessed to the block chain at least comprises two nodes; writing the updated local inventory data into the block and synchronizing the same into the block chain; and the warehouse node accessed to the block chain extracts the latest local inventory data of each warehouse node from the block chain and thereby counts the inventory data of the same kind of materials in each warehouse node.

Description

一种基于区块链的多库房数据管理方法及相关设备Multi-storehouse data management method based on blockchain and related equipment
本申请要求于2018年3月27日提交中国专利局、申请号为201810259105.7、发明名称为“一种基于区块链的多库房数据管理方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on March 27, 2018, the Chinese Patent Office, application number 201810259105.7, the invention titled "a blockchain-based multi-warehouse data management method and related equipment", all of which The content is incorporated herein by reference.
技术领域Technical field
本申请涉及信息处理领域,具体涉及一种基于区块链的多库房数据管理方法及相关设备。The present application relates to the field of information processing, and in particular, to a blockchain-based multi-warehouse data management method and related equipment.
背景技术Background technique
库房物料管理是社会生产的一个至关重要的环节,目前大多数社会生产在库房物料管理时仍采用人工登记的方式进行管理,缺乏一套可靠的管理方法。Warehouse material management is a vital link in social production. At present, most social production is still managed by manual registration in warehouse material management, and there is a lack of a reliable management method.
现有的农业生产领域的库房管理中,尤其对于多库房的出入库数据的管理,各个库房的出入库数据及库存数据的管理往往是相互独立的,物资盘点或调取时,需要库管和操作人员人工逐一查询,管理成本大大增加但物料管理效率低下,不利于物料盘点及调取,其次,相互之间的信息交换往往具有较长的延时,数据可靠性低。In the existing warehouse management in the field of agricultural production, especially for the management of the data of the warehouses in the multi-depots, the management of the inbound and outbound data of each warehouse and the inventory data are often independent of each other. When the materials are inventoried or retrieved, the library management and The operators manually query one by one, the management cost is greatly increased, but the material management efficiency is low, which is not conducive to material inventory and retrieval. Secondly, the information exchange between each other often has a long delay and low data reliability.
因此,如何科学有效的管理多库房物料,提高库房物料管理的效率、库房数据可靠性,成为亟待解决的问题。Therefore, how to scientifically and effectively manage multi-cabin materials, improve the efficiency of warehouse material management, and the reliability of warehouse data has become an urgent problem to be solved.
发明内容Summary of the invention
本申请实施例提供了一种基于区块链的多库房数据管理方法及相关设备,用于科学有效的管理多库房物料,提高库房物料管理的效率、库房数据可靠性。The embodiment of the present application provides a blockchain-based multi-warehouse data management method and related equipment, which is used for scientifically and effectively managing multi-warehouse materials, improving the efficiency of warehouse material management, and reliability of warehouse data.
本申请实施例第一方面提供了一种基于区块链的多库房数据管理方法,其特征在于,包括:The first aspect of the embodiment of the present application provides a blockchain-based multi-warehouse data management method, which is characterized in that:
当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点更新本地库存数据,接入区块链中的库房节点至少包括两个;When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node updates the local inventory data, and the warehouse node in the access blockchain includes at least two;
将更新之后的本地库存数据写入区块,并同步到区块链中;Write the updated local inventory data to the block and synchronize to the blockchain;
接入区块链的库房节点从区块链中提取各个库房节点最新的本地库存数据,并以此统计各个库房节点中相同种类的物料的库存数据。The warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same kind of materials in each warehouse node.
可选的,作为一种可能的实施方式,本申请实施例中,所述库房节点更新本地库存数据,还包括:Optionally, as a possible implementation manner, in the embodiment of the present application, the warehouse node updates the local inventory data, and further includes:
接收用户通过客户端发送的更新请求,所述更新请求中至少包含用户ID;Receiving an update request sent by the user through the client, where the update request includes at least a user ID;
验证所述用户ID是否与预置的ID列表匹配,若匹配,则接收用户的操作信息,并根据所述操作信息更新本地库存数据。Verifying that the user ID matches the preset ID list, and if so, receiving the user's operation information, and updating the local inventory data according to the operation information.
可选的,作为一种可能的实施方式,本申请实施例中,所述方法还包括:Optionally, as a possible implementation manner, in the embodiment of the present application, the method further includes:
接收用户通过客户端发送的查询请求,所述查询请求指示查询特定种类物料的库存信息或查询特定库房中各种物料的库存信息;Receiving a query request sent by the user through the client, the query request instructing to query inventory information of a specific kind of material or querying inventory information of various materials in a specific warehouse;
向客户端反馈所述查询请求对应的库存信息。The inventory information corresponding to the query request is fed back to the client.
可选的,作为一种可能的实施方式,本申请实施例中,所述方法还包括:Optionally, as a possible implementation manner, in the embodiment of the present application, the method further includes:
为每个库房节点对应的ID及对应的密钥对;The ID corresponding to each warehouse node and the corresponding key pair;
当接收到每个库房节点广播消息时,根据库房节点对应的密钥对,对广播消息进行解密验证,若验证通过,则将对应的广播消息中区块同步到本地存储的区块链中。When receiving the broadcast message of each warehouse node, the broadcast message is decrypted and verified according to the key pair corresponding to the warehouse node, and if the verification is passed, the block in the corresponding broadcast message is synchronized to the locally stored blockchain.
本申请实施例第二方面提供了一种基于区块链的多库房数据管理装置,其特征在于,包括:The second aspect of the embodiments of the present application provides a blockchain-based multi-warehouse data management device, which includes:
更新模块,当接入区块链中的库房节点的本地库存数据发生变化时,用于更新本地库存数据,接入区块链中的库房节点至少包括两个;The update module is configured to update the local inventory data when the local inventory data of the warehouse node in the access blockchain changes, and the warehouse node in the access blockchain includes at least two;
同步模块,用于将更新之后的本地库存数据写入区块,并同步到区块链中;a synchronization module for writing the updated local inventory data into the block and synchronizing into the blockchain;
统计模块,用于从区块链中提取各个库房节点最新的本地库存数据,并以此统计各个库房节点中相同种类的物料的库存数据。The statistics module is configured to extract the latest local inventory data of each warehouse node from the blockchain, and collect inventory data of the same kind of materials in each warehouse node.
可选的,作为一种可能的实施方式,本申请实施例中,所述更新模块包括:Optionally, as a possible implementation manner, in the embodiment of the present application, the updating module includes:
接收单元,用于接收用户通过客户端发送的更新请求,所述更新请求中至少包含用户ID;a receiving unit, configured to receive an update request sent by the user by using a client, where the update request includes at least a user ID;
验证单元,用于验证所述用户ID是否与预置的ID列表匹配,若匹配,则接收用户的操作信息,并根据所述操作信息更新本地库存数据。And a verification unit, configured to verify whether the user ID matches the preset ID list, and if yes, receive operation information of the user, and update the local inventory data according to the operation information.
可选的,作为一种可能的实施方式,本申请实施例中,基于区块链的多库 房数据管理装置,还包括:Optionally, as a possible implementation manner, in the embodiment of the present application, the multi-storehouse data management device based on the blockchain further includes:
接收模块,用于接收用户通过客户端发送的查询请求,所述查询请求指示查询特定种类物料的库存信息或查询特定库房中各种物料的库存信息;a receiving module, configured to receive a query request sent by the user through the client, where the query request indicates to query inventory information of a specific type of material or query inventory information of various materials in a specific warehouse;
反馈模块,用于向客户端反馈所述查询请求对应的库存信息。And a feedback module, configured to feed back, to the client, the inventory information corresponding to the query request.
可选的,作为一种可能的实施方式,本申请实施例中,基于区块链的多库房数据管理装置,还包括:Optionally, as a possible implementation manner, in the embodiment of the present application, the multi-storehouse data management device based on the blockchain further includes:
配置模块,用于为每个库房节点配置对应的ID及对应的密钥对;a configuration module, configured to configure a corresponding ID and a corresponding key pair for each warehouse node;
验证模块,当接收到每个库房节点广播消息时,用于根据库房节点对应的密钥对,对广播消息进行解密验证,若验证通过,则将对应的广播消息中区块同步到本地存储的区块链中。The verification module, when receiving the broadcast message of each warehouse node, is used for decrypting and verifying the broadcast message according to the key pair corresponding to the warehouse node, and if the verification is passed, synchronizing the block in the corresponding broadcast message to the local storage In the blockchain.
本申请实施例第三方面提供了一种计算机装置,其特征在于,所述计算机装置包括处理器及存储器,所述处理器用于执行存储器中存储的计算机程序时实现如第一方面及第一方面中任意一项可能的实施方式中的步骤。A third aspect of the embodiments of the present application provides a computer device, comprising: a processor and a memory, wherein the processor is configured to implement the computer program stored in the memory, such as the first aspect and the first aspect The steps in any of the possible embodiments.
本申请实施例第四方面提供了一种计算机装置可读存储介质,其上存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现如第一方面及第一方面中任意一项可能的实施方式中的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement any one of the first aspect and the first aspect. The steps in a possible implementation of the item.
从以上技术方案可以看出,本申请实施例具有以下优点:As can be seen from the above technical solutions, the embodiments of the present application have the following advantages:
本申请实施例中,多个库房的管理设备可以接入区块链成为区块链中的一个库房节点,当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点可以实时更新本地库存数据,本地库存数据更新之后,库房节点可以将更新之后的本地库存数据实时的写入区块,并同步到区块链中,接入区块链的其他库房节点从区块链中提取各个库房节点最新的本地库存数据,并以此区块链中的最新库存数据实时统计各个库房节点中相同种类的物料的库存数据,即本申请实施例实现了多个库房中库存数据的实时更新及综合管理,提高库房物料管理的效率、库房数据可靠性。In the embodiment of the present application, the management device of the multiple warehouses can access the blockchain to become a warehouse node in the blockchain. When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node The local inventory data can be updated in real time. After the local inventory data is updated, the warehouse node can write the updated local inventory data to the block in real time and synchronize it to the blockchain, and access other block nodes of the blockchain from the block. The latest local inventory data of each warehouse node is extracted in the chain, and the inventory data of the same kind of materials in each warehouse node is statistically calculated in real time by using the latest inventory data in the blockchain, that is, the inventory data of multiple warehouses is realized in the embodiment of the present application. Real-time update and comprehensive management to improve the efficiency of warehouse material management and warehouse data reliability.
附图说明DRAWINGS
图1为本申请实施例中一种基于区块链的多库房数据管理方法的一个实施例示意图;FIG. 1 is a schematic diagram of an embodiment of a multi-storehouse data management method based on a blockchain according to an embodiment of the present application;
图2为本申请实施例中一种基于区块链的多库房数据管理方法的另一个实施例示意图;2 is a schematic diagram of another embodiment of a method for managing multiple warehouse data based on a blockchain according to an embodiment of the present application;
图3为本申请实施例中一种基于区块链的多库房数据管理装置的一个实施例示意图;FIG. 3 is a schematic diagram of an embodiment of a multi-storehouse data management apparatus based on a blockchain according to an embodiment of the present application;
图4为本申请实施例中一种基于区块链的多库房数据管理装置的另一个实施例示意图;4 is a schematic diagram of another embodiment of a multi-storehouse data management apparatus based on a blockchain according to an embodiment of the present application;
图5为本申请实施例中一种基于区块链的多库房数据管理装置的另一个实施例示意图;FIG. 5 is a schematic diagram of another embodiment of a multi-storehouse data management apparatus based on a blockchain according to an embodiment of the present application; FIG.
图6为本申请实施例中一种计算机装置的一个实施例示意图。FIG. 6 is a schematic diagram of an embodiment of a computer device according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例提供了一种基于区块链的多库房数据管理方法及相关设备,用于科学有效的管理多库房物料,提高库房物料管理的效率、库房数据可靠性。The embodiment of the present application provides a blockchain-based multi-warehouse data management method and related equipment, which is used for scientifically and effectively managing multi-warehouse materials, improving the efficiency of warehouse material management, and reliability of warehouse data.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is an embodiment of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope shall fall within the scope of the application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe specific Order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
本申请涉及区块链技术,为了便于理解,下面将对在本申请实施例中的区块链(Block Chain)进行简单的介绍,区块链是对接入服务器的所有区块链节点公开的分布式存储的数据结构,包含着若干的区块(Block)。包含客户端的用户 终端可以注册成为一个区块链节点,与接入区块链服务器的其他区块链节点组成P2P网络,区块链数据可以存放在P2P网络的各个节点,P2P网络任何一个或多个区块链节点瘫痪,都不会导致区块链数据的丢失,这样区块链数据就具有很强的安全性,确保数据的永久保存和不可篡改。当一个区块持久化到区块链数据中时,接入服务器的区块链节点都可以添加该区块;区块是按照持久化时间顺序一个一个地添加到区块链数据中的,除了区块链数据中第一个区块外的每一个区块都要链接到其前一个区块,这样区块链数据就形成一个区块链接这一个区块了,就像一个链条一样,当一个区块被持久化到区块链数据后,该区块就无法被修改了。The present application relates to a blockchain technology. For ease of understanding, a blockchain (Block Chain) in the embodiment of the present application will be briefly introduced. The blockchain is disclosed to all blockchain nodes of the access server. The data structure of distributed storage contains several blocks. The user terminal including the client can be registered as a blockchain node, and the other blockchain nodes of the access blockchain server form a P2P network, and the blockchain data can be stored in each node of the P2P network, and any one or more of the P2P networks. Blockchain nodes will not cause the loss of blockchain data, so the blockchain data has strong security, ensuring permanent preservation and non-tampering of data. When a block is persisted into the blockchain data, the blockchain node of the access server can add the block; the block is added to the blockchain data one by one according to the persistence time order, except Each block outside the first block in the blockchain data is linked to its previous block, so that the blockchain data forms a block link, just like a chain. After a block is persisted to the blockchain data, the block cannot be modified.
为了便于理解,下面对本申请实施例中的具体流程进行描述,请参阅图1,本申请实施例中一种基于区块链的多库房数据管理方法的一个实施例可包括:101、当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点更新本地库存数据。For ease of understanding, the specific process in the embodiment of the present application is described below. Referring to FIG. 1, an embodiment of a blockchain-based multi-warehouse data management method in the embodiment of the present application may include: 101, when accessing When the local inventory data of the warehouse node in the blockchain changes, the corresponding warehouse node updates the local inventory data.
本申请实施例中,可以为处于相同地区或不同地区的多个库房配置管理设备,通过区块链技术建立点对点的分布式数据传输和存储架构,每个库房的管理设备都可以注册成为区块链的一个节点,接入区块链的每一个库房管理设备作为区块链的一个节点,每个节点可以独立上传及核算数据。当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点可以根据管理员的操作更新本地库存数据。In the embodiment of the present application, a management device may be configured for multiple warehouses in the same area or different regions, and a point-to-point distributed data transmission and storage architecture is established through the blockchain technology, and management devices of each warehouse can be registered as blocks. One node of the chain, each warehouse management device of the access blockchain acts as a node of the blockchain, and each node can independently upload and calculate data. When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node can update the local inventory data according to the operation of the administrator.
102、将更新之后的本地库存数据写入区块,并同步到区块链中。102. Write the updated local inventory data into the block and synchronize to the blockchain.
在节点更新本地库存数据之后,可以将更新之后的本地库存数据写入区块进行广播,使得接入区块链的节点将该最新的区块同步到区块链中,分别存储在各个节点的数据库。After the node updates the local inventory data, the updated local inventory data may be written into the block for broadcasting, so that the node accessing the blockchain synchronizes the latest block into the blockchain and stores them in each node respectively. database.
103、接入区块链的库房节点从区块链中提取各个库房节点最新的本地库存数据,并以此统计各个库房节点中相同种类的物料的库存数据。103. The warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same type of materials in each warehouse node.
由于每个区块链节点的都会将最新的本地库存实时的同步到区块链中,各个节点可以在区块链中提取各个库房节点最新的本地库存数据,并以此统计各个库房节点中相同种类的物料的库存数据,由于每个节点获取的区块链中的数据是一致的,最终的统计数据也是一致的。Since each blockchain node will synchronize the latest local inventory to the blockchain in real time, each node can extract the latest local inventory data of each warehouse node in the blockchain, and use this to count the same in each warehouse node. The inventory data of the kind of materials, because the data in the blockchain acquired by each node is consistent, the final statistics are also consistent.
具体的库存数据还可以包括每个位置对应的库位编号,每个储物框对应的箱号、每个箱号对应重量或个数等,具体的库存数据可以根据实际需求进行合理的设置,此处不做限定。The specific inventory data may further include a location number corresponding to each location, a box number corresponding to each storage box, a weight or a number of each box number, etc., and specific inventory data may be reasonably set according to actual needs. There is no limit here.
可以理解的的是,本申请实施例中,可以根据物料的种类进行库存数据的统计,还可以根据物料所处的生产状态,进行库存数据的统计,具体此处不做限定。例如,如下表1所示,按照产品的生产状态分为三个状态:半成品、成品、完成包装的产品。相对应的本地库存数据可以是半成品仓物料的存储量、成品仓物料的存储量、产品仓物料的存储量,进一步的,可以根据各地区的本地库存数据统计全国各地区的库房的库存数据总和。It can be understood that, in the embodiment of the present application, the inventory data may be counted according to the type of the material, and the inventory data may be counted according to the production state of the material, which is not limited herein. For example, as shown in Table 1 below, it is divided into three states according to the production state of the product: semi-finished products, finished products, and finished packaging products. The corresponding local inventory data may be the storage amount of the semi-finished warehouse material, the storage capacity of the finished warehouse material, and the storage capacity of the product warehouse material. Further, the total inventory data of the warehouses in various regions of the country may be calculated according to the local inventory data of each region. .
地区area 半成品仓Semi-finished warehouse 成品仓Finished warehouse 产品仓Product warehouse 管理员administrator
河源Heyuan HYB001HYB001 HYC001HYC001 CP001CP001 XX001XX001
云南Yunnan YNB001YNB001 YNC001YNC001 CP002CP002 XX002XX002
湖南Hunan HNB001HNB001 HNC001HNC001 CP003CP003 XX003XX003
全国总计National total BSJK0001BSJK0001 CSJK0001CSJK0001 CPSJK0001CPSJK0001 XX004XX004
表1Table 1
本申请实施例中,多个库房的管理设备可以接入区块链成为区块链中的一个库房节点,当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点可以实时更新本地库存数据,本地库存数据更新之后,库房节点可以将更新之后的本地库存数据实时的写入区块,并同步到区块链中,接入区块链的其他库房节点从区块链中提取各个库房节点最新的本地库存数据,并以此区块链中的最新库存数据实时统计各个库房节点中相同种类的物料的库存数据,即本申请实施例实现了多个库房中库存数据的实时更新及综合管理,提高库房物料管理的效率、库房数据可靠性。In the embodiment of the present application, the management device of the multiple warehouses can access the blockchain to become a warehouse node in the blockchain. When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node The local inventory data can be updated in real time. After the local inventory data is updated, the warehouse node can write the updated local inventory data to the block in real time and synchronize it to the blockchain, and access other block nodes of the blockchain from the block. The latest local inventory data of each warehouse node is extracted in the chain, and the inventory data of the same kind of materials in each warehouse node is statistically calculated in real time by using the latest inventory data in the blockchain, that is, the inventory data of multiple warehouses is realized in the embodiment of the present application. Real-time update and comprehensive management to improve the efficiency of warehouse material management and warehouse data reliability.
为了便于理解,将对本申请实施例中的基于区块链的多库房数据管理方法进行进一步的描述,请参阅图2,本申请实施例中一种基于区块链的多库房数据管理方法的另一个实施例可包括:For the sake of understanding, the blockchain-based multi-warehouse data management method in the embodiment of the present application is further described. Referring to FIG. 2, a blockchain-based multi-warehouse data management method in the embodiment of the present application is further described. An embodiment can include:
201、当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点更新本地库存数据。201. When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node updates the local inventory data.
本申请实施例中,可以为处于相同地区或不同地区的多个库房配置管理设 备,通过区块链技术建立点对点的分布式数据传输和存储架构,每个库房的管理设备都可以注册成为区块链的一个节点,接入区块链的每一个库房管理设备作为区块链的一个节点,每个节点可以独立上传及核算数据。当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点可以根据管理员的操作更新本地库存数据。In the embodiment of the present application, a management device may be configured for multiple warehouses in the same area or different regions, and a point-to-point distributed data transmission and storage architecture is established through the blockchain technology, and management devices of each warehouse can be registered as blocks. One node of the chain, each warehouse management device of the access blockchain acts as a node of the blockchain, and each node can independently upload and calculate data. When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node can update the local inventory data according to the operation of the administrator.
可选的,作为一种可能的实施方式,本申请实施例中,库房节点更新本地库存数据的具体过程可以包括:Optionally, as a possible implementation, in the embodiment of the present application, the specific process for the warehouse node to update the local inventory data may include:
接收用户通过客户端发送的更新请求,更新请求中至少包含用户ID;Receiving an update request sent by the user through the client, where the update request includes at least a user ID;
验证用户ID是否与预置的ID列表匹配,若匹配,则接收用户的操作信息,并根据操作信息更新本地库存数据。Verify that the user ID matches the preset ID list. If it matches, the user's operation information is received, and the local inventory data is updated according to the operation information.
每个库房的节点设备可以由一个或多个管理人员进行数据管理,可以为每个用户分配特定的权限,为每一项操作预置对应的ID列表,位于ID列表中的用户ID对应的用户具有对应的操作权限。例如,可以根据每个库房的物料的种类不同,每个管理人员仅仅具有一种或多种物料的库房数据的管理权项,具体的权项分配可以根据实际需求进行合理的配置,具体此处不做限定。The node device of each warehouse can be managed by one or more administrators, and each user can be assigned a specific permission, and a corresponding ID list is preset for each operation, and the user corresponding to the user ID in the ID list is associated. Has the corresponding operation authority. For example, according to the type of materials in each warehouse, each manager only has the management right of the warehouse data of one or more materials, and the specific rights allocation can be reasonably configured according to actual needs. Not limited.
在配置好不同管理人员的权限之后,当库房的实际物料的库存量发生变化时,对应的管理人员可以根据用户ID登录节点设备,向节点设备发送更新请求,节点设备可以接收用户通过客户端发送的更新请求,该更新请求中至少包含用户ID,节点设备可以验证用户ID是否与预置的ID列表匹配,若匹配,则说明用户具有对应的操作权项,则节点设备可以接收用户的操作信息,并根据操作信息更新本地库存数据。After the permissions of different management personnel are configured, when the inventory quantity of the actual materials of the warehouse changes, the corresponding management personnel can log in to the node device according to the user ID, and send an update request to the node device, and the node device can receive the user to send through the client. An update request, the update request includes at least a user ID, and the node device can verify whether the user ID matches the preset ID list, and if the match indicates that the user has the corresponding operation right item, the node device can receive the operation information of the user. And update local inventory data based on operational information.
202、将更新之后的本地库存数据写入区块,并同步到区块链中。202. Write the updated local inventory data into the block and synchronize to the blockchain.
在节点更新本地库存数据之后,可以将更新之后的本地库存数据写入区块进行广播,使得接入区块链的节点将该最新的区块同步到区块链中,分别存储在各个节点的数据库。After the node updates the local inventory data, the updated local inventory data may be written into the block for broadcasting, so that the node accessing the blockchain synchronizes the latest block into the blockchain and stores them in each node respectively. database.
进一步的,可选的,作为一种可能的实施方式,为了提高数据的安全性,在每个库房节点设备发出广播消息进行区块链同步时,可以对广播消息中的区块进行验证。具体的,在库房节点注册时可以为每个库房节点分配对应的ID及对应的密钥;具体的服务器可以采用对称加密算法为库房节点分配密钥及 ID,或采用非对称算法为库房节点分配一个密钥对及ID,若采用对称加密算法,在对称加密算法中,数据发信方可以将明文(原始数据)和加密密钥一起经过特殊加密算法处理后,使其变成复杂的加密密文发送出去。收信方收到密文后,若想解读原文,则需要使用加密用过的密钥及相同算法的逆算法对密文进行解密,才能使其恢复成可读明文,本实施例以非对称算法分配的密钥对为例进行说明,密钥对包括公钥(Public Key)及对应的私钥(Private Key),其中,公钥与私钥是通过一种加密算法得到的,例如:加密算法为李维斯特-萨莫尔-阿德曼(Rivest-Shamir-Adleman,简称,RSA)或数字签名算法(Digital Signature Algorithm,简称,DSA)公钥是密钥对中公开的部分,是对外公开的,私钥则是非公开的部分,是不对外公开的,需要由库房节点保存的。公钥通常用于加密会话密钥、验证数字签名,或加密可以用相应的私钥解密的数据。通过这种算法得到的密钥对能保证在世界范围内是唯一的。使用这个密钥对的时候,如果用其中一个密钥加密一段数据,必须用另一个密钥解密。比如用公钥加密数据就必须用私钥解密,如果用私钥加密也必须用公钥解密,否则解密将不会成功。在本申请实施例中,通常情况下,该公钥和私钥长度可以是256位(bit)或者以上。公钥还可以用于生成身份标识ID,ID可以是由公钥经过一定运算产生的,ID与公钥一一对应,ID可以是公钥、公钥的哈希(hash)值或者包含公钥与操作指令的一段脚本等。ID用于标识库房节点。具体来说,库房节点的ID可以由库房节点的公钥生成,和库房节点的公钥是一一对应的,并且保证是全网唯一的。具体来说,库房节点的ID可以是库房节点公钥自身,也可以是根据一个hash算法对库房节点的公钥进行hash生成的公钥hash值,还可以是包含公钥的一段脚本等多种形式,私钥为该库房节点发布的智能合约或竞价区块的签署证明,当接收到每个库房节点广播消息时,根据库房节点对应的密钥对广播消息进行解密验证,若验证通过,则将对应的广播消息中区块同步到本地存储的区块链中。Further, optionally, as a possible implementation manner, in order to improve data security, when each warehouse node device sends a broadcast message to perform blockchain synchronization, the block in the broadcast message may be verified. Specifically, each warehouse node may be assigned a corresponding ID and a corresponding key when the warehouse node is registered; the specific server may use a symmetric encryption algorithm to allocate a key and an ID to the warehouse node, or use an asymmetric algorithm to allocate the warehouse node. If a key pair and ID are symmetric encryption algorithms, in the symmetric encryption algorithm, the data sender can process the plaintext (original data) together with the encryption key through a special encryption algorithm to make it a complex encryption key. The text is sent out. After receiving the ciphertext, if the receiving party wants to interpret the original text, it needs to use the encrypted key and the inverse algorithm of the same algorithm to decrypt the ciphertext, so that it can be restored to a readable plaintext. This embodiment is asymmetric. The key pair assigned by the algorithm is described as an example. The key pair includes a public key (Public Key) and a corresponding private key (Private Key). The public key and the private key are obtained by an encryption algorithm, for example, encryption. The algorithm is a Rivest-Shamir-Adleman (RSA) or a Digital Signature Algorithm (DSA) public key, which is a public part of the key pair and is publicly disclosed. The private key is a non-public part that is not publicly available and needs to be saved by the warehouse node. Public keys are typically used to encrypt session keys, verify digital signatures, or encrypt data that can be decrypted with the corresponding private key. The key pair obtained by this algorithm is guaranteed to be unique worldwide. When using this key pair, if one piece of data is used to encrypt a piece of data, it must be decrypted with another key. For example, encrypting data with a public key must be decrypted with a private key. If it is encrypted with a private key, it must be decrypted with a public key, otherwise the decryption will not succeed. In the embodiment of the present application, the public key and the private key may be 256 bits or more in length. The public key can also be used to generate an identity ID. The ID can be generated by a certain operation of the public key. The ID is in one-to-one correspondence with the public key. The ID can be a hash value of the public key or the public key or contain the public key. A script with an operation instruction, etc. The ID is used to identify the warehouse node. Specifically, the ID of the warehouse node can be generated by the public key of the warehouse node, and the public key of the warehouse node is in one-to-one correspondence, and the guarantee is unique to the entire network. Specifically, the ID of the warehouse node may be the public key of the warehouse node itself, or may be a public key hash value generated by hashing the public key of the warehouse node according to a hash algorithm, or may be a script including a public key. Form, the private key is the signature of the smart contract or the bidding block issued by the warehouse node. When receiving the broadcast message of each warehouse node, the broadcast message is decrypted and verified according to the key corresponding to the warehouse node, and if the verification is passed, The blocks in the corresponding broadcast message are synchronized to the locally stored blockchain.
可以理解的是,本实施例中的所示的库房节点确认广播消息有效的过程仅是示例性的,也可以采用其他具有不可逆性的算法对智能合约进行加密与验证,具体的算法,此处不做限定。It can be understood that the process of confirming that the broadcast message is valid in the illustrated warehouse node in this embodiment is merely exemplary, and other algorithms with irreversibility may be used to encrypt and verify the smart contract, the specific algorithm, here Not limited.
203、接入区块链的库房节点从区块链中提取各个库房节点最新的本地库 存数据,并以此统计各个库房节点中相同种类的物料的库存数据。203. The warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same type of materials in each warehouse node.
本实施例中的步骤203中描述的内容与上述图1所示的实施例中步骤103中所描述的内容类似,具体请参阅步骤103,此处不做赘述。The content described in the step 203 in the embodiment is similar to the content described in the step 103 in the embodiment shown in FIG. 1 . For details, refer to step 103, which is not described herein.
204、接收用户通过客户端发送的查询请求,向客户端反馈查询请求对应的库存信息。204. Receive a query request sent by the user through the client, and feed back, to the client, the inventory information corresponding to the query request.
可选的,为了便于数据查询及物料的调取,用户可以通过客户端查询区块链中的库存数据,具体的,每个区块链节点可以接收用户通过客户端发送的查询请求,查询请求指示查询特定种类物料的库存信息或查询特定库房中各种物料的库存信息,区块链节点可以根据用户的查询类型向客户端反馈查询请求对应的库存信息。Optionally, in order to facilitate data query and material retrieval, the user may query the inventory data in the blockchain through the client. Specifically, each blockchain node may receive a query request sent by the client through the client, and query the request. Instructing to query the inventory information of a specific kind of material or query the inventory information of various materials in a specific warehouse, the blockchain node can feed back the inventory information corresponding to the query request to the client according to the query type of the user.
本申请实施例中,多个库房的管理设备可以接入区块链成为区块链中的一个库房节点,当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点可以实时更新本地库存数据,本地库存数据更新之后,库房节点可以将更新之后的本地库存数据实时的写入区块,并同步到区块链中,接入区块链的其他库房节点从区块链中提取各个库房节点最新的本地库存数据,并以此区块链中的最新库存数据实时统计各个库房节点中相同种类的物料的库存数据,即本申请实施例实现了多个库房中库存数据的实时更新及综合管理,提高库房物料管理的效率、库房数据可靠性。In the embodiment of the present application, the management device of the multiple warehouses can access the blockchain to become a warehouse node in the blockchain. When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node The local inventory data can be updated in real time. After the local inventory data is updated, the warehouse node can write the updated local inventory data to the block in real time and synchronize it to the blockchain, and access other block nodes of the blockchain from the block. The latest local inventory data of each warehouse node is extracted in the chain, and the inventory data of the same kind of materials in each warehouse node is statistically calculated in real time by using the latest inventory data in the blockchain, that is, the inventory data of multiple warehouses is realized in the embodiment of the present application. Real-time update and comprehensive management to improve the efficiency of warehouse material management and warehouse data reliability.
可以理解的是,在本申请的各种实施例中,上述各步骤的序号的大小并不意味着执行顺序的先后,各步骤的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present application, the size of the sequence numbers of the above steps does not mean the order of execution order, and the order of execution of each step should be determined by its function and internal logic, and should not be applied to this application. The implementation of the embodiments constitutes any limitation.
下面将对本申请实施例中的基于区块链的多库房数据管理装置进行描述,请参阅图3,本申请实施例中一种基于区块链的多库房数据管理装置的一个实施例可包括:The blockchain-based multi-warehouse data management device in the embodiment of the present application is described below. Referring to FIG. 3, an embodiment of a blockchain-based multi-warehouse data management device in the embodiment of the present application may include:
更新模块301,当接入区块链中的库房节点的本地库存数据发生变化时,用于更新本地库存数据,接入区块链中的库房节点至少包括两个;The update module 301 is configured to update the local inventory data when the local inventory data of the warehouse node in the access blockchain changes, and the warehouse node in the access blockchain includes at least two;
同步模块302,用于将更新之后的本地库存数据写入区块,并同步到区块链中;The synchronization module 302 is configured to write the updated local inventory data into the block and synchronize to the blockchain;
统计模块303,用于从区块链中提取各个库房节点最新的本地库存数据, 并以此统计各个库房节点中相同种类的物料的库存数据。The statistics module 303 is configured to extract the latest local inventory data of each warehouse node from the blockchain, and collect inventory data of the same kind of materials in each warehouse node.
可选的,作为一种可能的实施方式,请参阅图4,本申请实施例中的更新模块301可以包括:Optionally, as a possible implementation manner, referring to FIG. 4, the update module 301 in the embodiment of the present application may include:
接收单元3011,用于接收用户通过客户端发送的更新请求,更新请求中至少包含用户ID;The receiving unit 3011 is configured to receive an update request sent by the user by using a client, where the update request includes at least a user ID;
验证单元3012,用于验证用户ID是否与预置的ID列表匹配,若匹配,则接收用户的操作信息,并根据操作信息更新本地库存数据。The verification unit 3012 is configured to verify whether the user ID matches the preset ID list, and if yes, receive the operation information of the user, and update the local inventory data according to the operation information.
可选的,作为一种可能的实施方式,请参阅图4,本申请实施例中的基于区块链的多库房数据管理装置,还可以进一步包括:Optionally, as a possible implementation manner, referring to FIG. 4, the blockchain-based multi-warehouse data management apparatus in the embodiment of the present application may further include:
接收模块304,用于接收用户通过客户端发送的查询请求,查询请求指示查询特定种类物料的库存信息或查询特定库房中各种物料的库存信息;The receiving module 304 is configured to receive a query request sent by the user through the client, where the query request indicates to query inventory information of a specific type of material or query inventory information of various materials in a specific warehouse;
反馈模块305,用于向客户端反馈查询请求对应的库存信息。The feedback module 305 is configured to feed back the inventory information corresponding to the query request to the client.
可选的,作为一种可能的实施方式,请参阅图5,本申请实施例中的基于区块链的多库房数据管理装置,还可以进一步包括:Optionally, as a possible implementation manner, referring to FIG. 5, the blockchain-based multi-warehouse data management apparatus in the embodiment of the present application may further include:
配置模块306,用于为每个库房节点配置对应的ID及对应的密钥对;The configuration module 306 is configured to configure a corresponding ID and a corresponding key pair for each warehouse node.
验证模块307,当接收到每个库房节点广播消息时,用于根据库房节点对应的密钥对,对广播消息进行解密验证,若验证通过,则将对应的广播消息中区块同步到本地存储的区块链中。The verification module 307 is configured to perform decryption verification on the broadcast message according to the key pair corresponding to the warehouse node when receiving the broadcast message of each warehouse node, and if the verification passes, synchronize the block in the corresponding broadcast message to the local storage. In the blockchain.
本申请实施例中,多个库房的管理设备可以接入区块链成为区块链中的一个库房节点,当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点可以实时更新本地库存数据,本地库存数据更新之后,库房节点可以将更新之后的本地库存数据实时的写入区块,并同步到区块链中,接入区块链的其他库房节点从区块链中提取各个库房节点最新的本地库存数据,并以此区块链中的最新库存数据实时统计各个库房节点中相同种类的物料的库存数据,即本申请实施例实现了多个库房中库存数据的实时更新及综合管理,提高库房物料管理的效率、库房数据可靠性。In the embodiment of the present application, the management device of the multiple warehouses can access the blockchain to become a warehouse node in the blockchain. When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node The local inventory data can be updated in real time. After the local inventory data is updated, the warehouse node can write the updated local inventory data to the block in real time and synchronize it to the blockchain, and access other block nodes of the blockchain from the block. The latest local inventory data of each warehouse node is extracted in the chain, and the inventory data of the same kind of materials in each warehouse node is statistically calculated in real time by using the latest inventory data in the blockchain, that is, the inventory data of multiple warehouses is realized in the embodiment of the present application. Real-time update and comprehensive management to improve the efficiency of warehouse material management and warehouse data reliability.
上面从模块化功能实体的角度对本申请实施例中的用于区块链的车辆配件数据处理装置进行了描述,下面从硬件处理的角度对本申请实施例中的计算机装置进行描述:The vehicle accessory data processing device for the blockchain in the embodiment of the present application is described above from the perspective of the modular functional entity. The computer device in the embodiment of the present application is described below from the perspective of hardware processing:
本申请实施例还提供了一种计算机装置6,如图6所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该计算机装置6一般指服务器等处理能力较强的计算机设备。The embodiment of the present application further provides a computer device 6, as shown in FIG. 6. For the convenience of description, only the parts related to the embodiment of the present application are shown, and the specific technical details are not disclosed. section. The computer device 6 generally refers to a computer device having a strong processing capability such as a server.
参考图6,计算机装置6包括:电源610、存储器620、处理器630、有线或无线网络接口640以及存储在存储器中并可在处理器上运行的计算机程序。处理器执行计算机程序时实现上述各个车辆OBD接头管理方法实施例中的步骤,例如图1所示的步骤101至103。或者,处理器执行计算机程序时实现上述各装置实施例中各模块或单元的功能。Referring to Figure 6, computer device 6 includes a power source 610, a memory 620, a processor 630, a wired or wireless network interface 640, and a computer program stored in the memory and executable on the processor. The steps in the embodiments of the various vehicle OBD joint management methods described above are implemented when the processor executes the computer program, such as steps 101 through 103 shown in FIG. Alternatively, the functions of the various modules or units in the various apparatus embodiments described above are implemented when the processor executes a computer program.
本申请的一些实施例中,处理器具体用于实现如下步骤:In some embodiments of the present application, the processor is specifically configured to implement the following steps:
当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点更新本地库存数据,接入区块链中的库房节点至少包括两个;When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node updates the local inventory data, and the warehouse node in the access blockchain includes at least two;
将更新之后的本地库存数据写入区块,并同步到区块链中;Write the updated local inventory data to the block and synchronize to the blockchain;
接入区块链的库房节点从区块链中提取各个库房节点最新的本地库存数据,并以此统计各个库房节点中相同种类的物料的库存数据。The warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same kind of materials in each warehouse node.
可选的,本申请的一些实施例中,处理器还可以用于实现如下步骤:Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
接收用户通过客户端发送的更新请求,更新请求中至少包含用户ID;Receiving an update request sent by the user through the client, where the update request includes at least a user ID;
验证用户ID是否与预置的ID列表匹配,若匹配,则接收用户的操作信息,并根据操作信息更新本地库存数据。Verify that the user ID matches the preset ID list. If it matches, the user's operation information is received, and the local inventory data is updated according to the operation information.
可选的,本申请的一些实施例中,处理器还可以用于实现如下步骤:Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
接收用户通过客户端发送的查询请求,查询请求指示查询特定种类物料的库存信息或查询特定库房中各种物料的库存信息;Receiving a query request sent by the user through the client, the query request instructing to query inventory information of a specific kind of material or querying inventory information of various materials in a specific warehouse;
向客户端反馈查询请求对应的库存信息。The inventory information corresponding to the query request is fed back to the client.
可选的,本申请的一些实施例中,处理器还可以用于实现如下步骤:Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
为每个库房节点对应的ID及对应的密钥对;The ID corresponding to each warehouse node and the corresponding key pair;
当接收到每个库房节点广播消息时,根据库房节点对应的密钥对,对广播消息进行解密验证,若验证通过,则将对应的广播消息中区块同步到本地存储的区块链中。When receiving the broadcast message of each warehouse node, the broadcast message is decrypted and verified according to the key pair corresponding to the warehouse node, and if the verification is passed, the block in the corresponding broadcast message is synchronized to the locally stored blockchain.
计算机装置6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计 算设备。示例性的,计算机程序可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器中,并由处理器执行。一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述计算机程序在计算机装置中的执行过程。The computer device 6 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. Illustratively, a computer program can be partitioned into one or more modules/units, one or more modules/units being stored in memory and executed by a processor. One or more modules/units may be a series of computer program instructions that are capable of performing a particular function, which is used to describe the execution of a computer program in a computer device.
本领域技术人员可以理解,图6中示出的结构并不构成对计算机装置6的限定,计算机装置6可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,例如计算机装置还可以包括输入输出设备、总线等。It will be understood by those skilled in the art that the structure shown in FIG. 6 does not constitute a limitation to the computer device 6, and the computer device 6 may include more or less components than those illustrated, or may combine certain components, or different components. Arrangements, such as computer devices, may also include input and output devices, buses, and the like.
所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,处理器是计算机装置的控制中心,利用各种接口和线路连接整个计算机装置的各个部分。The so-called processor can be a central processing unit (CPU), or other general-purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The processor is the control center of the computer device, and the various portions of the entire computer device are connected by various interfaces and lines.
存储器可用于存储计算机程序和/或模块,处理器通过运行或执行存储在存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现计算机装置的各种功能。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store computer programs and/or modules that perform various functions of the computer device by running or executing computer programs and/or modules stored in the memory, and by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the storage data area may be stored according to the mobile phone. Use the created data (such as audio data, phone book, etc.). In addition, the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时,可以实现如下步骤:The present application also provides a computer readable storage medium having a computer program stored thereon. When the computer program is executed by the processor, the following steps can be implemented:
当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点更新本地库存数据,接入区块链中的库房节点至少包括两个;When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node updates the local inventory data, and the warehouse node in the access blockchain includes at least two;
将更新之后的本地库存数据写入区块,并同步到区块链中;Write the updated local inventory data to the block and synchronize to the blockchain;
接入区块链的库房节点从区块链中提取各个库房节点最新的本地库存数 据,并以此统计各个库房节点中相同种类的物料的库存数据。The warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same kind of materials in each warehouse node.
可选的,本申请的一些实施例中,处理器还可以用于实现如下步骤:Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
接收用户通过客户端发送的更新请求,更新请求中至少包含用户ID;Receiving an update request sent by the user through the client, where the update request includes at least a user ID;
验证用户ID是否与预置的ID列表匹配,若匹配,则接收用户的操作信息,并根据操作信息更新本地库存数据。Verify that the user ID matches the preset ID list. If it matches, the user's operation information is received, and the local inventory data is updated according to the operation information.
可选的,本申请的一些实施例中,处理器还可以用于实现如下步骤:Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
接收用户通过客户端发送的查询请求,查询请求指示查询特定种类物料的库存信息或查询特定库房中各种物料的库存信息;Receiving a query request sent by the user through the client, the query request instructing to query inventory information of a specific kind of material or querying inventory information of various materials in a specific warehouse;
向客户端反馈查询请求对应的库存信息。The inventory information corresponding to the query request is fed back to the client.
可选的,本申请的一些实施例中,处理器还可以用于实现如下步骤:Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
为每个库房节点对应的ID及对应的密钥对;The ID corresponding to each warehouse node and the corresponding key pair;
当接收到每个库房节点广播消息时,根据库房节点对应的密钥对,对广播消息进行解密验证,若验证通过,则将对应的广播消息中区块同步到本地存储的区块链中。When receiving the broadcast message of each warehouse node, the broadcast message is decrypted and verified according to the key pair corresponding to the warehouse node, and if the verification is passed, the block in the corresponding broadcast message is synchronized to the locally stored blockchain.
计算机装置集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The modules/units integrated by the computer device can be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the present application implements all or part of the processes in the above embodiments, and can also be completed by a computer program to instruct related hardware. The computer program can be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when executed by a processor. The computer program includes computer program code, and the computer program code may be in the form of source code, object code form, executable file or some intermediate form. The computer readable medium may include any entity or device capable of carrying computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-Only Memory (ROM), a random access device. Memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media does not include Electrical carrier signal and telecommunication signal.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程, 在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of cells is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。The above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions of the embodiments do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

  1. 一种基于区块链的多库房数据管理方法,其特征在于,包括:A blockchain-based multi-warehouse data management method, characterized in that it comprises:
    当接入区块链中的库房节点的本地库存数据发生变化时,对应的库房节点更新本地库存数据,接入区块链中的库房节点至少包括两个;When the local inventory data of the warehouse node in the access blockchain changes, the corresponding warehouse node updates the local inventory data, and the warehouse node in the access blockchain includes at least two;
    将更新之后的本地库存数据写入区块,并同步到区块链中;Write the updated local inventory data to the block and synchronize to the blockchain;
    接入区块链的库房节点从区块链中提取各个库房节点最新的本地库存数据,并以此统计各个库房节点中相同种类的物料的库存数据。The warehouse node accessing the blockchain extracts the latest local inventory data of each warehouse node from the blockchain, and collects inventory data of the same kind of materials in each warehouse node.
  2. 根据权利要求1所述的方法,其特征在于,所述库房节点更新本地库存数据,还包括:The method according to claim 1, wherein the warehouse node updates the local inventory data, and further includes:
    接收用户通过客户端发送的更新请求,所述更新请求中至少包含用户ID;Receiving an update request sent by the user through the client, where the update request includes at least a user ID;
    验证所述用户ID是否与预置的ID列表匹配,若匹配,则接收用户的操作信息,并根据所述操作信息更新本地库存数据。Verifying that the user ID matches the preset ID list, and if so, receiving the user's operation information, and updating the local inventory data according to the operation information.
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:The method according to claim 1 or 2, further comprising:
    接收用户通过客户端发送的查询请求,所述查询请求指示查询特定种类物料的库存信息或查询特定库房中各种物料的库存信息;Receiving a query request sent by the user through the client, the query request instructing to query inventory information of a specific kind of material or querying inventory information of various materials in a specific warehouse;
    向客户端反馈所述查询请求对应的库存信息。The inventory information corresponding to the query request is fed back to the client.
  4. 根据权利要求3所述的方法,其特征在于,还包括:The method of claim 3, further comprising:
    为每个库房节点对应的ID及对应的密钥对;The ID corresponding to each warehouse node and the corresponding key pair;
    当接收到每个库房节点广播消息时,根据库房节点对应的密钥对,对广播消息进行解密验证,若验证通过,则将对应的广播消息中区块同步到本地存储的区块链中。When receiving the broadcast message of each warehouse node, the broadcast message is decrypted and verified according to the key pair corresponding to the warehouse node, and if the verification is passed, the block in the corresponding broadcast message is synchronized to the locally stored blockchain.
  5. 一种基于区块链的多库房数据管理装置,其特征在于,包括:A multi-storehouse data management device based on a blockchain, comprising:
    更新模块,当接入区块链中的库房节点的本地库存数据发生变化时,用于更新本地库存数据,接入区块链中的库房节点至少包括两个;The update module is configured to update the local inventory data when the local inventory data of the warehouse node in the access blockchain changes, and the warehouse node in the access blockchain includes at least two;
    同步模块,用于将更新之后的本地库存数据写入区块,并同步到区块链中;a synchronization module for writing the updated local inventory data into the block and synchronizing into the blockchain;
    统计模块,用于从区块链中提取各个库房节点最新的本地库存数据,并以此统计各个库房节点中相同种类的物料的库存数据。The statistics module is configured to extract the latest local inventory data of each warehouse node from the blockchain, and collect inventory data of the same kind of materials in each warehouse node.
  6. 根据权利要求5所述的装置,其特征在于,所述更新模块包括:The apparatus according to claim 5, wherein the update module comprises:
    接收单元,用于接收用户通过客户端发送的更新请求,所述更新请求中至 少包含用户ID;a receiving unit, configured to receive an update request sent by the user by using a client, where the update request includes at least a user ID;
    验证单元,用于验证所述用户ID是否与预置的ID列表匹配,若匹配,则接收用户的操作信息,并根据所述操作信息更新本地库存数据。And a verification unit, configured to verify whether the user ID matches the preset ID list, and if yes, receive operation information of the user, and update the local inventory data according to the operation information.
  7. 根据权利要求5所述的装置,其特征在于,还包括:The device according to claim 5, further comprising:
    接收模块,用于接收用户通过客户端发送的查询请求,所述查询请求指示查询特定种类物料的库存信息或查询特定库房中各种物料的库存信息;a receiving module, configured to receive a query request sent by the user through the client, where the query request indicates to query inventory information of a specific type of material or query inventory information of various materials in a specific warehouse;
    反馈模块,用于向客户端反馈所述查询请求对应的库存信息。And a feedback module, configured to feed back, to the client, the inventory information corresponding to the query request.
  8. 根据权利要求5所述的装置,其特征在于,还包括:The device according to claim 5, further comprising:
    配置模块,用于为每个库房节点配置对应的ID及对应的密钥对;a configuration module, configured to configure a corresponding ID and a corresponding key pair for each warehouse node;
    验证模块,当接收到每个库房节点广播消息时,用于根据库房节点对应的密钥对,对广播消息进行解密验证,若验证通过,则将对应的广播消息中区块同步到本地存储的区块链中。The verification module, when receiving the broadcast message of each warehouse node, is used for decrypting and verifying the broadcast message according to the key pair corresponding to the warehouse node, and if the verification is passed, synchronizing the block in the corresponding broadcast message to the local storage In the blockchain.
  9. 一种计算机装置,其特征在于,所述计算机装置包括处理器及存储器,所述处理器用于执行存储器中存储的计算机程序时实现如权利要求1至4中任意一项所述方法中的步骤。A computer apparatus, comprising: a processor and a memory, the processor being operative to perform the steps of the method of any one of claims 1 to 4 when executing a computer program stored in a memory.
  10. 一种计算机装置可读存储介质,其上存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现如权利要求1至4中任意一项所述方法中的步骤。A computer-readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 4.
PCT/CN2018/101679 2018-03-27 2018-08-22 Multi-warehouse data management method based on block chain and related device WO2019184210A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810259105.7 2018-03-27
CN201810259105.7A CN108470265B (en) 2018-03-27 2018-03-27 Multi-warehouse data management method based on block chain and related equipment

Publications (1)

Publication Number Publication Date
WO2019184210A1 true WO2019184210A1 (en) 2019-10-03

Family

ID=63264854

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/101679 WO2019184210A1 (en) 2018-03-27 2018-08-22 Multi-warehouse data management method based on block chain and related device

Country Status (2)

Country Link
CN (1) CN108470265B (en)
WO (1) WO2019184210A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177272A (en) * 2019-12-31 2020-05-19 杭州趣链科技有限公司 Block chain-based big data credible auditing method
CN111339130A (en) * 2020-02-25 2020-06-26 腾讯科技(深圳)有限公司 Data query method, related equipment and readable storage medium
CN111401762A (en) * 2020-03-23 2020-07-10 中国港湾工程有限责任公司 Concrete production construction data informatization management method and device based on block chain
CN111966112A (en) * 2020-07-26 2020-11-20 中国建设银行股份有限公司 Automatic file storage, method and device for loading and unloading files and electronic equipment
CN113794569A (en) * 2020-02-27 2021-12-14 支付宝(杭州)信息技术有限公司 Material inventory data providing method, device and system based on block chain
EP4024302A4 (en) * 2019-10-12 2022-09-28 Jingdong Technology Information Technology Co., Ltd. Method and apparatus for acquiring inventory data, terminal device and storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111325494A (en) * 2018-12-14 2020-06-23 北京京东尚科信息技术有限公司 Inventory management method, device, system and storage medium
CN109886026A (en) * 2019-01-11 2019-06-14 平安科技(深圳)有限公司 Data save querying method, device, computer system and readable storage medium storing program for executing
CN111461585B (en) * 2019-01-22 2024-04-16 北京京东振世信息技术有限公司 Inventory management method and device, storage medium and electronic equipment
CN111738639A (en) * 2019-03-26 2020-10-02 北京京东尚科信息技术有限公司 Method, device and storage medium for maintaining inventory data consistency
CN110493727A (en) * 2019-08-12 2019-11-22 苏州市江海通讯发展实业有限公司 A kind of more people's indoor orientation methods based on block chain
CN110765859A (en) * 2019-09-12 2020-02-07 深圳市智微智能科技开发有限公司 Nonferrous metal checking method and related product
CN110782139A (en) * 2019-10-10 2020-02-11 深圳点链科技有限公司 Daily yield daily clearing accounting method, device, equipment and storage medium based on block chain
CN111369196A (en) * 2020-03-09 2020-07-03 支付宝(杭州)信息技术有限公司 Block chain-based target object checking method and system
CN111538785A (en) * 2020-04-23 2020-08-14 北京海益同展信息科技有限公司 Data writing method, device and system of block chain and electronic equipment
CN113220781A (en) * 2021-04-30 2021-08-06 中核武汉核电运行技术股份有限公司 Personal radiation dose management method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016138447A1 (en) * 2015-02-26 2016-09-01 Skuchain, Inc. Tracking unitization occurring in a supply chain
CN106790431A (en) * 2016-12-05 2017-05-31 同济大学 Cloud manufacturing service Transaction Information record system and method based on block chain
CN107491915A (en) * 2017-08-03 2017-12-19 迅鳐成都科技有限公司 Goods right management system based on block chain in a kind of steel industry WMS
CN107516180A (en) * 2017-08-25 2017-12-26 迅鳐成都科技有限公司 A kind of system and method that storage transaction security and operating efficiency are improved based on block chain

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441739A (en) * 2007-12-27 2009-05-27 北京奥腾讯达科技有限公司 Enterprise management control system based on inventory data
CN105657022B (en) * 2015-06-15 2019-04-05 重庆高开清芯科技产业发展有限公司 The method and embedded node operating system of active push information
US10250694B2 (en) * 2016-08-19 2019-04-02 Ca, Inc. Maintaining distributed state among stateless service clients
CN107391944A (en) * 2017-07-27 2017-11-24 北京太云科技有限公司 A kind of electronic health record shared system based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016138447A1 (en) * 2015-02-26 2016-09-01 Skuchain, Inc. Tracking unitization occurring in a supply chain
CN106790431A (en) * 2016-12-05 2017-05-31 同济大学 Cloud manufacturing service Transaction Information record system and method based on block chain
CN107491915A (en) * 2017-08-03 2017-12-19 迅鳐成都科技有限公司 Goods right management system based on block chain in a kind of steel industry WMS
CN107516180A (en) * 2017-08-25 2017-12-26 迅鳐成都科技有限公司 A kind of system and method that storage transaction security and operating efficiency are improved based on block chain

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4024302A4 (en) * 2019-10-12 2022-09-28 Jingdong Technology Information Technology Co., Ltd. Method and apparatus for acquiring inventory data, terminal device and storage medium
CN111177272A (en) * 2019-12-31 2020-05-19 杭州趣链科技有限公司 Block chain-based big data credible auditing method
CN111177272B (en) * 2019-12-31 2023-09-08 杭州趣链科技有限公司 Big data credible audit method based on block chain
CN111339130A (en) * 2020-02-25 2020-06-26 腾讯科技(深圳)有限公司 Data query method, related equipment and readable storage medium
CN113794569A (en) * 2020-02-27 2021-12-14 支付宝(杭州)信息技术有限公司 Material inventory data providing method, device and system based on block chain
CN113794569B (en) * 2020-02-27 2023-10-13 支付宝(杭州)信息技术有限公司 Material inventory data providing method, device and system based on block chain
CN111401762A (en) * 2020-03-23 2020-07-10 中国港湾工程有限责任公司 Concrete production construction data informatization management method and device based on block chain
CN111401762B (en) * 2020-03-23 2024-04-23 中国港湾工程有限责任公司 Concrete production construction data informatization management method and device based on block chain
CN111966112A (en) * 2020-07-26 2020-11-20 中国建设银行股份有限公司 Automatic file storage, method and device for loading and unloading files and electronic equipment

Also Published As

Publication number Publication date
CN108470265B (en) 2021-03-02
CN108470265A (en) 2018-08-31

Similar Documents

Publication Publication Date Title
WO2019184210A1 (en) Multi-warehouse data management method based on block chain and related device
CN111723355B (en) Information management in a database
CN108900533B (en) Shared data privacy protection method, system, terminal and medium
US11909870B2 (en) ECDHE key exchange for mutual authentication using a key server
US20190394175A1 (en) Systems and methods for permissioned blockchain infrastructure with fine-grained access control and confidentiality-preserving publish/subscribe messaging
CN111556120B (en) Data processing method and device based on block chain, storage medium and equipment
US20180062852A1 (en) Systems and methods for secure collaboration with precision access management
US20190149325A1 (en) Blockchain transaction privacy enhancement through broadcast encryption
WO2021174758A1 (en) Protocol data sharing method and apparatus, device, and storage medium
US11936776B2 (en) Secure key exchange electronic transactions
CN111797415A (en) Block chain based data sharing method, electronic device and storage medium
CN112581126A (en) Block chain-based platform data management method and device and storage medium
WO2023024742A1 (en) Data processing method and apparatus, and computer device and storage medium
WO2021012643A1 (en) Method, device and system for object distribution processing
CN111130770A (en) Block chain based information evidence storage method and system, user terminal, electronic equipment and storage medium
WO2022068356A1 (en) Blockchain-based information encryption method and apparatus, device and medium
EP3340559A1 (en) Method and system for facilitating secure communication between two or more devices
WO2023098294A1 (en) Heterogeneous data processing method and apparatus, and electronic device
EP2942899B1 (en) Information processing method, trust server and cloud server
WO2023087760A1 (en) Data sharing method and apparatus, device, and storage medium
CN114944963A (en) Government affair data opening method and system
WO2022068234A1 (en) Encryption method and apparatus based on shared root key, device and medium
US20230412368A1 (en) Enabling using external tenant master keys
CN110166460B (en) Service account registration method and device, storage medium and electronic device
CN111698198B (en) Secret generation and share distribution

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18912391

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05/02/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18912391

Country of ref document: EP

Kind code of ref document: A1