WO2021169455A1 - Blockchain-based material inventory data providing method, apparatus and system - Google Patents

Blockchain-based material inventory data providing method, apparatus and system Download PDF

Info

Publication number
WO2021169455A1
WO2021169455A1 PCT/CN2020/132675 CN2020132675W WO2021169455A1 WO 2021169455 A1 WO2021169455 A1 WO 2021169455A1 CN 2020132675 W CN2020132675 W CN 2020132675W WO 2021169455 A1 WO2021169455 A1 WO 2021169455A1
Authority
WO
WIPO (PCT)
Prior art keywords
inventory data
robot
material inventory
blockchain
signed
Prior art date
Application number
PCT/CN2020/132675
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 WO2021169455A1 publication Critical patent/WO2021169455A1/en

Links

Images

Classifications

    • 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
    • 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
    • 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/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Definitions

  • This article relates to the field of Internet of Things technology, and in particular to a method, device and system for providing inventory data based on blockchain.
  • the inventory of warehousing materials for material warehouses is becoming more and more popular.
  • the material inventory data of merchant warehouses can not only be used as a basis for accepting purchase orders from buyers, to ensure timely delivery Buyers deliver goods; in addition, because merchants can obtain investment from investors by collateralizing warehousing materials to ensure the capital supply chain, material inventory data can also be used as a basis for decision-making on investment to merchants. From this, we can see that warehouse material data The authenticity and credibility of the product directly affects the timeliness of commodity supply or the accuracy of the investor’s decision-making.
  • the purpose of one or more embodiments of this specification is to provide a method for providing material inventory data based on blockchain.
  • the blockchain-based material inventory data providing method includes: obtaining material inventory data of a target warehouse, where the material inventory data includes the correspondence between robot pose information and material attribute information.
  • the pre-stored private key is used to sign the material inventory data to obtain the signed material inventory data.
  • the purpose of one or more embodiments of this specification is to provide a method for providing material inventory data based on blockchain.
  • the blockchain-based material inventory data provision method includes: receiving the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data is pre-stored
  • the private key is obtained by signing the material inventory data of the target warehouse, and the material inventory data includes: the correspondence between the robot pose information and the material attribute information.
  • the purpose of one or more embodiments of this specification is to provide a blockchain-based material inventory data providing device.
  • the blockchain-based material inventory data providing device includes: a material data acquisition module that obtains material inventory data of a target warehouse, wherein the material inventory data includes: robot pose information and material attribute information Correspondence between.
  • the material data signature module uses a pre-stored private key to sign the material inventory data to obtain signed material inventory data.
  • Material data sending module which uploads the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the block chain.
  • the block chain-based material inventory data providing device includes: a material data receiving module, which receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data
  • the material inventory data is obtained by using a pre-stored private key to sign the material inventory data of the target warehouse.
  • the material inventory data includes the correspondence between robot pose information and material attribute information.
  • the material data verification module performs signature verification on the signed material inventory data, and obtains the corresponding signature verification result.
  • the material data storage module uploads the signed material inventory data to the blockchain if the signature verification result is that the signature verification is passed.
  • the purpose of one or more embodiments of this specification is to provide a blockchain-based material inventory data providing system.
  • the blockchain-based material inventory data providing system includes: inventory robots and cloud server terminals connected to the blockchain.
  • the inventory robot obtains material inventory data of a target warehouse, where the material inventory data includes: the correspondence between the robot pose information and material attribute information; and the material inventory data is signed with a pre-stored private key Processing to obtain the signed material inventory data; upload the signed material inventory data to the cloud server.
  • the cloud server receives the signed material inventory data uploaded by the inventory robot; performs signature verification on the material inventory data; and uploads the material inventory data that has passed the signature verification to the blockchain.
  • the purpose of one or more embodiments of this specification is to provide a blockchain-based material inventory data providing device, including: a processor; and a memory arranged to store computer-executable instructions.
  • the computer-executable instructions enable the processor to obtain material inventory data of the target warehouse when executed, where the material inventory data includes the correspondence between robot pose information and material attribute information.
  • the pre-stored private key is used to sign the material inventory data to obtain the signed material inventory data. Upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
  • the purpose of one or more embodiments of this specification is to provide a blockchain-based material inventory data providing device, including: a processor; and a memory arranged to store computer-executable instructions.
  • the processor receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data is a material inventory of the target warehouse using a pre-stored private key
  • the data is obtained by signature processing, and the material inventory data includes: the correspondence between the robot pose information and the material attribute information.
  • the purpose of one or more embodiments of this specification is to provide a storage medium for storing computer-executable instructions.
  • the material inventory data of the target warehouse is obtained, where the material inventory data includes: the correspondence between robot pose information and material attribute information.
  • the pre-stored private key is used to sign the material inventory data to obtain the signed material inventory data.
  • the purpose of one or more embodiments of this specification is to provide a storage medium for storing computer-executable instructions.
  • the executable instruction receives the signed material inventory data uploaded by the inventory robot when the executable instruction is executed by the processor, wherein the signed material inventory data uses a pre-stored private key to sign the material inventory data of the target warehouse Obtained, the material inventory data includes: the correspondence between the robot pose information and the material attribute information.
  • Figure 1 is a schematic diagram of an application scenario of a blockchain-based material inventory data providing system provided by one or more embodiments of this specification;
  • FIG 2 is a schematic diagram of data flow in the application scenario of the blockchain-based material inventory data providing system shown in Figure 1;
  • FIG. 3 is a schematic diagram of the first flow chart of a blockchain-based material inventory data providing method applied to an inventory robot according to one or more embodiments of this specification;
  • FIG. 4 is a schematic diagram of a second flow chart of a blockchain-based material inventory data providing method applied to an inventory robot according to one or more embodiments of this specification;
  • FIG. 5 is a schematic diagram of a third process of a blockchain-based material inventory data providing method applied to an inventory robot according to one or more embodiments of this specification;
  • FIG. 6 is a schematic diagram of the fourth process of a blockchain-based material inventory data providing method applied to an inventory robot according to one or more embodiments of this specification;
  • FIG. 7 is a schematic flowchart of a blockchain-based material inventory data providing method applied to a cloud server according to one or more embodiments of this specification;
  • FIG. 8 is a schematic diagram of the module composition of a blockchain-based material inventory data providing device provided on the side of an inventory robot provided by one or more embodiments of this specification;
  • FIG. 9 is a schematic diagram of the module composition of a block chain-based material inventory data providing device provided on a cloud server provided by one or more embodiments of this specification;
  • FIG. 10 is a schematic diagram of the structure of a blockchain-based material inventory data providing system provided by one or more embodiments of this specification;
  • FIG. 11 is a schematic structural diagram of a block chain-based material inventory data providing device provided by one or more embodiments of this specification.
  • One or more embodiments of this specification provide a method, device and system for providing material inventory data based on blockchain.
  • the inventory robot Before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first checks the collected materials The inventory data is processed with trusted signatures to obtain the signed material inventory data, and on the cloud server side based on the blockchain technology to realize the signature verification of the material inventory data under the witness of multiple parties and be trusted on the chain, which improves the material inventory data The authenticity, security, credibility, and tamper-proof modification of
  • Figure 1 is a schematic diagram of the application scenario of the blockchain-based material inventory data providing system provided by one or more embodiments of this specification.
  • the system includes: an inventory robot, a cloud server, and a blockchain.
  • the inventory robot can be used for an intelligent robot terminal that takes inventory of warehousing materials in a target warehouse, and the inventory robot is equipped with a trusted signature module;
  • the cloud server can be used to perform trusted storage of inventory data of the target warehouse It also provides a server for third-party clients to access the material inventory data.
  • the cloud server can provide blockchain services.
  • the cloud server can be an independent server or a server cluster composed of multiple servers.
  • the inventory robot obtains the material inventory data of the target warehouse, where the material inventory data includes: the robot pose information and the material attribute information. And use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; then upload the signed material inventory data to the cloud server, so that the cloud server can The material inventory data is subjected to signature verification and the material inventory data that has passed the signature verification is uploaded to the blockchain, so that the third-party client can obtain credible material inventory data from the blockchain.
  • the cloud server can be connected to the blockchain as a blockchain node in the blockchain, or it can be connected to the blockchain. At least one blockchain node connected to the blockchain communicates. Take the cloud server as the blockchain node as an example.
  • the specific process of providing inventory data based on the blockchain is: the inventory robot obtains the materials in the target warehouse Inventory data, where the material inventory data includes: the correspondence between the robot pose information and material attribute information; the inventory robot uses the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; The robot uploads the signed material inventory data to the cloud server; the cloud server receives the signed material inventory data uploaded by the inventory robot; the cloud server performs signature verification on the signed material inventory data to obtain the corresponding signature verification result; If the signature verification result is passed, the cloud server uploads the material inventory data that has passed the signature verification to the blockchain, so that the third-party client can obtain credible material inventory data from the blockchain.
  • the inventory robot before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, as well as on the cloud server
  • the side is based on blockchain technology to realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
  • Fig. 3 is a schematic diagram of the first flow chart of a blockchain-based material inventory data providing method provided by one or more embodiments of this specification.
  • the method in Fig. 3 can be executed by the inventory robot in Fig. 1, as shown in Fig. 3 ,
  • the method at least includes steps S302 to S306.
  • S302 Acquire material inventory data of the target warehouse, where the material inventory data includes: a correspondence between robot pose information and material attribute information.
  • the above-mentioned robot pose information may be collected by a pose sensor in the inventory robot, the pose information may include current pose angle and current coordinate information, and the pose sensor may include: a lidar distance sensor, an accelerometer gyroscope
  • the above-mentioned material attribute information can be collected by the radio frequency device or camera device in the inventory robot; specifically, the radio frequency device is used to collect the material label information of the material object in the target warehouse, and based on the material label information and current pose information , Generate material inventory data of the target warehouse; where the radio frequency device may be an RFID radio frequency module or other radio frequency module; The pose information generates inventory data of the target warehouse.
  • the above-mentioned material objects can be commodities, goods, etc.
  • the inventory robot moves in the target warehouse according to a preset walking route, uses the pose sensor to collect the pose information of the inventory robot, and at the same time, uses the radio frequency device to scan the material objects on the
  • the radio frequency tag obtains the material label information, and/or uses the camera device to photograph the material object to obtain the material image information, and the first correspondence between the pose information and the material tag information, and/or the pose information and the material image
  • the second correspondence between the information is transmitted to the material inventory module in the inventory robot, and the material inventory module determines the correspondence between the robot pose information and the material attribute information according to the first correspondence and/or the second correspondence .
  • the pose sensor transmits the robot pose information to the navigation path finding system in the inventory robot, and the navigation path finding system controls the robot pose information.
  • S304 Use the pre-stored private key to perform signature processing on the acquired material inventory data to obtain the signed material inventory data.
  • the material inventory data is not directly uploaded to the cloud server, but the material inventory data is first signed, and then the signed material inventory data is uploaded to the cloud server , So that the cloud server can quickly and accurately identify whether the material inventory data comes from the inventory robot itself, and verify the credibility of the inventory robot's identity.
  • S306 Upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the signed material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
  • the private key is used to sign the inventory data on the inventory robot side.
  • the public key corresponding to the inventory robot is used on the cloud server to verify the signed inventory data to identify the inventory data. Authenticity and reliability, and then credibly store the material inventory data that passed the verification into the blockchain, so that the third-party client can obtain the true, credible, and multi-party witness material inventory data from the blockchain, so that the material Inventory data is used as guidance data for subsequent business processing;
  • the cloud server receives a data access request from a third-party client, where the material access request carries the identification information of the third-party client and the identification information of the target material inventory data, and the cloud server determines that the third-party client has the target After the access authority of the material data, the target material inventory data is sent to the third-party client.
  • the inventory robot before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
  • smart contracts can be introduced to realize the verification of material inventory data under the witness of multiple parties.
  • the above S306 the signed materials
  • the inventory data is uploaded to the cloud server, so that the cloud server can perform signature verification on the signed material inventory data and upload the material inventory data that has passed the signature verification to the blockchain, including: S3061, the signed material inventory
  • the data is uploaded to the cloud server, so that the cloud server uses the smart contract deployed in the blockchain to perform signature verification on the signed material inventory data, and upload the material inventory data that has passed the signature verification to the blockchain.
  • the cloud server After the cloud server receives the signed material inventory data uploaded by the inventory robot, it obtains the corresponding public key based on the device identification information of the inventory robot through the smart contract deployed in the blockchain, and based on the public key The key performs signature verification on the signed material inventory data, where the public key is uploaded to the cloud server by the inventory robot during the device identity activation stage.
  • a smart contract is a contract that can automatically execute terms defined in digital form.
  • smart contracts refer to computer programs that are triggered based on predetermined events, cannot be tampered with, and are automatically executed.
  • the use of smart contracts can guarantee the reliable execution of all agreements and avoid tampering, denial and breach of contract. After the smart contract is released, it needs to be instantiated and validated on the state machine in the blockchain.
  • a smart contract can be deployed on the blockchain in advance.
  • the smart contract includes a contract that automatically executes the material inventory data verification.
  • the smart contract is used to verify the signed material inventory data uploaded by the inventory robot. Manual intervention, full process transparency, multi-party witness.
  • each node on the blockchain participates in the automatic execution of the smart contract, and all the execution data items (status data and status parameters) generated during the execution of the smart contract are
  • the nodes on the chain are open and transparent, and each node on the blockchain is controlled to reach a consensus on the execution data items, and the consensus verification execution data of the inventory data is encrypted and stored in the blockchain as the signature verification result for the material inventory data, that is All execution data items generated during the execution of the smart contract are stored under the common witness of all nodes on the blockchain.
  • the blockchain technology is non-tamperable, and the final signature verification result for the material inventory data and the material inventory data that have passed the verification are written into the blockchain after multiple witnesses, it can be guaranteed to be uploaded to the district.
  • the signature verification results and material inventory data in the block chain cannot be tampered with, thereby ensuring the authenticity of the data; and the entire process of material inventory data verification and signing is automatically executed through the smart contract deployed on the blockchain, and each verification link Without manual intervention, the information of each verification link is stored on the blockchain. If the verification process of the material inventory data needs to be disclosed as a notarization in the future, the material inventory data can be directly obtained from the blockchain. Relevant information can be used as evidence.
  • the cloud server can also use the smart contract deployed in the blockchain based on the materials that have passed the verification. Inventory data, generate a classified material inventory report, and upload the classified material inventory report to the blockchain. Specifically, the material inventory data that has passed the verification can be classified according to inventory time information, material category information, and material location information, and a corresponding material inventory report can be generated.
  • the different implementation processes that are automatically executed through smart contracts can be implemented through different smart contracts deployed in the blockchain.
  • the first smart contract deployed in the blockchain is used to perform signature verification on the signed material inventory data.
  • the second smart contract deployed in the blockchain is used to generate a classified material inventory report based on the material inventory data that has passed the verification.
  • the device identity activation binding of each inventory robot is performed in advance, and the corresponding relationship between the unique identity of the inventory robot and the public key is performed through the cloud server. Trusted on the chain, so that the follow-up can quickly and accurately verify the identity of the inventory robot, and it can also perform signature verification on the inventory data uploaded by the inventory robot, achieving dual control and storage of the inventory in the blockchain. Based on the authenticity of the data, as shown in FIG. 5, before the material inventory data of the target warehouse is obtained in S302, steps S308 to S314 are further included.
  • the current state of the inventory robot satisfies preset conditions, where the preset conditions include: before the inventory robot leaves the factory, the inventory robot is used for the first time, or there is a change in the enterprise served by the inventory robot; if the result of the judgment is yes, then confirm The current state of the inventory robot is the initialization state, which means that the identification of the inventory robot needs to be activated and bound.
  • S310 Obtain identity binding information of the inventory robot, where the identity binding information corresponds to the owner of the materials inventory by the inventory robot.
  • each inventory robot corresponds to the owner of the material it serves.
  • the above device identity activation request carries the identity binding information of the inventory robot, the public key corresponding to the inventory robot, and can also carry the unique identifier of the inventory robot; after obtaining the public key and identity binding information of the inventory robot , Automatically generate device identity activation request.
  • S314 Send a device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and uploads the correspondence between the identity binding information of the inventory robot and the public key to the blockchain.
  • an identity activation input module can be set on the inventory robot side.
  • a trusted signature identity activation service is set on the cloud server.
  • the identity activation input module in the inventory robot triggers the cloud server based on the generated device identity activation request.
  • the trusted signature identity activation service in, performs identity activation and binding operations for inventory robots, so as to realize the legal registration of the blockchain of inventory robot identities, and ensure the credibility and immutability of the inventory robot's identity.
  • the cloud server after receiving the material inventory data uploaded by the inventory robot, the cloud server not only performs signature verification on the signed material inventory data based on the public key corresponding to the inventory robot, but also based on the identity binding information corresponding to the inventory robot , To verify the authenticity of the device identity of the inventory robot, if the data signature verification is passed and the device identity verification is passed, the material inventory data will be uploaded to the blockchain;
  • smart contracts can also be introduced to automatically execute.
  • the cloud server uses the smart contract deployed in the blockchain to perform the verification of the inventory robot based on the identity binding information corresponding to the inventory robot. The authenticity of the device identity is verified, and the corresponding device identity verification result is obtained.
  • the cloud server can also return the identity activation to the inventory robot The response result of the request, where the response result of the identity activation request includes: the device identity binding is successful, or the device identity binding fails;
  • the inventory robot when the inventory robot receives the feedback result that the device identity binding fails, it can re-send the device identity activation request to the cloud server, so that the cloud server can respond to the device identity activation request again.
  • the device identity binding fails because it is determined that the device identity activation request comes from an untrusted inventory robot, preferably, it is forbidden to return the identity activation request response result to the inventory robot, so as to avoid the untrustworthy
  • the device re-sends the device identity activation request to the cloud server.
  • the cloud server returns the response result of the identity activation request to the inventory robot to trigger the inventory robot to re-send the device identity activation request to the cloud server.
  • the cloud server responds to the above-mentioned device identity activation request, and if it is determined that the device identity binding fails, it determines whether to return the identity activation request response result to the inventory robot according to the type of cause of the device identity binding failure.
  • obtaining the identity binding information of the inventory robot specifically includes steps S3101 and S3102.
  • S3102 Analyze the scanned device identity graphic code to obtain the identity binding information of the inventory robot.
  • the warehouse management terminal may be installed with a preset application. After detecting a trigger operation for the preset application, the warehouse management terminal automatically generates a device identity information acquisition request, and sends the device identity information acquisition request to the cloud On the server side, the cloud server responds to the device identity information acquisition request and returns corresponding device identity information to the warehouse management terminal, where the device identity information can be dynamic graphic code information or random character strings.
  • the warehouse management terminal displays the corresponding dynamic graphic code after receiving the dynamic graphic code information returned by the cloud server, so that the inventory robot can scan the dynamic graphic with the camera device. Code, and obtain the corresponding identity binding information.
  • the identity binding information (such as a random character string) can be directly input in the inventory robot, or the identity binding information can be transmitted to the inventory robot through the warehouse management terminal.
  • the process of triggering the distribution of dynamic graphics codes on the cloud server is set in the warehouse management terminal, and the warehouse management terminal transmits the identity binding information of the inventory robot to the inventory robot, so as to avoid the complexity of the inventory robot's work environment.
  • malicious users randomly trigger the inventory robot to send device identity activation requests to the cloud server, which causes the real identity of the inventory robot to be tampered with, which further improves the authenticity and credibility of the inventory robot.
  • the inventory robot collects the target identification information of the warehouse management terminal after detecting the graphic code scanning trigger operation , To determine whether the target identification information is consistent with the preset identification information, if so, use the camera to scan the equipment identification graphic code displayed on the warehouse management terminal; specifically, the target identification information can be the unique serial number of the wireless communication module, MAC Address, or SIM card information.
  • the target identification information is consistent with the preset identification information, it means that the device identity graphic code that needs to be scanned currently comes from a preset trusted warehouse management terminal, preventing malicious users from triggering the inventory robot to send to the cloud server at will Device identity activation request, so as to avoid the situation of illegally making malicious changes to the identity of the inventory robot.
  • the cloud server after the cloud server receives the equipment identity information acquisition request of the warehouse management terminal, it returns the equipment service company list to the warehouse management terminal;
  • the cloud server returns the target device service company selected based on the device service company list, that is, the owner of the materials served by the inventory robot to be activated;
  • the cloud server returns the device identity information corresponding to the target device service company to the warehouse management terminal , That is, the identity binding information of the inventory robot, so that the warehouse management terminal transmits the identity binding information to the corresponding inventory robot.
  • the trusted service management platform will issue a credible certificate to the inventory robot.
  • the cloud server since only legal devices are allowed to request the trusted service management platform to issue corresponding digital certificates, the cloud server only stores the digital certificates issued by the trusted service management platform to ensure the inventory of materials that have passed the signature verification The data is all uploaded by the legal device.
  • the above S312 generates the device identity activation request of the inventory robot based on the obtained identity binding information and the public key, which specifically includes: Step one, transfer the pre-stored public key Send to the trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key; step two, receive the digital certificate sent by the trusted service management platform; step three, bind based on the obtained identity The information and the received digital certificate generate the device identity activation request of the inventory robot.
  • the digital certificate generated for the public key of the inventory robot is issued by a trusted organization, the digital certificate has credibility, and the subsequent cloud server can obtain the device identity when binding the device identity information of the inventory robot.
  • the digital certificate carried in the activation request parses out the issuing authority to identify whether the received digital certificate is issued by a trusted authority, to prevent the public key of the inventory robot from being attacked, and to improve the credibility of the public key.
  • each inventory robot corresponds to a pair of public and private keys.
  • the inventory robot obtains the public key and private key assigned to it by the target server; stores the private key locally to use the The private key signs the material inventory data; and, in the process of sending the device identity activation request to the cloud server, the public key is transmitted to the cloud server so that the cloud server can record the public key and base it on the cloud server.
  • the public key performs signature verification on the signed material inventory data.
  • the cloud server is receiving After the device identity activation request, the signed identity binding information is first verified to determine whether it responds to the device identity activation request. Based on this, the above step 3 is based on the obtained identity binding information and the received number
  • the certificate generates the device identity activation request of the inventory robot, which specifically includes: using the pre-stored private key to sign the acquired identity binding information to obtain the signed identity binding information; based on the signed identity binding information and The received digital certificate generates the device identity activation request of the inventory robot.
  • the inventory robot before the inventory robot sends the device identity activation request to the cloud server, it first signs the identity binding information, and then sends the device identity activation request to the cloud server based on the signed identity binding information to enable the cloud service After receiving the device identity activation request, the terminal performs credibility verification on the identity binding information carried in the device identity activation request, so as to ensure that the robot identity binding relationship is credible and tamper-proof.
  • the device identity activation request needs to be verified on the cloud server to ensure that the robot identity binding relationship is trustworthy
  • the above-mentioned S314 sends a device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and counts the relationship between the identity binding information of the robot and the public key.
  • the corresponding relationship is uploaded to the blockchain, which specifically includes: sending a device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request, and based on the public key pair obtained from the trusted service management platform
  • the signed identity binding information is verified, and after the verification is passed, the corresponding relationship between the identity binding information of the inventory robot and the digital certificate is uploaded to the blockchain.
  • the cloud server after receiving the device identity activation request sent by the inventory robot, the cloud server obtains the digital certificate corresponding to the inventory robot from the trusted service management platform based on the device identification information of the inventory robot; based on the acquired digital certificate
  • the public key in the device is used to verify the signed identity binding information in the device identity activation request; if the identity binding information passes the verification, the corresponding relationship between the identity binding information of the robot and the digital certificate will be counted Upload to the blockchain; if the identity binding information fails to pass the verification, it is determined that the device identity activation request comes from an untrusted inventory robot, and it stops responding to the received device identity activation request.
  • the cloud server can first verify the digital certificate in the device identity activation request, and then use the public key in the digital certificate that has passed the verification to sign. Based on this, it specifically includes: obtaining the verification key of the digital certificate corresponding to the inventory robot from the trusted service management platform based on the device identification information of the inventory robot.
  • the key corresponds to the signature key used by the trusted service management platform to sign the public key corresponding to the inventory robot and generate the digital certificate; based on the obtained verification key, the digital certificate in the device identity activation request is verified If the digital certificate passes the verification, the public key in the digital certificate is used to verify the signed identity binding information in the device identity activation request; specifically, if the digital certificate passes the verification, it means The digital certificate is credible, therefore, the public key in the digital certificate is credible; if the identity binding information passes the verification, upload the correspondence between the identity binding information of the inventory robot and the digital certificate To the blockchain; if the verification of the identity binding information fails, it is determined that the device identity activation request comes from an untrusted inventory robot, and it stops responding to the received device identity activation request.
  • the public key certified by the blockchain is more credible than the trusted service management platform. Based on this, the inventory robot You can first apply to the blockchain for credibility certification for your own public key, so as to ensure the credibility of the public key stored on the blockchain, and then send the device identity activation with the public key after credibility certification to the cloud server. Based on this, in order to increase the credibility of the public key uploaded by the inventory robot for signature verification of the material inventory data, the blockchain will return the credibility of the inventory robot to the generation process of the device identity activation request.
  • the process of the address on the chain corresponding to the public key because only the legal device is allowed to request the blockchain to perform the public key credibility certification and return the corresponding on-chain address, so the cloud server only performs credibility certification on the blockchain
  • the public key is stored to ensure that the material inventory data passed by the signature verification is uploaded by the legal device.
  • Step 1 Send the pre-stored public key to the cloud server, so that the cloud server uploads the public key to the blockchain, and returns it to the blockchain for storing the public key
  • Step 2 Receive the on-chain address corresponding to the public key returned by the cloud server
  • Step 3 Generate an inventory based on the obtained identity binding information, the received on-chain address and the local public key The device identity activation request of the robot.
  • the subsequent cloud server is checking the inventory of the robot’s equipment
  • the identity information is bound, it can identify whether the on-chain address carried in the received device identity activation request is returned by the blockchain, so as to determine whether the public key carried in the device identity activation request is attacked, and prevent the inventory robot The public key is attacked to improve the credibility of the public key.
  • each inventory robot corresponds to a pair of public and private keys.
  • the inventory robot obtains the public key and private key assigned to it by the target server; stores the private key locally to use the The private key signs the material inventory data; and, in the process of sending the device identity activation request to the cloud server, the public key is transmitted to the cloud server so that the cloud server can record the public key and base it on the cloud server.
  • the public key performs signature verification on the signed material inventory data.
  • the cloud server is receiving After the device identity activation request, the signed identity binding information is first verified to determine whether it responds to the device identity activation request. Based on this, the above step 3 is based on the obtained identity binding information and the received chain Use the address and local public key to generate the device identity activation request of the inventory robot, which specifically includes: use the pre-stored private key to sign the obtained identity binding information to obtain the signed identity binding information; based on the signature After the identity binding information, the received digital certificate and the local public key, the device identity activation request of the inventory robot is generated.
  • the inventory robot before the inventory robot sends the device identity activation request to the cloud server, it first signs the identity binding information, and then sends the device identity activation request to the cloud server based on the signed identity binding information to enable the cloud service After receiving the device identity activation request, the terminal performs credibility verification on the identity binding information carried in the device identity activation request, so as to ensure that the robot identity binding relationship is credible and tamper-proof.
  • the device identity activation request needs to be verified on the cloud server to ensure that the robot identity binding relationship is trustworthy
  • the above-mentioned S314 sends a device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and counts the relationship between the identity binding information of the robot and the public key.
  • the corresponding relationship is uploaded to the blockchain, which specifically includes: sending a device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and signs it based on the public key obtained from the blockchain After verification, the identity binding information of the inventory robot, the corresponding relationship between the address on the chain and the public key are uploaded to the blockchain after the verification is passed.
  • the cloud server after receiving the device identity activation request sent by the inventory robot, the cloud server obtains the public key corresponding to the inventory robot from the blockchain based on the device identification information of the inventory robot; based on the obtained public secret Key to verify the signed identity binding information in the device identity activation request; if the identity binding information passes the verification, the correspondence between the identity binding information of the robot, the address on the chain and the public key will be counted
  • the relationship is uploaded to the blockchain; if the identity binding information verification fails, it is determined that the device identity activation request comes from an untrusted inventory robot, and it stops responding to the received device identity activation request.
  • the cloud server can first verify the credibility of the on-chain address and public key in the device identity activation request, and then use the verified public key pair
  • the signed identity binding information is verified; based on this, it specifically includes: obtaining the on-chain address and public key corresponding to the inventory robot from the blockchain based on the device identification information of the inventory robot; based on the obtained
  • the on-chain address and public key are used to verify the on-chain address and public key in the device identity activation request; specifically, the on-chain address and public key obtained from the blockchain are determined to be in the device identity activation request.
  • the public key carried in the device identity activation request is valid; if the verification is passed, the public key carried in the device identity activation request is used to identify the device
  • the signed identity binding information in the activation request is verified; specifically, if the verification passes, it means that the public key is credible and valid; if the identity binding information passes the verification, the robot’s
  • the correspondence between the identity binding information, the address on the chain, and the public key is uploaded to the blockchain; if the identity binding information fails to pass the verification, it is determined that the device identity activation request comes from an untrusted inventory robot and stops responding. The requested device identity activation request.
  • the cloud server will upload the corresponding relationship between the unique identifier of the inventory robot, the identity binding information and the public key to the block after the cloud server passes the verification. chain.
  • the cloud server uploads the correspondence between the device identification information and the public key to the blockchain, where,
  • the device identification information may include: at least one of a unique device identification, identity binding information, a serial number of a digital certificate issued by a trusted service management platform, or an on-chain address returned by the blockchain;
  • the cloud server receives the signed materials uploaded by the inventory robot After the inventory data, based on the device identification information, obtain the public key corresponding to the inventory robot, and then use the public key to perform signature verification on the signed material inventory data.
  • the inventory robot uploads the material inventory to the cloud server
  • the type of device identification information carried in the data may be determined based on the type of device identification carried by the inventory robot requesting the activation of the device identity from the cloud server.
  • an inventory robot obtains inventory data of a target warehouse, where the inventory data includes: the robot pose information and the material attribute information. Correspondence; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; upload the signed material inventory data to the cloud server so that the cloud server can count the signed material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain.
  • the inventory robot Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
  • one or more embodiments of this specification also provide a blockchain-based material inventory data providing method.
  • the method is applied to the cloud server connected to the blockchain.
  • Figure 7 is a schematic flow diagram of the method for providing inventory data based on the blockchain provided by one or more embodiments of this specification.
  • the method in Figure 8 can be served by the cloud End execution, as shown in Figure 7, the method at least includes steps S702 to S706.
  • S702. Receive the signed material inventory data uploaded by the inventory robot, where the signed material inventory data is obtained by signing the material inventory data of the target warehouse using a pre-stored private key, and the material inventory data includes: a robot Correspondence between pose information and material attribute information.
  • S704 Perform signature verification on the signed material inventory data to obtain a corresponding signature verification result.
  • S706 If the signature verification result of the material inventory data is that the signature verification is passed, upload the signed material inventory data to the blockchain.
  • the inventory robot before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
  • signature verification is performed on the signed material inventory data, and the corresponding signature verification result is obtained, which specifically includes: using the smart contract deployed in the blockchain to perform signature verification on the signed material inventory data to obtain the corresponding signature Validation results.
  • the above-mentioned use of the smart contract deployed in the blockchain to perform signature verification on the material inventory data to obtain the corresponding signature verification result includes: using the smart contract deployed in the blockchain to obtain the public key corresponding to the inventory robot; and , Use the smart contract to perform signature verification on the signed material inventory data based on the obtained public key, and obtain the corresponding signature verification result; where the above public key is uploaded to the cloud server and stored by the inventory robot during the device identity activation stage To the blockchain.
  • the above S702 before receiving the signed material inventory data uploaded by the inventory robot, it further includes: receiving a device identity activation request sent by the inventory robot, where the device identity activation request is when the current state of the inventory robot is in the initialized state, Generated based on the identity binding information and the public key, and the identity binding information corresponds to the owner of the material counted by the inventory robot; in response to the received device identity activation request, and the device identity activation request carried The correspondence between the identity binding information and the public key is uploaded to the blockchain.
  • the equipment identity activation request sent by the inventory robot before receiving the equipment identity activation request sent by the inventory robot, it also includes: issuing the equipment identity graphic code assigned to the inventory robot to the warehouse management terminal corresponding to the inventory robot, so that the inventory robot uses the camera to scan the warehouse management terminal for display The device identity graphic code of the device is analyzed and the identity binding information is obtained.
  • the device identity activation request is generated based on the identification binding information of the inventory robot and a digital certificate; the digital certificate is generated by the trusted service management platform based on the public key of the inventory robot.
  • the device identity activation request is generated based on the signed identity binding information and digital certificate; the signed identity binding information is obtained by the inventory robot using the pre-stored private key to sign the identity binding information .
  • the foregoing response to the received device identity activation request, and uploading the correspondence between the identity binding information carried in the device identity activation request and the public key to the blockchain specifically includes: responding to the received Device identity activation request, and obtain the public key corresponding to the inventory robot from the trusted service management platform; verify the signed identity binding information based on the obtained public key; if the identity binding information passes the verification, then Upload the correspondence between the identity binding information and the digital certificate to the blockchain.
  • the above device identity activation request is generated based on the identity binding information of the inventory robot, the on-chain address, and the public key; the on-chain address is used to store the public key in the blockchain returned by the cloud server The storage address.
  • the device identity activation request is generated based on the signed identity binding information, the on-chain address, and the public key; the signed identity binding information is that the inventory robot uses the pre-stored private key to bind the identity
  • the specified information is obtained by signature processing.
  • said responding to the received device identity activation request, and uploading the correspondence between the identity binding information carried in the device identity activation request and the public key to the blockchain specifically includes: responding to the received Device identity activation request, and obtain the public key corresponding to the inventory robot from the blockchain; verify the signed identity binding information based on the obtained public key; if the identity binding information passes the verification, then Upload the corresponding relationship between the identity binding information of the inventory robot, the address on the chain, and the public key to the blockchain.
  • the method for providing material inventory data based on blockchain receives signed material inventory data uploaded by an inventory robot, wherein the signed material inventory data uses a pre-stored private key pair
  • the material inventory data of the target warehouse is obtained by signature processing.
  • the material inventory data includes: the correspondence between the robot pose information and the material attribute information; signature verification is performed on the signed material inventory data, and the corresponding signature verification result is obtained; If the signature verification result of the material inventory data is that the signature verification is passed, upload the signed material inventory data to the blockchain.
  • the inventory robot Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
  • this embodiment in this specification is based on the same inventive concept as the previous embodiment in this specification. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned blockchain-based material inventory data provision method. No longer.
  • FIG. 8 is a schematic diagram of the module composition of the block chain-based material inventory data providing device provided by one or more embodiments of this specification. The device is used to perform the area-based The method for providing inventory data of the block chain, as shown in FIG.
  • the device includes: a material data acquisition module 802, which obtains the material inventory data of the target warehouse, wherein the material inventory data includes: robot pose information and material attributes Correspondence between information; material data signature module 804, which uses a pre-stored private key to sign the material inventory data to obtain signed material inventory data; material data sending module 806, which signs the material inventory data Upload the inventory data of the material to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
  • a material data acquisition module 802 which obtains the material inventory data of the target warehouse, wherein the material inventory data includes: robot pose information and material attributes Correspondence between information
  • material data signature module 804 which uses a pre-stored private key to sign the material inventory data to obtain signed material inventory data
  • the inventory robot before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
  • the aforementioned material data sending module 806 is configured to upload the signed material inventory data to the cloud server, so that the cloud server uses the smart contract deployed in the blockchain to check the material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain.
  • the above-mentioned apparatus further includes: a device identity activation binding module, configured to obtain the public key of the inventory robot if the current state of the inventory robot is an initialization state; and obtain the identity of the inventory robot Binding information, wherein the identity binding information corresponds to the owner of the materials counted by the inventory robot; based on the identity binding information and the public key, a device identity activation request of the inventory robot is generated Send the device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and uploads the correspondence between the identity binding information and the public key to Blockchain.
  • a device identity activation binding module configured to obtain the public key of the inventory robot if the current state of the inventory robot is an initialization state
  • obtain the identity of the inventory robot Binding information wherein the identity binding information corresponds to the owner of the materials counted by the inventory robot
  • a device identity activation request of the inventory robot is generated Send the device identity activation request to the cloud server, so that the cloud server responds to the device identity
  • the above-mentioned device identity activation binding module is used to scan the device identity graphic code displayed on the warehouse management terminal with a camera device, wherein the device identity graphic code is allocated by the cloud server; for the device identity The graphic code is analyzed to obtain the identity binding information of the inventory robot.
  • the aforementioned device identity activation binding module is configured to send the public key to a trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key; The digital certificate sent by the trusted service management platform; based on the identity binding information and the digital certificate, a device identity activation request of the inventory robot is generated.
  • the aforementioned device identity activation binding module is configured to use a pre-stored private key to sign the identity binding information to obtain signed identity binding information; based on the signed identity binding information And the digital certificate to generate a device identity activation request of the inventory robot.
  • the aforementioned device identity activation binding module is configured to send the device identity activation request to a cloud server, so that the cloud server responds to the device identity activation request and is based on the trusted
  • the public key obtained by the service management platform verifies the signed identity binding information, and after the verification is passed, the correspondence between the identity binding information and the digital certificate is uploaded to the blockchain.
  • the aforementioned device identity activation binding module is configured to send the public key to the cloud server, so that the cloud server uploads the public key to the blockchain and returns to the zone
  • the on-chain address used to store the public key in the block chain; receive the on-chain address returned by the cloud server; based on the identity binding information, the on-chain address, and the public key, A device identity activation request of the inventory robot is generated.
  • the aforementioned device identity activation binding module is configured to use a pre-stored private key to sign the identity binding information to obtain signed identity binding information; based on the signed identity binding information , The on-chain address and the public key generate a device identity activation request of the inventory robot.
  • the above-mentioned device identity activation binding module is configured to send the device identity activation request to a cloud server, so that the cloud server responds to the device identity activation request, and based on the data from the block
  • the public key obtained in the chain verifies the signed identity binding information, and after the verification is passed, the correspondence between the identity binding information, the address on the chain, and the public key Upload to the blockchain.
  • the above-mentioned material data acquisition module 802 is configured to collect material tag information using a radio frequency device, and generate material inventory data of the target warehouse based on the material tag information and current pose information; and/or, use a camera device to collect The material image information, and according to the material image information and the current pose information, the material inventory data of the target warehouse is generated.
  • the inventory robot obtains the material inventory data of the target warehouse, where the material inventory data includes: the robot pose information and the material attribute information. Correspondence; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; upload the signed material inventory data to the cloud server so that the cloud server can count the signed material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain.
  • the inventory robot Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
  • the embodiment of the device for providing inventory data based on the blockchain in this specification and the embodiment of the method for providing inventory data based on the blockchain in this specification are based on the same inventive concept, so the embodiment of For specific implementation, please refer to the implementation of the aforementioned corresponding blockchain-based material inventory data providing method, and the repetition will not be repeated.
  • FIG. 9 is a schematic diagram of the module composition of the blockchain-based material inventory data providing device provided by one or more embodiments of this specification.
  • the device is used to execute the blockchain-based device described in FIG.
  • the method for providing material inventory data as shown in FIG. 9, the device includes: material data receiving module 902, which receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data uses pre-stored private inventory data.
  • the key is obtained by signing the material inventory data of the target warehouse.
  • the material inventory data includes: the correspondence between the robot pose information and the material attribute information; the material data verification module 904, which signs the data The material inventory data is subjected to signature verification to obtain the corresponding signature verification result; the material data storage module 906, if the signature verification result is that the signature verification is passed, upload the signed material inventory data to the blockchain.
  • the inventory robot before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
  • the aforementioned material data verification module 904 is configured to use the smart contract deployed in the blockchain to perform signature verification on the material inventory data to obtain a corresponding signature verification result.
  • the above-mentioned apparatus further includes: a device identity binding response module, configured to receive a device identity activation request sent by an inventory robot, wherein the device identity activation request is based on when the current state of the inventory robot is an initialized state Generated by the identity binding information and the public key, the identity binding information corresponds to the owner of the materials counted by the inventory robot; responding to the device identity activation request, and combining the identity binding information with The corresponding relationship between the public keys is uploaded to the blockchain.
  • a device identity binding response module configured to receive a device identity activation request sent by an inventory robot, wherein the device identity activation request is based on when the current state of the inventory robot is an initialized state Generated by the identity binding information and the public key, the identity binding information corresponds to the owner of the materials counted by the inventory robot; responding to the device identity activation request, and combining the identity binding information with The corresponding relationship between the public keys is uploaded to the blockchain.
  • the above device further includes: an equipment identity information issuing module, configured to issue to the warehouse management terminal corresponding to the inventory robot, the equipment identity graphic code assigned to the inventory robot, so that the inventory robot uses the camera to scan The device identity graphic code displayed on the warehouse management terminal is parsed to obtain identity binding information.
  • an equipment identity information issuing module configured to issue to the warehouse management terminal corresponding to the inventory robot, the equipment identity graphic code assigned to the inventory robot, so that the inventory robot uses the camera to scan
  • the device identity graphic code displayed on the warehouse management terminal is parsed to obtain identity binding information.
  • the device identity activation request is generated based on the identity binding information of the inventory robot and a digital certificate; the digital certificate is generated by a trusted service management platform based on the public key.
  • the device identity activation request is generated based on the signed identity binding information and the digital certificate;
  • the signed identity binding information is the identity of the inventory robot using a pre-stored private key
  • the binding information is obtained by signing.
  • the aforementioned device identity binding response module is configured to respond to the device identity activation request and obtain the public key corresponding to the inventory robot from the trusted service management platform; based on the obtained public key The key verifies the signed identity binding information; if the identity binding information passes the verification, upload the correspondence between the identity binding information and the digital certificate to the blockchain .
  • the device identity activation request is generated based on the identity binding information, on-chain address, and public key of the inventory robot; the on-chain address is in the blockchain returned by the cloud server The storage address used to store the public key.
  • the device identity activation request is generated based on signed identity binding information, an on-chain address, and a public key;
  • the signed identity binding information is a pre-stored private key used by the inventory robot The key is obtained by signing the identity binding information.
  • the aforementioned device identity binding response module is configured to respond to the device identity activation request and obtain the public key corresponding to the inventory robot from the blockchain; based on the obtained public secret The key verifies the signed identity binding information; if the identity binding information passes the verification, the correspondence between the identity binding information, the address on the chain, and the public key The relationship is uploaded to the blockchain.
  • the block chain-based material inventory data providing device receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data uses a pre-stored private key pair
  • the material inventory data of the target warehouse is obtained by signature processing.
  • the material inventory data includes: the correspondence between the robot pose information and the material attribute information; signature verification is performed on the signed material inventory data, and the corresponding signature verification result is obtained; If the signature verification result of the material inventory data is that the signature verification is passed, upload the signed material inventory data to the blockchain.
  • the inventory robot Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
  • the embodiment of the device for providing inventory data based on the blockchain in this specification and the embodiment of the method for providing inventory data based on the blockchain in this specification are based on the same inventive concept, so the embodiment of For specific implementation, please refer to the implementation of the aforementioned corresponding blockchain-based material inventory data providing method, and the repetition will not be repeated.
  • FIG. 10 is a schematic diagram of the structural composition of a blockchain-based material inventory data providing system provided by one or more embodiments of this specification.
  • the system is used to implement the blockchain-based material inventory data providing method described in Figures 2 to 6 , As shown in Figure 10, the system includes: an inventory robot and a cloud server connected to the blockchain.
  • the above-mentioned inventory robot obtains the inventory data of the target warehouse, where the inventory data includes: the correspondence between the robot pose information and the material attribute information; use the pre-stored private key to sign the inventory data to obtain the signature After the material inventory data; upload the signed material inventory data to the cloud server.
  • the aforementioned cloud server receives the signed material inventory data uploaded by the inventory robot; performs signature verification on the signed material inventory data; and uploads the material inventory data that has passed the signature verification to the blockchain.
  • the inventory robot obtains the material inventory data of the target warehouse, where the material inventory data includes: the robot pose information and the material attribute information. Correspondence; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; upload the signed material inventory data to the cloud server so that the cloud server can count the signed material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain.
  • the inventory robot Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
  • one or more embodiments of this specification also provide a blockchain-based material inventory data providing device, which is used to execute The above-mentioned blockchain-based material inventory data provision method is shown in Figure 11.
  • Blockchain-based material inventory data providing equipment may have relatively large differences due to different configurations or performances, and may include one or more processors 1101 and memory 1102, and the memory 1102 may store one or more storage applications Or data. Among them, the memory 1102 may be short-term storage or persistent storage.
  • the application program stored in the memory 1102 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in a blockchain-based material inventory data providing device.
  • the processor 1101 may be configured to communicate with the memory 1102, and execute a series of computer-executable instructions in the memory 1102 on a blockchain-based material inventory data providing device.
  • the blockchain-based material inventory data providing equipment may also include one or more power supplies 1103, one or more wired or wireless network interfaces 1104, one or more input and output interfaces 1105, one or more keyboards 1106, and so on.
  • a blockchain-based material inventory data providing device includes a memory, and one or more programs, one or more programs are stored in the memory, and one or more programs may include one Or more than one module, and each module may include a series of computer-executable instructions in a blockchain-based material inventory data providing device, and is configured to be executed by one or more processors to execute the one or more programs including It is used to perform the following computer-executable instructions: Obtain material inventory data of a target warehouse, where the material inventory data includes: the correspondence between robot pose information and material attribute information; The inventory data is signed to obtain the signed material inventory data; upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and passes the signature verification Upload the inventory data of the materials to the blockchain.
  • the inventory robot before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
  • the signed material inventory data is uploaded to the cloud server, so that the cloud server can perform signature verification on the material inventory data and verify the signature Uploading the passed material inventory data to the blockchain includes: uploading the signed material inventory data to the cloud server, so that the cloud server uses the smart contract deployed in the blockchain to check the material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain.
  • the method further includes: if the current state of the inventory robot is an initialization state, acquiring the public key of the inventory robot; and , Obtain the identity binding information of the inventory robot, wherein the identity binding information corresponds to the owner of the materials inventory by the inventory robot; and based on the identity binding information and the public key, the identity binding information is generated
  • the device identity activation request of the inventory robot sending the device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and combines the identity binding information with the public secret
  • the correspondence between the keys is uploaded to the blockchain.
  • the acquiring the identity binding information of the inventory robot includes: scanning the device identity graphic code displayed on the warehouse management terminal with a camera device, wherein the device identity graphic The code is allocated by the cloud server; the device identity graphic code is analyzed to obtain the identity binding information of the inventory robot.
  • the generating the device identity activation request of the inventory robot based on the identity binding information and the public key includes: sending the public key to A trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key; receives the digital certificate sent by the trusted service management platform; based on the identity binding information and the The digital certificate generates the device identity activation request of the inventory robot.
  • the generating the device identity activation request of the inventory robot based on the identity binding information and the digital certificate includes: using a pre-stored private key to pair the The identity binding information is signed to obtain the signed identity binding information; based on the signed identity binding information and the digital certificate, a device identity activation request of the inventory robot is generated.
  • the device identity activation request is sent to a cloud server, so that the cloud server responds to the device identity activation request and binds the identity Uploading the correspondence between the information and the public key to the blockchain includes: sending the device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and The signed identity binding information is verified based on the public key obtained from the trusted service management platform, and after the verification is passed, the corresponding relationship between the identity binding information and the digital certificate Upload to the blockchain.
  • the generating the device identity activation request of the inventory robot based on the identity binding information and the public key includes: sending the public key to The cloud server, so that the cloud server uploads the public key to the blockchain, and returns the on-chain address used to store the public key in the blockchain; receiving the cloud server The returned on-chain address; based on the identity binding information, the on-chain address, and the public key, a device identity activation request of the inventory robot is generated.
  • the generating the device identity activation request of the inventory robot based on the identity binding information, the on-chain address, and the public key includes: using pre-stored The private key for signing the identity binding information to obtain the signed identity binding information; based on the signed identity binding information, the on-chain address, and the public key to generate the Count the robot’s device identity activation request.
  • the device identity activation request is sent to a cloud server, so that the cloud server responds to the device identity activation request and binds the identity
  • Uploading the correspondence between the information and the public key to the blockchain includes: sending the device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request, and
  • the signed identity binding information is verified based on the public key obtained from the blockchain, and after the verification is passed, the identity binding information, the on-chain address and the public secret are verified.
  • the correspondence between the keys is uploaded to the blockchain.
  • the acquiring material inventory data of the target warehouse includes: collecting material label information using a radio frequency device, and generating information about the target warehouse according to the material label information and current pose information. Material inventory data; and/or, use a camera to collect material image information, and generate material inventory data of the target warehouse based on the material image information and current pose information.
  • the inventory robot obtains the material inventory data of the target warehouse, where the material inventory data includes: the difference between the robot pose information and the material attribute information Correspondence; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; upload the signed material inventory data to the cloud server so that the cloud server can count the signed material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain.
  • the inventory robot Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
  • a blockchain-based material inventory data providing device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include One or more modules, and each module may include a series of computer-executable instructions in a blockchain-based material inventory data providing device, and is configured to execute the one or more programs by one or more processors Contains the following computer executable instructions: receiving the signed material inventory data uploaded by the inventory robot, where the signed material inventory data is obtained by signing the material inventory data of the target warehouse using a pre-stored private key
  • the material inventory data includes: the correspondence between robot pose information and material attribute information; signature verification is performed on the signed material inventory data to obtain a corresponding signature verification result; if the signature verification result is If the signature verification is passed, the material inventory data after the signature is uploaded to the blockchain.
  • the inventory robot before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
  • the signature verification of the signed material inventory data to obtain the corresponding signature verification result includes: using the smart contract deployed in the blockchain to verify the signature.
  • the material inventory data is subjected to signature verification, and the corresponding signature verification result is obtained.
  • the computer executable instruction when executed, before receiving the signed material inventory data uploaded by the inventory robot, it further includes: receiving a device identity activation request sent by the inventory robot, wherein the device identity activation request is When the current state of the inventory robot is the initialization state, it is generated based on the identity binding information and the public key, and the identity binding information corresponds to the owner of the materials inventory by the inventory robot; in response to the device identity Activate the request, and upload the correspondence between the identity binding information and the public key to the blockchain.
  • the method further includes: issuing the device identity graphic code assigned to the inventory robot to the warehouse management terminal corresponding to the inventory robot; In order to enable the inventory robot to scan the device identity graphic code displayed on the warehouse management terminal by using a camera device, and analyze to obtain identity binding information.
  • the device identity activation request is generated based on the identity binding information of the inventory robot and a digital certificate; the digital certificate is a trusted service management platform based on the Generated by the public key.
  • the device identity activation request is generated based on the signed identity binding information and the digital certificate; the signed identity binding information is the inventory
  • the robot uses the pre-stored private key to sign the identity binding information.
  • the responding to the device identity activation request and uploading the correspondence between the identity binding information and the public key to the blockchain includes: Respond to the device identity activation request and obtain the public key corresponding to the inventory robot from the trusted service management platform; verify the signed identity binding information based on the obtained public key If the identity binding information passes the verification, upload the correspondence between the identity binding information and the digital certificate to the blockchain.
  • the device identity activation request is generated based on the identity binding information, the on-chain address, and the public key of the inventory robot;
  • the on-chain address is a cloud service The storage address used to store the public key in the blockchain returned by the end.
  • the device identity activation request is generated based on the signed identity binding information, the on-chain address, and the public key; the signed identity binding information is The inventory robot uses a pre-stored private key to sign the identity binding information.
  • the responding to the device identity activation request and uploading the correspondence between the identity binding information and the public key to the blockchain includes: Respond to the device identity activation request, and obtain the public key corresponding to the inventory robot from the blockchain; verify the signed identity binding information based on the obtained public key If the identity binding information passes the verification, upload the correspondence between the identity binding information, the address on the chain, and the public key to the blockchain.
  • the blockchain-based material inventory data providing device receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data uses a pre-stored private key pair
  • the material inventory data of the target warehouse is obtained by signature processing.
  • the material inventory data includes: the correspondence between the robot pose information and the material attribute information; signature verification is performed on the signed material inventory data, and the corresponding signature verification result is obtained; If the signature verification result of the material inventory data is that the signature verification is passed, upload the signed material inventory data to the blockchain.
  • the inventory robot Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
  • one or more embodiments of this specification also provide a storage medium for storing computer-executable instructions, a specific implementation
  • the storage medium may be a U disk, an optical disk, a hard disk, etc.
  • the computer executable instructions stored in the storage medium are executed by the processor, the following process can be realized: obtaining inventory data of the target warehouse, wherein the material
  • the inventory data includes: the correspondence between the robot pose information and the material attribute information; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; take the signed material inventory
  • the data is uploaded to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
  • the inventory robot before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
  • the signed material inventory data is uploaded to the cloud server, so that the cloud server can check the material inventory data
  • Performing signature verification and uploading the material inventory data that has passed the signature verification to the blockchain includes: uploading the signed material inventory data to the cloud server, so that the cloud server uses the intelligence deployed in the blockchain The contract performs signature verification on the material inventory data, and uploads the material inventory data that has passed the signature verification to the blockchain.
  • the method further includes: if the current state of the inventory robot is an initialization state, acquiring the inventory The public key of the robot; and obtaining the identity binding information of the inventory robot, wherein the identity binding information corresponds to the owner of the materials inventory by the inventory robot; based on the identity binding information and the inventory
  • the public key generates a device identity activation request of the inventory robot; sends the device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and binds the identity
  • the corresponding relationship between certain information and the public key is uploaded to the blockchain.
  • the obtaining the identity binding information of the inventory robot includes: scanning the device identity graphic code displayed on the warehouse management terminal with a camera device, Wherein, the device identity graphic code is allocated by the cloud server; the device identity graphic code is parsed to obtain the identity binding information of the inventory robot.
  • generating the device identity activation request of the inventory robot based on the identity binding information and the public key includes: The public key is sent to a trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key; receives the digital certificate sent by the trusted service management platform; The identity binding information and the digital certificate generate a device identity activation request of the inventory robot.
  • generating the device identity activation request of the inventory robot based on the identity binding information and the public key includes: The public key is sent to a trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key; receives the digital certificate sent by the trusted service management platform; The identity binding information and the digital certificate generate a device identity activation request of the inventory robot.
  • generating the device identity activation request of the inventory robot based on the identity binding information and the digital certificate includes: using pre-stored Signature processing of the identity binding information with the private key to obtain the signed identity binding information; based on the signed identity binding information and the digital certificate, a device identity activation request of the inventory robot is generated .
  • the device identity activation request is sent to the cloud server, so that the cloud server responds to the device identity activation request
  • uploading the correspondence between the identity binding information and the public key to the blockchain includes: sending the device identity activation request to the cloud server, so that the cloud server responds to all The device identity activation request, and the signed identity binding information is verified based on the public key obtained from the trusted service management platform, and after the verification is passed, the identity binding information is verified with the The correspondence between the digital certificates is uploaded to the blockchain.
  • generating the device identity activation request of the inventory robot based on the identity binding information and the public key includes: The public key is sent to the cloud server, so that the cloud server uploads the public key to the blockchain, and returns the on-chain address used to store the public key in the blockchain Receiving the on-chain address returned by the cloud server; based on the identity binding information, the on-chain address, and the public key, generating a device identity activation request of the inventory robot.
  • the device identity of the inventory robot is generated based on the identity binding information, the on-chain address, and the public key
  • the activation request includes: using a pre-stored private key to sign the identity binding information to obtain the signed identity binding information; based on the signed identity binding information, the on-chain address, and the The public key generates the device identity activation request of the inventory robot.
  • the device identity activation request is sent to the cloud server, so that the cloud server responds to the device identity activation request
  • uploading the correspondence between the identity binding information and the public key to the blockchain includes: sending the device identity activation request to the cloud server, so that the cloud server responds to all The device identity activation request, and verify the signed identity binding information based on the public key obtained from the blockchain, and after the verification is passed, the identity binding information, the chain The correspondence between the above address and the public key is uploaded to the blockchain.
  • the acquiring material inventory data of the target warehouse includes: collecting material label information by using a radio frequency device, and according to the material label information and the current location Posture information to generate material inventory data of the target warehouse; and/or use a camera to collect material image information, and generate material inventory data of the target warehouse based on the material image information and current pose information.
  • the inventory robot obtains inventory data of the target warehouse, where the inventory data includes: robot pose information and material attributes Correspondence between the information; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; upload the signed material inventory data to the cloud server, so that the cloud server can sign Perform signature verification on the material inventory data and upload the material inventory data that has passed the signature verification to the blockchain.
  • the inventory robot Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
  • the storage medium may be a U disk, an optical disk, a hard disk, etc.
  • the computer executable instructions stored in the storage medium can realize the following process when executed by the processor: After receiving the signature uploaded by the inventory robot The inventory data of the material, wherein the signed material inventory data is obtained by signing the material inventory data of the target warehouse using a pre-stored private key, and the material inventory data includes: robot pose information and material attribute information Correspondence between; the signature verification of the signed material inventory data to obtain the corresponding signature verification result; if the signature verification result is that the signature verification is passed, upload the signed material inventory data to the district Block chain.
  • the inventory robot before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
  • the signature verification of the signed material inventory data to obtain the corresponding signature verification result includes: using the blockchain The smart contract deployed in, performs signature verification on the material inventory data, and obtains the corresponding signature verification result.
  • the method further includes: receiving a device identity activation request sent by the inventory robot.
  • the device identity activation request is generated based on the identity binding information and the public key when the current state of the inventory robot is in the initialization state, and the identity binding information corresponds to the owner of the materials inventory by the inventory robot ; Respond to the device identity activation request, and upload the correspondence between the identity binding information and the public key to the blockchain.
  • the method further includes: issuing to the warehouse management terminal corresponding to the inventory robot as the inventory robot The distributed equipment identity graphic code, so that the inventory robot uses a camera to scan the equipment identity graphic code displayed on the warehouse management terminal, and analyzes to obtain identity binding information.
  • the device identity activation request is generated based on the identity binding information of the inventory robot and a digital certificate;
  • the digital certificate can be
  • the information service management platform is generated based on the public key.
  • the device identity activation request is generated based on the signed identity binding information and the digital certificate; the signed identity The binding information is obtained by the inventory robot using a pre-stored private key to sign the identity binding information.
  • the corresponding relationship between the identity binding information and the public key is uploaded in response to the device identity activation request To the blockchain, including: responding to the device identity activation request, and obtaining the public key corresponding to the inventory robot from the trusted service management platform; signing the public key based on the obtained public key If the identity binding information passes the verification, the corresponding relationship between the identity binding information and the digital certificate is uploaded to the blockchain.
  • the device identity activation request is generated based on the identity binding information, the on-chain address, and the public key of the inventory robot;
  • the on-chain address is the storage address used to store the public key in the blockchain returned by the cloud server.
  • the device identity activation request is generated based on the signed identity binding information, the on-chain address, and the public key; the signature The latter identity binding information is obtained by the inventory robot using the pre-stored private key to sign the identity binding information.
  • the corresponding relationship between the identity binding information and the public key is uploaded in response to the device identity activation request
  • To the blockchain including: responding to the device identity activation request, and obtaining the public key corresponding to the inventory robot from the blockchain; and signing the public key based on the obtained public key
  • the identity binding information is verified; if the identity binding information passes the verification, the correspondence between the identity binding information, the address on the chain, and the public key is uploaded to the blockchain.
  • the computer executable instructions stored in the storage medium in one or more embodiments of this specification When executed by the processor, they receive the signed material inventory data uploaded by the inventory robot, where the signed material inventory data is pre-stored
  • the private key is obtained by signing the material inventory data of the target warehouse.
  • the material inventory data includes: the correspondence between the robot pose information and the material attribute information; the signed material inventory data is signed and verified to obtain the corresponding Signature verification result; if the signature verification result of the material inventory data is that the signature verification is passed, upload the signed material inventory data to the blockchain.
  • the inventory robot Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
  • the improvement of a technology can be clearly distinguished between hardware improvements (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements in method flow).
  • hardware improvements for example, improvements in circuit structures such as diodes, transistors, switches, etc.
  • software improvements improvements in method flow.
  • the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure.
  • Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module.
  • a programmable logic device Programmable Logic Device, PLD
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression Language
  • AHDL Altera Hardware Description Language
  • HD Cal JHDL
  • Java Hardware Description Language Lava, Lola, My HDL, PALASM, RHDL (Ruby Hardware Description), etc.
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog
  • the controller can be implemented in any suitable manner.
  • the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the memory control logic.
  • controllers in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedded logic.
  • the same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
  • one or more of the embodiments in this specification can be provided as a method, a system, or a computer program product. Therefore, one or more of this specification may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more of this specification can adopt computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. form.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are used to generate It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • one or more of the embodiments in this specification can be provided as a method, a system, or a computer program product. Therefore, one or more of this specification may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more of this specification can adopt computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. form.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • program modules can also be practiced in a distributed computing environment. In these distributed computing environments, tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Resources & Organizations (AREA)
  • Quality & Reliability (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

One or more embodiments of the present description provide a blockchain-based material inventory data providing method, apparatus and system. The method comprises: obtaining material inventory data of a target warehouse, wherein the material inventory data comprises: a corresponding relationship between robot pose information and material attribute information; performing signature processing on the material inventory data by using a pre-stored private key to obtain signed material inventory data; uploading the signed material inventory data to a cloud server, so that the cloud server performs signature verification on the signed material inventory data and uploads the material inventory data of which the signature verification is successful to a blockchain.

Description

基于区块链的物资盘点数据提供方法、装置及系统Method, device and system for providing material inventory data based on blockchain 技术领域Technical field
本文涉及物联网技术领域,尤其涉及一种基于区块链的物资盘点数据提供方法、装置及系统。This article relates to the field of Internet of Things technology, and in particular to a method, device and system for providing inventory data based on blockchain.
背景技术Background technique
目前,随着物联网技术的快速发展,针对物资仓库进行仓储物资盘点的工作越来越普及,其中,商家仓库的物资盘点数据不仅可以作为是否接收买家的商品购买订单的依据,以确保及时为买家发货;另外,由于商家可以通过仓储物资抵押来得到投资方的投资,以确保资金供应链,因此,物资盘点数据还可以作为投资方向商家投资的决策依据,由此可知,仓库物资数据的真实性和可信性直接影响到商品供应及时性或投资方的决策精准度。At present, with the rapid development of the Internet of Things technology, the inventory of warehousing materials for material warehouses is becoming more and more popular. Among them, the material inventory data of merchant warehouses can not only be used as a basis for accepting purchase orders from buyers, to ensure timely delivery Buyers deliver goods; in addition, because merchants can obtain investment from investors by collateralizing warehousing materials to ensure the capital supply chain, material inventory data can also be used as a basis for decision-making on investment to merchants. From this, we can see that warehouse material data The authenticity and credibility of the product directly affects the timeliness of commodity supply or the accuracy of the investor’s decision-making.
然而,当前主要由仓库管理员上报商家的物资盘点数据,这样将导致物资盘点数据存在被篡改、伪造的风险,从而将导致商品供应不及时、或者增大投资方的投资风险。虽然现在越来越多的自动化设备被运用于库存盘点中,即通过借助自动化盘点设备来对仓库中的现存物资进行盘点,但是在物资盘点数据上传之前仍存在被篡改、伪造的风险。However, currently, warehouse managers mainly report the inventory data of merchants, which will lead to the risk of tampering and forgery in the inventory data, which will lead to untimely supply of goods or increase the investment risk of investors. Although more and more automated equipment is now used in inventory counting, that is, the existing materials in the warehouse are counted by means of automated counting equipment, there is still a risk of tampering and forgery before the material inventory data is uploaded.
由此可知,需要提供一种能够确保物资盘点数据的真实性、可信性的物资盘点数据获取的技术方案。It can be seen from this that it is necessary to provide a technical solution for obtaining material inventory data that can ensure the authenticity and credibility of material inventory data.
发明内容Summary of the invention
本说明书一个或多个实施例的目的是提供一种基于区块链的物资盘点数据提供方法。应用于盘点机器人,该基于区块链的物资盘点数据提供方法包括:获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系。利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据。将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。The purpose of one or more embodiments of this specification is to provide a method for providing material inventory data based on blockchain. Applied to an inventory robot, the blockchain-based material inventory data providing method includes: obtaining material inventory data of a target warehouse, where the material inventory data includes the correspondence between robot pose information and material attribute information. The pre-stored private key is used to sign the material inventory data to obtain the signed material inventory data. Upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
本说明书一个或多个实施例的目的是提供一种基于区块链的物资盘点数据提供方法。应用于接入区块链的云端服务端,该基于区块链的物资盘点数据提供方法包括:接收盘点机器人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系。对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果。若所述签名验证结果为签名验证通过,则将所述签名后的物资盘点数据上传至区块链。The purpose of one or more embodiments of this specification is to provide a method for providing material inventory data based on blockchain. Applied to the cloud server connected to the blockchain, the blockchain-based material inventory data provision method includes: receiving the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data is pre-stored The private key is obtained by signing the material inventory data of the target warehouse, and the material inventory data includes: the correspondence between the robot pose information and the material attribute information. Perform signature verification on the signed material inventory data to obtain a corresponding signature verification result. If the signature verification result is that the signature verification is passed, upload the signed material inventory data to the blockchain.
本说明书一个或多个实施例的目的是提供一种基于区块链的物资盘点数据提供装置。设置于盘点机器人侧,该基于区块链的物资盘点数据提供装置包括:物资数据获取模块,其获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系。物资数据签名模块,其利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据。物资数据发送模块,其将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。The purpose of one or more embodiments of this specification is to provide a blockchain-based material inventory data providing device. Set on the inventory robot side, the blockchain-based material inventory data providing device includes: a material data acquisition module that obtains material inventory data of a target warehouse, wherein the material inventory data includes: robot pose information and material attribute information Correspondence between. The material data signature module uses a pre-stored private key to sign the material inventory data to obtain signed material inventory data. Material data sending module, which uploads the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the block chain.
本说明书一个或多个实施例的目的是提供一种基于区块链的物资盘点数据提供装置。应用于接入区块链的云端服务端,该基于区块链的物资盘点数据提供装置包括:物资数据接收模块,其接收盘点机器人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系。物资数据验签模块,其对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果。物资数据存储模块,其若所述签名验证结果为签名验证通过,则将所述签名后的物资盘 点数据上传至区块链。The purpose of one or more embodiments of this specification is to provide a blockchain-based material inventory data providing device. Applied to the cloud server connected to the block chain, the block chain-based material inventory data providing device includes: a material data receiving module, which receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data The material inventory data is obtained by using a pre-stored private key to sign the material inventory data of the target warehouse. The material inventory data includes the correspondence between robot pose information and material attribute information. The material data verification module performs signature verification on the signed material inventory data, and obtains the corresponding signature verification result. The material data storage module uploads the signed material inventory data to the blockchain if the signature verification result is that the signature verification is passed.
本说明书一个或多个实施例的目的是提供一种基于区块链的物资盘点数据提供系统。该基于区块链的物资盘点数据提供系统包括:盘点机器人、以及接入区块链的云端服务端。The purpose of one or more embodiments of this specification is to provide a blockchain-based material inventory data providing system. The blockchain-based material inventory data providing system includes: inventory robots and cloud server terminals connected to the blockchain.
所述盘点机器人,获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据;将所述签名后的物资盘点数据上传至云端服务端。The inventory robot obtains material inventory data of a target warehouse, where the material inventory data includes: the correspondence between the robot pose information and material attribute information; and the material inventory data is signed with a pre-stored private key Processing to obtain the signed material inventory data; upload the signed material inventory data to the cloud server.
所述云端服务端,接收盘点机器人上传的签名后的物资盘点数据;并对所述物资盘点数据进行签名验证;以及将签名验证通过的物资盘点数据上传至区块链。The cloud server receives the signed material inventory data uploaded by the inventory robot; performs signature verification on the material inventory data; and uploads the material inventory data that has passed the signature verification to the blockchain.
本说明书一个或多个实施例的目的是提供一种基于区块链的物资盘点数据提供设备,包括:处理器;以及被安排成存储计算机可执行指令的存储器。The purpose of one or more embodiments of this specification is to provide a blockchain-based material inventory data providing device, including: a processor; and a memory arranged to store computer-executable instructions.
所述计算机可执行指令在被执行时使所述处理器获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系。利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据。将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。The computer-executable instructions enable the processor to obtain material inventory data of the target warehouse when executed, where the material inventory data includes the correspondence between robot pose information and material attribute information. The pre-stored private key is used to sign the material inventory data to obtain the signed material inventory data. Upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
本说明书一个或多个实施例的目的是提供一种基于区块链的物资盘点数据提供设备,包括:处理器;以及被安排成存储计算机可执行指令的存储器。The purpose of one or more embodiments of this specification is to provide a blockchain-based material inventory data providing device, including: a processor; and a memory arranged to store computer-executable instructions.
所述计算机可执行指令在被执行时使所述处理器接收盘点机器人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系。对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果。若所述签名验证结果为签名验证通过,则将所述签名后的物资盘点数据上传至区块链。When the computer-executable instructions are executed, the processor receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data is a material inventory of the target warehouse using a pre-stored private key The data is obtained by signature processing, and the material inventory data includes: the correspondence between the robot pose information and the material attribute information. Perform signature verification on the signed material inventory data to obtain a corresponding signature verification result. If the signature verification result is that the signature verification is passed, upload the signed material inventory data to the blockchain.
本说明书一个或多个实施例的目的是提供一种存储介质,用于存储计算机可执行指令。所述可执行指令在被处理器执行时获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系。利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据。将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。The purpose of one or more embodiments of this specification is to provide a storage medium for storing computer-executable instructions. When the executable instruction is executed by the processor, the material inventory data of the target warehouse is obtained, where the material inventory data includes: the correspondence between robot pose information and material attribute information. The pre-stored private key is used to sign the material inventory data to obtain the signed material inventory data. Upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
本说明书一个或多个实施例的目的是提供一种存储介质,用于存储计算机可执行指令。所述可执行指令在被处理器执行时接收盘点机器人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系。对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果。若所述签名验证结果为签名验证通过,则将所述签名后的物资盘点数据上传至区块链。The purpose of one or more embodiments of this specification is to provide a storage medium for storing computer-executable instructions. The executable instruction receives the signed material inventory data uploaded by the inventory robot when the executable instruction is executed by the processor, wherein the signed material inventory data uses a pre-stored private key to sign the material inventory data of the target warehouse Obtained, the material inventory data includes: the correspondence between the robot pose information and the material attribute information. Perform signature verification on the signed material inventory data to obtain a corresponding signature verification result. If the signature verification result is that the signature verification is passed, upload the signed material inventory data to the blockchain.
附图说明Description of the drawings
为了更清楚地说明本说明书一个或多个实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书一个或多个中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in one or more embodiments of this specification, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only one of the specification. For some of the embodiments described in one or more of them, for those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative work.
图1为本说明书一个或多个实施例提供的基于区块链的物资盘点数据提供系统的应用场景示意图;Figure 1 is a schematic diagram of an application scenario of a blockchain-based material inventory data providing system provided by one or more embodiments of this specification;
图2为图1所示的基于区块链的物资盘点数据提供系统的应用场景中的数据流转示意图;Figure 2 is a schematic diagram of data flow in the application scenario of the blockchain-based material inventory data providing system shown in Figure 1;
图3为本说明书一个或多个实施例提供的应用于盘点机器人的基于区块链的物资盘点数据提供方法的第一种流程示意图;3 is a schematic diagram of the first flow chart of a blockchain-based material inventory data providing method applied to an inventory robot according to one or more embodiments of this specification;
图4为本说明书一个或多个实施例提供的应用于盘点机器人的基于区块链的物资盘点数据提供方法的第二种流程示意图;4 is a schematic diagram of a second flow chart of a blockchain-based material inventory data providing method applied to an inventory robot according to one or more embodiments of this specification;
图5为本说明书一个或多个实施例提供的应用于盘点机器人的基于区块链的物资盘点数据提供方法的第三种流程示意图;5 is a schematic diagram of a third process of a blockchain-based material inventory data providing method applied to an inventory robot according to one or more embodiments of this specification;
图6为本说明书一个或多个实施例提供的应用于盘点机器人的基于区块链的物资盘点数据提供方法的第四种流程示意图;6 is a schematic diagram of the fourth process of a blockchain-based material inventory data providing method applied to an inventory robot according to one or more embodiments of this specification;
图7为本说明书一个或多个实施例提供的应用于云端服务端的基于区块链的物资盘点数据提供方法的流程示意图;FIG. 7 is a schematic flowchart of a blockchain-based material inventory data providing method applied to a cloud server according to one or more embodiments of this specification;
图8为本说明书一个或多个实施例提供的设置于盘点机器人侧的基于区块链的物资盘点数据提供装置的模块组成示意图;8 is a schematic diagram of the module composition of a blockchain-based material inventory data providing device provided on the side of an inventory robot provided by one or more embodiments of this specification;
图9为本说明书一个或多个实施例提供的设置于云端服务端的基于区块链的物资盘点数据提供装置的模块组成示意图;9 is a schematic diagram of the module composition of a block chain-based material inventory data providing device provided on a cloud server provided by one or more embodiments of this specification;
图10为本说明书一个或多个实施例提供的基于区块链的物资盘点数据提供系统的结构组成示意图;10 is a schematic diagram of the structure of a blockchain-based material inventory data providing system provided by one or more embodiments of this specification;
图11为本说明书一个或多个实施例提供的基于区块链的物资盘点数据提供设备的结构示意图。FIG. 11 is a schematic structural diagram of a block chain-based material inventory data providing device provided by one or more embodiments of this specification.
具体实施方式Detailed ways
为了使本领域的技术人员更好地理解本说明书中的一个或多个技术方案,下面将结合本说明书一个或多个实施例中的附图,对本说明书一个或多个实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书中的一个或多个一部分实施例,而不是全部的实施例。基于本说明书中的一个或多个实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本文的保护范围。In order to enable those skilled in the art to better understand one or more technical solutions in this specification, the following will combine the drawings in one or more embodiments of this specification to compare the technical solutions in one or more embodiments of this specification. For a clear and complete description, it is obvious that the described embodiments are only a part of one or more of the embodiments in this specification, rather than all of the embodiments. Based on one or more embodiments in this specification, all other embodiments obtained by a person of ordinary skill in the art without creative work should fall within the scope of protection herein.
需要说明的是,在不冲突的情况下,本说明书中的一个或多个实施例以及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本说明书一个或多个实施例。It should be noted that, if there is no conflict, one or more embodiments in this specification and the features in the embodiments can be combined with each other. Hereinafter, one or more embodiments of this specification will be described in detail with reference to the drawings and in conjunction with the embodiments.
本说明书一个或多个实施例提供了一种基于区块链的物资盘点数据提供方法、装置及系统,在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。One or more embodiments of this specification provide a method, device and system for providing material inventory data based on blockchain. Before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first checks the collected materials The inventory data is processed with trusted signatures to obtain the signed material inventory data, and on the cloud server side based on the blockchain technology to realize the signature verification of the material inventory data under the witness of multiple parties and be trusted on the chain, which improves the material inventory data The authenticity, security, credibility, and tamper-proof modification of
图1为本说明书一个或多个实施例提供的基于区块链的物资盘点数据提供系统的应用场景示意图,如图1所示,该系统包括:盘点机器人、云端服务端和区块链,其中,该盘点机器人可以用于对目标仓库的仓储物资进行盘点的智能机器人终端,该盘点机器人中设置有可信签名模块;该云端服务端可以是用于对目标仓库的物资盘点数据进行可信存储并提供第三方客户端访问该物资盘点数据的服务端,该云端服务端能够提供区块链服务,该云端服务端可以是独立的服务器,也可以是由多个服务器组成的服务器集群。Figure 1 is a schematic diagram of the application scenario of the blockchain-based material inventory data providing system provided by one or more embodiments of this specification. As shown in Figure 1, the system includes: an inventory robot, a cloud server, and a blockchain. , The inventory robot can be used for an intelligent robot terminal that takes inventory of warehousing materials in a target warehouse, and the inventory robot is equipped with a trusted signature module; the cloud server can be used to perform trusted storage of inventory data of the target warehouse It also provides a server for third-party clients to access the material inventory data. The cloud server can provide blockchain services. The cloud server can be an independent server or a server cluster composed of multiple servers.
具体的,针对将盘点机器人采集的目标仓库的物资盘点数据存储至云端服务端的过程,盘点机器人获取目标仓库的物资盘点数据,其中,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;以及利用预存的私有密钥对物资盘点数据进行签名处理,得到签名后的物资盘点数据;再将签名后的物资盘点数据上传至云端服务端,以使云端服务端对签名后的物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链,这样第三方客户端能够从区块链中获取可信的物资盘点数据。Specifically, for the process of storing the material inventory data of the target warehouse collected by the inventory robot to the cloud server, the inventory robot obtains the material inventory data of the target warehouse, where the material inventory data includes: the robot pose information and the material attribute information. And use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; then upload the signed material inventory data to the cloud server, so that the cloud server can The material inventory data is subjected to signature verification and the material inventory data that has passed the signature verification is uploaded to the blockchain, so that the third-party client can obtain credible material inventory data from the blockchain.
基于图1中的基于区块链的资源转移系统的应用场景示意图,如图2所示,云端 服务端可以是接入区块链中作为区块链中的区块链节点,也可以是与接入区块链的至少一个区块链节点进行通信,以云端服务端作为区块链节点为例,其中,基于区块链的物资盘点数据提供的具体过程为:盘点机器人获取目标仓库的物资盘点数据,其中,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;盘点机器人利用预存的私有密钥对物资盘点数据进行签名处理,得到签名后的物资盘点数据;盘点机器人将签名后的物资盘点数据上传至云端服务端;云端服务端接收盘点机器人上传的签名后的物资盘点数据;云端服务端对签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;云端服务端若签名验证结果为验证通过,则将签名验证通过的物资盘点数据上传至区块链,以使第三方客户端从区块链中获取可信的物资盘点数据。Based on the application scenario diagram of the blockchain-based resource transfer system in Figure 1, as shown in Figure 2, the cloud server can be connected to the blockchain as a blockchain node in the blockchain, or it can be connected to the blockchain. At least one blockchain node connected to the blockchain communicates. Take the cloud server as the blockchain node as an example. The specific process of providing inventory data based on the blockchain is: the inventory robot obtains the materials in the target warehouse Inventory data, where the material inventory data includes: the correspondence between the robot pose information and material attribute information; the inventory robot uses the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; The robot uploads the signed material inventory data to the cloud server; the cloud server receives the signed material inventory data uploaded by the inventory robot; the cloud server performs signature verification on the signed material inventory data to obtain the corresponding signature verification result; If the signature verification result is passed, the cloud server uploads the material inventory data that has passed the signature verification to the blockchain, so that the third-party client can obtain credible material inventory data from the blockchain.
在上述应用场景中,在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In the above application scenario, before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, as well as on the cloud server The side is based on blockchain technology to realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
图3为本说明书一个或多个实施例提供的基于区块链的物资盘点数据提供方法的第一种流程示意图,图3中的方法能够由图1中的盘点机器人执行,如图3所示,该方法至少包括步骤S302~S306。Fig. 3 is a schematic diagram of the first flow chart of a blockchain-based material inventory data providing method provided by one or more embodiments of this specification. The method in Fig. 3 can be executed by the inventory robot in Fig. 1, as shown in Fig. 3 , The method at least includes steps S302 to S306.
S302,获取目标仓库的物资盘点数据,其中,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系。S302: Acquire material inventory data of the target warehouse, where the material inventory data includes: a correspondence between robot pose information and material attribute information.
其中,上述机器人位姿信息可以是盘点机器人中的位姿传感器采集得到的,该位姿信息可以包括当前姿态角度和当前坐标信息,该位姿传感器可以包括:激光雷达距离传感器、加速度计陀螺仪等传感器;上述物资属性信息可以是盘点机器人中的射频装置或摄像装置采集得到的;具体的,利用射频装置采集目标仓库中物资对象的物资标签信息,并根据该物资标签信息和当前位姿信息,生成目标仓库的物资盘点数据;其中,该射频装置可以是RFID射频模块或者其他射频模块;和/或,利用摄像装置采集物资目标仓库中物资对象的图像信息,并根据该物资图像信息和当前位姿信息,生成目标仓库的物资盘点数据。Among them, the above-mentioned robot pose information may be collected by a pose sensor in the inventory robot, the pose information may include current pose angle and current coordinate information, and the pose sensor may include: a lidar distance sensor, an accelerometer gyroscope The above-mentioned material attribute information can be collected by the radio frequency device or camera device in the inventory robot; specifically, the radio frequency device is used to collect the material label information of the material object in the target warehouse, and based on the material label information and current pose information , Generate material inventory data of the target warehouse; where the radio frequency device may be an RFID radio frequency module or other radio frequency module; The pose information generates inventory data of the target warehouse.
其中,上述物资对象可以是商品、货物等,具体的,盘点机器人按照预设行走路线,在目标仓库中移动,利用位姿传感器采集盘点机器人的位姿信息,同时,利用射频装置扫描物资对象上的射频标签获取物资标签信息、和/或利用摄像装置对物资对象进行拍摄获取物资图像信息,并将该位姿信息与物资标签信息之间第一对应关系、和/或该位姿信息与物资图像信息之间的第二对应关系传输至盘点机器人中的物资盘点模块,该物资盘点模块根据该第一对应关系和/或第二对应关系,确定机器人位姿信息和物资属性信息之间的对应关系。Among them, the above-mentioned material objects can be commodities, goods, etc. Specifically, the inventory robot moves in the target warehouse according to a preset walking route, uses the pose sensor to collect the pose information of the inventory robot, and at the same time, uses the radio frequency device to scan the material objects on the The radio frequency tag obtains the material label information, and/or uses the camera device to photograph the material object to obtain the material image information, and the first correspondence between the pose information and the material tag information, and/or the pose information and the material image The second correspondence between the information is transmitted to the material inventory module in the inventory robot, and the material inventory module determines the correspondence between the robot pose information and the material attribute information according to the first correspondence and/or the second correspondence .
其中,为了提高机器人位姿信息的真实性,防止恶意用户对位姿信息进行篡改,位姿传感器将机器人位姿信息传输至盘点机器人中的导航寻路系统,导航寻路系统对机器人位姿信息进行签名处理,将签名后的机器人位姿信息传输至物资盘点模块,确保机器人位姿信息的真实可信性、防篡改性,进而确保机器人位姿信息和物资属性信息之间的对应关系的准确性、可信性。Among them, in order to improve the authenticity of the robot pose information and prevent malicious users from tampering with the pose information, the pose sensor transmits the robot pose information to the navigation path finding system in the inventory robot, and the navigation path finding system controls the robot pose information. Perform signature processing and transfer the signed robot pose information to the material inventory module to ensure the authenticity and tamper-proof modification of the robot pose information, thereby ensuring the accuracy of the correspondence between the robot pose information and the material attribute information Sexuality and credibility.
S304,利用预存的私有密钥对获取到的物资盘点数据进行签名处理,得到签名后的物资盘点数据。S304: Use the pre-stored private key to perform signature processing on the acquired material inventory data to obtain the signed material inventory data.
具体的,在获取到目标仓库的物资盘点数据后,并非直接将物资盘点数据上传至云端服务端,而是先对物资盘点数据进行签名处理,再将签名后的物资盘点数据上传至云端服务端,以便云端服务器快速、准确地识别物资盘点数据是否来自于盘点机器人本身,验证盘点机器人身份的可信性。Specifically, after obtaining the material inventory data of the target warehouse, the material inventory data is not directly uploaded to the cloud server, but the material inventory data is first signed, and then the signed material inventory data is uploaded to the cloud server , So that the cloud server can quickly and accurately identify whether the material inventory data comes from the inventory robot itself, and verify the credibility of the inventory robot's identity.
S306,将签名后的物资盘点数据上传至云端服务端,以使该云端服务端对签名后的物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。S306: Upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the signed material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
具体的,在盘点机器人侧利用私有密钥对物资盘点数据进行签名,对应的,在云端服务端利用盘点机器人对应的公有密钥对签名后的物资盘点数据进行验签,来识别物资盘点数据的真实可靠性,再将验签通过的物资盘点数据可信存储至区块链中,以使第三方客户端从区块链中获取真实、可信、多方见证的物资盘点数据,从而将该物资盘点数据作为后续业务处理的指导数据;Specifically, the private key is used to sign the inventory data on the inventory robot side. Correspondingly, the public key corresponding to the inventory robot is used on the cloud server to verify the signed inventory data to identify the inventory data. Authenticity and reliability, and then credibly store the material inventory data that passed the verification into the blockchain, so that the third-party client can obtain the true, credible, and multi-party witness material inventory data from the blockchain, so that the material Inventory data is used as guidance data for subsequent business processing;
具体的,云端服务端接收第三方客户端的数据访问请求,其中,该物资访问请求携带有第三方客户端的标识信息和目标物资盘点数据的标识信息,云端服务端在确定第三方客户端具有该目标物资数据的访问权限后,将目标物资盘点数据发送至第三方客户端。Specifically, the cloud server receives a data access request from a third-party client, where the material access request carries the identification information of the third-party client and the identification information of the target material inventory data, and the cloud server determines that the third-party client has the target After the access authority of the material data, the target material inventory data is sent to the third-party client.
本说明书一个或多个实施例中,在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of this specification, before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
其中,针对云服务器对物资盘点数据进行签名验证的过程,可以引入智能合约,实现在多方见证下进行物资盘点数据的验签,基于此,如图4所示,上述S306,将签名后的物资盘点数据上传至云端服务端,以使该云端服务端对签名后的物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链,具体包括:S3061,将签名后的物资盘点数据上传至云端服务端,以使该云端服务端利用区块链中部署的智能合约对签名后的物资盘点数据进行签名验证、并将签名验证通过的物资盘点数据上传至区块链。Among them, for the process of cloud server signature verification of material inventory data, smart contracts can be introduced to realize the verification of material inventory data under the witness of multiple parties. Based on this, as shown in Figure 4, the above S306, the signed materials The inventory data is uploaded to the cloud server, so that the cloud server can perform signature verification on the signed material inventory data and upload the material inventory data that has passed the signature verification to the blockchain, including: S3061, the signed material inventory The data is uploaded to the cloud server, so that the cloud server uses the smart contract deployed in the blockchain to perform signature verification on the signed material inventory data, and upload the material inventory data that has passed the signature verification to the blockchain.
具体的,云端服务端在接收到盘点机器人所上传的签名后的物资盘点数据后,通过区块链中部署的智能合约基于该盘点机器人的设备标识信息获取对应的公有密钥,并基于该公有密钥对签名后的物资盘点数据进行签名验证,其中,该公有密钥是盘点机器人在设备身份激活阶段上传至云端服务端的。Specifically, after the cloud server receives the signed material inventory data uploaded by the inventory robot, it obtains the corresponding public key based on the device identification information of the inventory robot through the smart contract deployed in the blockchain, and based on the public key The key performs signature verification on the signed material inventory data, where the public key is uploaded to the cloud server by the inventory robot during the device identity activation stage.
其中,智能合约是以数字形式定义的能够自动执行条款的合约。在区块链技术领域,智能合约是指基于预定事件触发、不可篡改、自动执行的计算机程序。利用智能合约可以保障所有约定的可靠执行,避免篡改、抵赖和违约。智能合约在发布后,需要在区块链中的状态机上进行实例化并生效。Among them, a smart contract is a contract that can automatically execute terms defined in digital form. In the field of blockchain technology, smart contracts refer to computer programs that are triggered based on predetermined events, cannot be tampered with, and are automatically executed. The use of smart contracts can guarantee the reliable execution of all agreements and avoid tampering, denial and breach of contract. After the smart contract is released, it needs to be instantiated and validated on the state machine in the blockchain.
其中,可以预先在区块链上部署智能合约,该智能合约中包括自动执行物资盘点数据验签的合约,通过智能合约对盘点机器人上传的签名后的物资盘点数据进行验签处理,能够实现无人工干预、全流程透明、多方见证。Among them, a smart contract can be deployed on the blockchain in advance. The smart contract includes a contract that automatically executes the material inventory data verification. The smart contract is used to verify the signed material inventory data uploaded by the inventory robot. Manual intervention, full process transparency, multi-party witness.
具体的,基于智能合约进行物资盘点数据验签中,区块链上各节点均参与智能合约的自动执行,智能合约执行过程中产生的所有执行数据项(状态数据及状态参数)均对区块链上各节点公开透明,并且控制区块链上各节点对执行数据项进行共识,将得到共识的盘点数据验签执行数据作为针对物资盘点数据的签名验证结果加密存储至区块链中,即智能合约执行过程中产生的所有执行数据项均是在区块链上各节点的共同见证下进行存储。Specifically, in the material inventory data verification based on the smart contract, each node on the blockchain participates in the automatic execution of the smart contract, and all the execution data items (status data and status parameters) generated during the execution of the smart contract are The nodes on the chain are open and transparent, and each node on the blockchain is controlled to reach a consensus on the execution data items, and the consensus verification execution data of the inventory data is encrypted and stored in the blockchain as the signature verification result for the material inventory data, that is All execution data items generated during the execution of the smart contract are stored under the common witness of all nodes on the blockchain.
其中,由于区块链技术具有不可篡改性,且最终的针对物资盘点数据的签名验证结果和验签通过的物资盘点数据是经过多方见证后写入区块链的,因此,可以保证上传至区块链中的签名验证结果和物资盘点数据无法被篡改,从而保证了数据的真实性;并且针对物资盘点数据验签的整个过程,通过区块链上部署的智能合约自动执行,各个验签环节无人工干预,各验签环节信息均在区块链上进行存证,后续一旦需要将物资盘点数据的验签过程作为公证进行公开,可以直接从区块链中获取物资盘点数据验签过程所有相关的信息作为证据使用即可。Among them, because the blockchain technology is non-tamperable, and the final signature verification result for the material inventory data and the material inventory data that have passed the verification are written into the blockchain after multiple witnesses, it can be guaranteed to be uploaded to the district. The signature verification results and material inventory data in the block chain cannot be tampered with, thereby ensuring the authenticity of the data; and the entire process of material inventory data verification and signing is automatically executed through the smart contract deployed on the blockchain, and each verification link Without manual intervention, the information of each verification link is stored on the blockchain. If the verification process of the material inventory data needs to be disclosed as a notarization in the future, the material inventory data can be directly obtained from the blockchain. Relevant information can be used as evidence.
另外,为了便于第三方客户端快速、高效查看所需的物资盘点数据,从而作为指导后续业务处理的决策信息,云端服务端还可以利用区块链中部署的智能合约,基于验 签通过的物资盘点数据,生成分类物资盘点报表,并将该分类物资盘点报表上传至区块链。具体的,可以按照盘点时间信息、物资类别信息、物资所在区域信息等对验签通过的物资盘点数据进行分类,并生成相应的物资盘点报表。In addition, in order to facilitate the third-party client to quickly and efficiently view the required material inventory data, which is used as the decision information to guide the subsequent business processing, the cloud server can also use the smart contract deployed in the blockchain based on the materials that have passed the verification. Inventory data, generate a classified material inventory report, and upload the classified material inventory report to the blockchain. Specifically, the material inventory data that has passed the verification can be classified according to inventory time information, material category information, and material location information, and a corresponding material inventory report can be generated.
其中,在具体实施时,针对通过智能合约自动执行的不同实现过程,可以通过区块链中部署的不同的智能合约实现的。例如,利用区块链中部署的第一智能合约对签名后的物资盘点数据进行签名验证。利用区块链中部署的第二智能合约基于验签通过的物资盘点数据,生成分类物资盘点报表。Among them, in specific implementation, the different implementation processes that are automatically executed through smart contracts can be implemented through different smart contracts deployed in the blockchain. For example, the first smart contract deployed in the blockchain is used to perform signature verification on the signed material inventory data. The second smart contract deployed in the blockchain is used to generate a classified material inventory report based on the material inventory data that has passed the verification.
进一步的,为了便于对盘点机器人的可信身份进行有效验证,预先对各盘点机器人进行设备身份激活绑定,通过云端服务端将盘点机器人的唯一性身份标识与公有密钥之间的对应关系进行可信上链,这样后续既可以快速、准确地对盘点机器人的身份进行可信验证,也可以对盘点机器人所上传的物资盘点数据进行签名验证,实现双重管控存储至区块链中的物资盘点数据的真实可信性,基于此,如图5所示,在上述S302,获取目标仓库的物资盘点数据之前,还包括步骤S308~S314。Further, in order to facilitate effective verification of the trusted identity of the inventory robot, the device identity activation binding of each inventory robot is performed in advance, and the corresponding relationship between the unique identity of the inventory robot and the public key is performed through the cloud server. Trusted on the chain, so that the follow-up can quickly and accurately verify the identity of the inventory robot, and it can also perform signature verification on the inventory data uploaded by the inventory robot, achieving dual control and storage of the inventory in the blockchain. Based on the authenticity of the data, as shown in FIG. 5, before the material inventory data of the target warehouse is obtained in S302, steps S308 to S314 are further included.
S308,若盘点机器人的当前状态为初始化状态,则获取盘点机器人的公有密钥。S308: If the current state of the inventory robot is the initialization state, acquire the public key of the inventory robot.
具体的,判断盘点机器人的当前状态是否满足预设条件,其中,该预设条件包括:盘点机器人出厂前、首次使用盘点机器人、或者盘点机器人所服务企业存在变更;若判断结果为是,则确定盘点机器人的当前状态为初始化状态,即说明需要对盘点机器人进行身份激活绑定。Specifically, it is judged whether the current state of the inventory robot satisfies preset conditions, where the preset conditions include: before the inventory robot leaves the factory, the inventory robot is used for the first time, or there is a change in the enterprise served by the inventory robot; if the result of the judgment is yes, then confirm The current state of the inventory robot is the initialization state, which means that the identification of the inventory robot needs to be activated and bound.
S310,获取盘点机器人的身份绑定信息,其中,该身份绑定信息与盘点机器人所盘点的物资归属方相对应。S310: Obtain identity binding information of the inventory robot, where the identity binding information corresponds to the owner of the materials inventory by the inventory robot.
具体的,针对盘点机器人进行身份激活绑定的过程,不仅需要获取盘点机器人的公有密钥,还需要获取盘点机器人的身份绑定信息;其中,针对目标仓库同时存储有多个物资归属方的物资对象的情况,为了便于后续对物资盘点数据进行准确分类,每个盘点机器人与其所服务的物资归属方相对应。Specifically, for the process of identity activation and binding for the inventory robot, not only the public key of the inventory robot needs to be obtained, but also the identity binding information of the inventory robot needs to be obtained; among them, the target warehouse simultaneously stores the materials belonging to multiple materials. In the case of objects, in order to facilitate the subsequent accurate classification of material inventory data, each inventory robot corresponds to the owner of the material it serves.
S312,基于获取到的身份绑定信息和公有密钥,生成盘点机器人的设备身份激活请求。S312: Based on the obtained identity binding information and the public key, a device identity activation request of the inventory robot is generated.
其中,上述设备身份激活请求携带有盘点机器人的身份绑定信息、盘点机器人对应的公有密钥,还可以携带盘点机器人的唯一性标识;在获取到盘点机器人的公有密钥和身份绑定信息后,自动生成设备身份激活请求。Among them, the above device identity activation request carries the identity binding information of the inventory robot, the public key corresponding to the inventory robot, and can also carry the unique identifier of the inventory robot; after obtaining the public key and identity binding information of the inventory robot , Automatically generate device identity activation request.
S314,向云端服务端发送设备身份激活请求,以使该云端服务端响应于该设备身份激活请求并将盘点机器人的身份绑定信息与公有密钥之间的对应关系上传至区块链。S314: Send a device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and uploads the correspondence between the identity binding information of the inventory robot and the public key to the blockchain.
具体的,在盘点机器人侧,可以设置身份激活输入模块,对应的,在云端服务端设置可信签名身份激活服务,盘点机器人中的身份激活输入模块基于生成的设备身份激活请求,触发云端服务端中的可信签名身份激活服务针对盘点机器人执行身份激活绑定操作,从而实现盘点机器人身份的区块链合法登记,确保盘点机器人的身份可信性和不可篡改性。Specifically, on the inventory robot side, an identity activation input module can be set. Correspondingly, a trusted signature identity activation service is set on the cloud server. The identity activation input module in the inventory robot triggers the cloud server based on the generated device identity activation request The trusted signature identity activation service in, performs identity activation and binding operations for inventory robots, so as to realize the legal registration of the blockchain of inventory robot identities, and ensure the credibility and immutability of the inventory robot's identity.
对应的,云端服务端在接收到盘点机器人上传的物资盘点数据后,不仅基于该盘点机器人对应的公有密钥对签名后的物资盘点数据进行签名验证,还基于该盘点机器人对应的身份绑定信息,对盘点机器人的设备身份进行真实性验证,若数据签名验证通过且设备身份验证通过,则将物资盘点数据上传至区块链中;Correspondingly, after receiving the material inventory data uploaded by the inventory robot, the cloud server not only performs signature verification on the signed material inventory data based on the public key corresponding to the inventory robot, but also based on the identity binding information corresponding to the inventory robot , To verify the authenticity of the device identity of the inventory robot, if the data signature verification is passed and the device identity verification is passed, the material inventory data will be uploaded to the blockchain;
其中,针对盘点机器人的设备身份真实性验证的过程,也可以引入智能合约自动执行,具体的,云端服务端利用区块链中部署的智能合约基于盘点机器人对应的身份绑定信息,对盘点机器人的设备身份进行真实性验证,得到相应的设备身份验证结果。Among them, for the process of verifying the authenticity of the device identity of the inventory robot, smart contracts can also be introduced to automatically execute. Specifically, the cloud server uses the smart contract deployed in the blockchain to perform the verification of the inventory robot based on the identity binding information corresponding to the inventory robot. The authenticity of the device identity is verified, and the corresponding device identity verification result is obtained.
另外,针对盘点机器人向云端服务端发送设备身份激活请求的过程,可能存在因设备身份激活请求验证不通过,导致设备身份绑定失败的情况,因此,云端服务端还可以向盘点机器人返回身份激活请求响应结果,其中,该身份激活请求响应结果包括:设 备身份绑定成功、或设备身份绑定失败;In addition, for the process of the inventory robot sending the device identity activation request to the cloud server, there may be situations in which the device identity activation request fails to pass the verification, which causes the device identity binding to fail. Therefore, the cloud server can also return the identity activation to the inventory robot The response result of the request, where the response result of the identity activation request includes: the device identity binding is successful, or the device identity binding fails;
对应的,盘点机器人在接收到设备身份绑定失败的反馈结果时,可以重新向云端服务端发送设备身份激活请求,以使云端服务端再次响应该设备身份激活请求。Correspondingly, when the inventory robot receives the feedback result that the device identity binding fails, it can re-send the device identity activation request to the cloud server, so that the cloud server can respond to the device identity activation request again.
进一步的,考虑到针对因确定出设备身份激活请求来自于不可信的盘点机器人,而导致设备身份绑定失败的情况,优选地,禁止向盘点机器人返回身份激活请求响应结果,从而避免该不可信设备重新向云端服务端发送设备身份激活请求。Further, considering that the device identity binding fails because it is determined that the device identity activation request comes from an untrusted inventory robot, preferably, it is forbidden to return the identity activation request response result to the inventory robot, so as to avoid the untrustworthy The device re-sends the device identity activation request to the cloud server.
而针对因网络异常等原因导致设备身份绑定失败的情况,优选地,云端服务端向盘点机器人返回身份激活请求响应结果,以触发盘点机器人重新向云端服务端发送设备身份激活请求。In view of the failure of device identity binding due to network abnormalities and other reasons, preferably, the cloud server returns the response result of the identity activation request to the inventory robot to trigger the inventory robot to re-send the device identity activation request to the cloud server.
因此,云端服务端响应于上述设备身份激活请求,若确定出设备身份绑定失败,则根据设备身份绑定失败的原因类型,确定是否向盘点机器人返回身份激活请求响应结果。Therefore, the cloud server responds to the above-mentioned device identity activation request, and if it is determined that the device identity binding fails, it determines whether to return the identity activation request response result to the inventory robot according to the type of cause of the device identity binding failure.
其中,针对盘点机器人的身份绑定信息的获取过程,如图6所示,上述S310,获取盘点机器人的身份绑定信息,具体包括步骤S3101和S3102。Among them, for the process of obtaining the identity binding information of the inventory robot, as shown in FIG. 6, the above S310, obtaining the identity binding information of the inventory robot, specifically includes steps S3101 and S3102.
S3101,利用摄像装置扫描仓库管理终端上显示的设备身份图形码,其中,该设备身份图形码是云端服务端所分配的;S3101, using a camera device to scan the equipment identity graphic code displayed on the warehouse management terminal, where the equipment identity graphic code is allocated by the cloud server;
S3102,对扫描到的设备身份图形码进行解析,得到盘点机器人的身份绑定信息。S3102: Analyze the scanned device identity graphic code to obtain the identity binding information of the inventory robot.
具体的,仓库管理终端可以安装有预设应用程序,在检测到针对该预设应用程序的触发操作后,仓库管理终端自动生成设备身份信息获取请求,并将该设备身份信息获取请求发送至云端服务端,云端服务端响应于该设备身份信息获取请求,向仓库管理终端返回相应的设备身份信息,其中,该设备身份信息可以是动态图形码信息,还可以是随机字符串。Specifically, the warehouse management terminal may be installed with a preset application. After detecting a trigger operation for the preset application, the warehouse management terminal automatically generates a device identity information acquisition request, and sends the device identity information acquisition request to the cloud On the server side, the cloud server responds to the device identity information acquisition request and returns corresponding device identity information to the warehouse management terminal, where the device identity information can be dynamic graphic code information or random character strings.
具体的,以设备身份信息为动态图形码信息为例,仓库管理终端在接收到云端服务端返回的动态图形码信息后,显示相应的动态图形码,以使盘点机器人利用摄像装置扫描该动态图形码,并获取相应的身份绑定信息。Specifically, taking the equipment identity information as dynamic graphic code information as an example, the warehouse management terminal displays the corresponding dynamic graphic code after receiving the dynamic graphic code information returned by the cloud server, so that the inventory robot can scan the dynamic graphic with the camera device. Code, and obtain the corresponding identity binding information.
其中,可以在盘点机器人直接输入身份绑定信息(如随机字符串),也可以通过仓库管理终端将身份绑定信息传输至盘点机器人。优选的,将触发云端服务端分配动态图形码的过程设置于仓库管理终端,再由仓库管理终端将盘点机器人的身份绑定信息传输至盘点机器人,这样能够避免因盘点机器人的作业环境为人员复杂的物资仓库,存在恶意用户随意触发盘点机器人向云端服务端发送设备身份激活请求,而导致随意篡改盘点机器人的真实身份的问题,进一步提高了盘点机器人的身份真实性、可信性。Among them, the identity binding information (such as a random character string) can be directly input in the inventory robot, or the identity binding information can be transmitted to the inventory robot through the warehouse management terminal. Preferably, the process of triggering the distribution of dynamic graphics codes on the cloud server is set in the warehouse management terminal, and the warehouse management terminal transmits the identity binding information of the inventory robot to the inventory robot, so as to avoid the complexity of the inventory robot's work environment. In the material warehouse of, there is a problem that malicious users randomly trigger the inventory robot to send device identity activation requests to the cloud server, which causes the real identity of the inventory robot to be tampered with, which further improves the authenticity and credibility of the inventory robot.
另外,在具体实施时,为了进一步防止恶意用户使用其他终端设备随意触发盘点机器人向云端服务端发送设备身份激活请求,盘点机器人在检测到图形码扫描触发操作后,采集仓库管理终端的目标标识信息,判断该目标标识信息与预设标识信息是否一致,若是,则利用摄像装置扫描仓库管理终端上显示的设备身份图形码;具体的,该目标标识信息可以是无线通信模块的唯一序列号、MAC地址、或SIM卡信息。In addition, in specific implementation, in order to further prevent malicious users from using other terminal devices to randomly trigger the inventory robot to send a device identity activation request to the cloud server, the inventory robot collects the target identification information of the warehouse management terminal after detecting the graphic code scanning trigger operation , To determine whether the target identification information is consistent with the preset identification information, if so, use the camera to scan the equipment identification graphic code displayed on the warehouse management terminal; specifically, the target identification information can be the unique serial number of the wireless communication module, MAC Address, or SIM card information.
具体的,若确定目标标识信息与预设标识信息一致,则说明当前所需扫描的设备身份图形码来自于预先设定的可信仓库管理终端,避免恶意用户随意触发盘点机器人向云端服务端发送设备身份激活请求,从而避免非法对盘点机器人的身份进行恶意变更的情况。Specifically, if it is determined that the target identification information is consistent with the preset identification information, it means that the device identity graphic code that needs to be scanned currently comes from a preset trusted warehouse management terminal, preventing malicious users from triggering the inventory robot to send to the cloud server at will Device identity activation request, so as to avoid the situation of illegally making malicious changes to the identity of the inventory robot.
进一步的,针对目标仓库存储有多个物资归属方的物资对象的情况,云端服务端在接收到仓库管理终端的设备身份信息获取请求后,向仓库管理终端返回设备服务企业列表;仓库管理终端向云端服务端返回基于该设备服务企业列表所选择的目标设备服务企业,即待身份激活的盘点机器人所服务的物资归属方;云端服务端向仓库管理终端返回该目标设备服务企业对应的设备身份信息,即盘点机器人的身份绑定信息,以使仓库管理终端将该身份绑定信息传输至对应的盘点机器人。Further, in view of the situation where the target warehouse stores the material objects of multiple material attribution parties, after the cloud server receives the equipment identity information acquisition request of the warehouse management terminal, it returns the equipment service company list to the warehouse management terminal; The cloud server returns the target device service company selected based on the device service company list, that is, the owner of the materials served by the inventory robot to be activated; the cloud server returns the device identity information corresponding to the target device service company to the warehouse management terminal , That is, the identity binding information of the inventory robot, so that the warehouse management terminal transmits the identity binding information to the corresponding inventory robot.
进一步的,针对设备身份激活请求的生成过程,为了提高盘点机器人上传的用于对物资盘点数据进行签名验证的公有密钥的可信度,增加由可信服务管理平台为盘点机器人颁发具有公信力的数字证书的过程,由于只有合法设备端才允许请求可信服务管理平台颁发相应的数字证书,这样云端服务端仅对可信服务管理平台颁发的数字证书进行存储,以确保签名验证通过的物资盘点数据均为合法设备端所上传的,基于此,上述S312,基于获取到的身份绑定信息和公有密钥,生成盘点机器人的设备身份激活请求,具体包括:步骤一,将预存的公有密钥发送至可信服务管理平台,以使该可信服务管理平台生成包含该公有密钥的数字证书;步骤二,接收可信服务管理平台发送的数字证书;步骤三,基于获取到的身份绑定信息和接收到的数字证书,生成盘点机器人的设备身份激活请求。Furthermore, for the process of generating device identity activation requests, in order to improve the credibility of the public key uploaded by the inventory robot for signature verification of material inventory data, the trusted service management platform will issue a credible certificate to the inventory robot. In the process of digital certificates, since only legal devices are allowed to request the trusted service management platform to issue corresponding digital certificates, the cloud server only stores the digital certificates issued by the trusted service management platform to ensure the inventory of materials that have passed the signature verification The data is all uploaded by the legal device. Based on this, the above S312 generates the device identity activation request of the inventory robot based on the obtained identity binding information and the public key, which specifically includes: Step one, transfer the pre-stored public key Send to the trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key; step two, receive the digital certificate sent by the trusted service management platform; step three, bind based on the obtained identity The information and the received digital certificate generate the device identity activation request of the inventory robot.
其中,由于针对盘点机器人的公有密钥所生成的数字证书是可信机构颁发的,该数字证书具有公信力,并且后续云端服务端在对盘点机器人的设备身份信息进行绑定时,可以从设备身份激活请求中携带的数字证书中解析出颁发机构,以识别接收到的数字证书是否为可信机构颁发的,防止盘点机器人的公有密钥被攻击,提高公有密钥的可信性。Among them, because the digital certificate generated for the public key of the inventory robot is issued by a trusted organization, the digital certificate has credibility, and the subsequent cloud server can obtain the device identity when binding the device identity information of the inventory robot. The digital certificate carried in the activation request parses out the issuing authority to identify whether the received digital certificate is issued by a trusted authority, to prevent the public key of the inventory robot from being attacked, and to improve the credibility of the public key.
具体的,每个盘点机器人均对应于一对公有密钥和私有密钥,盘点机器人获取目标服务端为其分配的公有密钥和私有密钥;将该私有密钥存储至本地,以利用该私有密钥对物资盘点数据进行签名处理;以及,在向云端服务端发送设备身份激活请求的过程,将该公有密钥传输至云端服务端,以使云端服务端记录该公有密钥并基于该公有密钥对签名后的物资盘点数据进行签名验证。Specifically, each inventory robot corresponds to a pair of public and private keys. The inventory robot obtains the public key and private key assigned to it by the target server; stores the private key locally to use the The private key signs the material inventory data; and, in the process of sending the device identity activation request to the cloud server, the public key is transmitted to the cloud server so that the cloud server can record the public key and base it on the cloud server. The public key performs signature verification on the signed material inventory data.
进一步的,针对设备身份激活请求的生成过程,为了进一步防止非法分子恶意向云端服务端发送设备身份激活请求,通过在盘点机器人侧增加对身份绑定信息的签名处理,这样云端服务端在接收到设备身份激活请求后,先对签名后的身份绑定信息进行验签,来确定是否响应于该设备身份激活请求,基于此,上述步骤三,基于获取到的身份绑定信息和接收到的数字证书,生成盘点机器人的设备身份激活请求,具体包括:利用预存的私有密钥对获取到的身份绑定信息进行签名处理,得到签名后的身份绑定信息;基于签名后的身份绑定信息和接收到的数字证书,生成盘点机器人的设备身份激活请求。Furthermore, for the process of generating device identity activation requests, in order to further prevent illegal elements from maliciously sending device identity activation requests to the cloud server, by adding signature processing to the identity binding information on the inventory robot side, the cloud server is receiving After the device identity activation request, the signed identity binding information is first verified to determine whether it responds to the device identity activation request. Based on this, the above step 3 is based on the obtained identity binding information and the received number The certificate generates the device identity activation request of the inventory robot, which specifically includes: using the pre-stored private key to sign the acquired identity binding information to obtain the signed identity binding information; based on the signed identity binding information and The received digital certificate generates the device identity activation request of the inventory robot.
具体的,盘点机器人在向云端服务端发送设备身份激活请求之前,先对身份绑定信息进行签名处理,再基于签名后的身份绑定信息向云端服务端发送设备身份激活请求,以使云端服务端在接收到设备身份激活请求后,对该设备身份激活请求中携带的身份绑定信息进行可信性验证,从而确保机器人身份绑定关系是可信的、防篡改。Specifically, before the inventory robot sends the device identity activation request to the cloud server, it first signs the identity binding information, and then sends the device identity activation request to the cloud server based on the signed identity binding information to enable the cloud service After receiving the device identity activation request, the terminal performs credibility verification on the identity binding information carried in the device identity activation request, so as to ensure that the robot identity binding relationship is credible and tamper-proof.
其中,针对在盘点机器人侧先对身份绑定信息进行签名再生成设备身份激活请求的情况,对应的,在云端服务端需要对设备身份激活请求进行验签,确保机器人身份绑定关系是可信的、防篡改,基于此,上述S314,向云端服务端发送设备身份激活请求,以使该云端服务端响应于该设备身份激活请求并将盘点机器人的身份绑定信息与公有密钥之间的对应关系上传至区块链,具体包括:向云端服务端发送设备身份激活请求,以使该云端服务端响应于该设备身份激活请求、并基于从可信服务管理平台获取到的公有密钥对签名后的身份绑定信息进行验签、且验签通过后将盘点机器人的身份绑定信息与数字证书之间的对应关系上传至区块链。Among them, for the situation where the identity binding information is signed on the inventory robot side and then the device identity activation request is generated, correspondingly, the device identity activation request needs to be verified on the cloud server to ensure that the robot identity binding relationship is trustworthy Based on this, the above-mentioned S314 sends a device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and counts the relationship between the identity binding information of the robot and the public key. The corresponding relationship is uploaded to the blockchain, which specifically includes: sending a device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request, and based on the public key pair obtained from the trusted service management platform The signed identity binding information is verified, and after the verification is passed, the corresponding relationship between the identity binding information of the inventory robot and the digital certificate is uploaded to the blockchain.
具体的,云端服务端在接收到盘点机器人发送的设备身份激活请求后,基于该盘点机器人的设备标识信息,从可信服务管理平台获取与该盘点机器人对应的数字证书;基于获取到的数字证书中的公有密钥,对设备身份激活请求中的签名后的身份绑定信息进行验签;若身份绑定信息验签通过,则将盘点机器人的身份绑定信息与数字证书之间的对应关系上传至区块链;若身份绑定信息验签不通过,则确定设备身份激活请求来自于不可信的盘点机器人,停止响应接收到的设备身份激活请求。Specifically, after receiving the device identity activation request sent by the inventory robot, the cloud server obtains the digital certificate corresponding to the inventory robot from the trusted service management platform based on the device identification information of the inventory robot; based on the acquired digital certificate The public key in the device is used to verify the signed identity binding information in the device identity activation request; if the identity binding information passes the verification, the corresponding relationship between the identity binding information of the robot and the digital certificate will be counted Upload to the blockchain; if the identity binding information fails to pass the verification, it is determined that the device identity activation request comes from an untrusted inventory robot, and it stops responding to the received device identity activation request.
另外,云端服务端在接收到盘点机器人发送的设备身份激活请求后,还可以先对设备身份激活请求中的数字证书进行验签,再利用验签通过的数字证书中的公有密钥对 签名后的身份绑定信息进行验签;基于此,具体包括:基于该盘点机器人的设备标识信息,从可信服务管理平台获取与该盘点机器人对应的数字证书的验签密钥,其中,该验签密钥与可信服务管理平台对盘点机器人对应的公有密钥进行签名并生成数字证书所用的签名密钥相对应;基于获取到的验签密钥,对设备身份激活请求中的数字证书进行验签;若数字证书验签通过,则利用该数字证书中的公有密钥,对设备身份激活请求中的签名后的身份绑定信息进行验签;具体的,如果数字证书验签通过,则说明该数字证书是具有公信力的,因此,该数字证书中的公有密钥是可信的;若身份绑定信息验签通过,则将盘点机器人的身份绑定信息与数字证书之间的对应关系上传至区块链;若身份绑定信息验签不通过,则确定设备身份激活请求来自于不可信的盘点机器人,停止响应接收到的设备身份激活请求。In addition, after the cloud server receives the device identity activation request sent by the inventory robot, it can first verify the digital certificate in the device identity activation request, and then use the public key in the digital certificate that has passed the verification to sign. Based on this, it specifically includes: obtaining the verification key of the digital certificate corresponding to the inventory robot from the trusted service management platform based on the device identification information of the inventory robot. The key corresponds to the signature key used by the trusted service management platform to sign the public key corresponding to the inventory robot and generate the digital certificate; based on the obtained verification key, the digital certificate in the device identity activation request is verified If the digital certificate passes the verification, the public key in the digital certificate is used to verify the signed identity binding information in the device identity activation request; specifically, if the digital certificate passes the verification, it means The digital certificate is credible, therefore, the public key in the digital certificate is credible; if the identity binding information passes the verification, upload the correspondence between the identity binding information of the inventory robot and the digital certificate To the blockchain; if the verification of the identity binding information fails, it is determined that the device identity activation request comes from an untrusted inventory robot, and it stops responding to the received device identity activation request.
进一步的,考虑到由于区块链上的信息是可信的、不可篡改的,因此,相较于可信服务管理平台,经区块链认证的公有密钥更具有公信力,基于此,盘点机器人可以先向区块链申请针对自身的公有密钥的公信力认证,从而确保区块链上存储的公有密钥的公信力,再向云端服务端发送携带有公信力认证后的公有密钥的设备身份激活请求,基于此,针对设备身份激活请求的生成过程,为了提高盘点机器人上传的用于对物资盘点数据进行签名验证的公有密钥的可信度,增加由区块链为盘点机器人返回具有公信力的公有密钥对应的链上地址的过程,由于只有合法设备端才允许请求区块链进行公有密钥的公信力认证并返回相应的链上地址,这样云端服务端仅对区块链进行公信力认证的公有密钥进行存储,以确保签名验证通过的物资盘点数据均为合法设备端所上传的,基于此,上述S312,基于获取到的身份绑定信息和公有密钥,生成盘点机器人的设备身份激活请求,具体包括:步骤一,将预存的公有密钥发送至云端服务端,以使该云端服务端将该公有密钥上传至区块链,并返回区块链中用于存储该公有密钥的链上地址;步骤二,接收云端服务端返回的公有密钥对应的链上地址;步骤三,基于获取到的身份绑定信息、接收到的链上地址和本地的公有密钥,生成盘点机器人的设备身份激活请求。Furthermore, considering that the information on the blockchain is credible and cannot be tampered with, the public key certified by the blockchain is more credible than the trusted service management platform. Based on this, the inventory robot You can first apply to the blockchain for credibility certification for your own public key, so as to ensure the credibility of the public key stored on the blockchain, and then send the device identity activation with the public key after credibility certification to the cloud server. Based on this, in order to increase the credibility of the public key uploaded by the inventory robot for signature verification of the material inventory data, the blockchain will return the credibility of the inventory robot to the generation process of the device identity activation request. The process of the address on the chain corresponding to the public key, because only the legal device is allowed to request the blockchain to perform the public key credibility certification and return the corresponding on-chain address, so the cloud server only performs credibility certification on the blockchain The public key is stored to ensure that the material inventory data passed by the signature verification is uploaded by the legal device. Based on this, the above S312, based on the obtained identity binding information and the public key, generates the device identity activation of the inventory robot The request specifically includes: Step 1: Send the pre-stored public key to the cloud server, so that the cloud server uploads the public key to the blockchain, and returns it to the blockchain for storing the public key Step 2: Receive the on-chain address corresponding to the public key returned by the cloud server; Step 3: Generate an inventory based on the obtained identity binding information, the received on-chain address and the local public key The device identity activation request of the robot.
其中,由于针对盘点机器人的公有密钥已经过区块链进行公信力认证并上链,以及公有密钥对应的链上地址是区块链返回的,因此,后续云端服务端在对盘点机器人的设备身份信息进行绑定时,可以识别接收到的设备身份激活请求中携带的链上地址是否为区块链所返回的,从而确定设备身份激活请求中携带的公有密钥是否被攻击,防止盘点机器人的公有密钥被攻击,提高公有密钥的可信性。Among them, since the public key for the inventory robot has been certified by the blockchain and uploaded to the chain, and the on-chain address corresponding to the public key is returned by the blockchain, the subsequent cloud server is checking the inventory of the robot’s equipment When the identity information is bound, it can identify whether the on-chain address carried in the received device identity activation request is returned by the blockchain, so as to determine whether the public key carried in the device identity activation request is attacked, and prevent the inventory robot The public key is attacked to improve the credibility of the public key.
具体的,每个盘点机器人均对应于一对公有密钥和私有密钥,盘点机器人获取目标服务端为其分配的公有密钥和私有密钥;将该私有密钥存储至本地,以利用该私有密钥对物资盘点数据进行签名处理;以及,在向云端服务端发送设备身份激活请求的过程,将该公有密钥传输至云端服务端,以使云端服务端记录该公有密钥并基于该公有密钥对签名后的物资盘点数据进行签名验证。Specifically, each inventory robot corresponds to a pair of public and private keys. The inventory robot obtains the public key and private key assigned to it by the target server; stores the private key locally to use the The private key signs the material inventory data; and, in the process of sending the device identity activation request to the cloud server, the public key is transmitted to the cloud server so that the cloud server can record the public key and base it on the cloud server. The public key performs signature verification on the signed material inventory data.
进一步的,针对设备身份激活请求的生成过程,为了进一步防止非法分子恶意向云端服务端发送设备身份激活请求,通过在盘点机器人侧增加对身份绑定信息的签名处理,这样云端服务端在接收到设备身份激活请求后,先对签名后的身份绑定信息进行验签,来确定是否响应于该设备身份激活请求,基于此,上述步骤三,基于获取到的身份绑定信息、接收到的链上地址和本地的公有密钥,生成盘点机器人的设备身份激活请求,具体包括:利用预存的私有密钥对获取到的身份绑定信息进行签名处理,得到签名后的身份绑定信息;基于签名后的身份绑定信息、接收到的数字证书和本地的公有密钥,生成盘点机器人的设备身份激活请求。Furthermore, for the process of generating device identity activation requests, in order to further prevent illegal elements from maliciously sending device identity activation requests to the cloud server, by adding signature processing to the identity binding information on the inventory robot side, the cloud server is receiving After the device identity activation request, the signed identity binding information is first verified to determine whether it responds to the device identity activation request. Based on this, the above step 3 is based on the obtained identity binding information and the received chain Use the address and local public key to generate the device identity activation request of the inventory robot, which specifically includes: use the pre-stored private key to sign the obtained identity binding information to obtain the signed identity binding information; based on the signature After the identity binding information, the received digital certificate and the local public key, the device identity activation request of the inventory robot is generated.
具体的,盘点机器人在向云端服务端发送设备身份激活请求之前,先对身份绑定信息进行签名处理,再基于签名后的身份绑定信息向云端服务端发送设备身份激活请求,以使云端服务端在接收到设备身份激活请求后,对该设备身份激活请求中携带的身份绑定信息进行可信性验证,从而确保机器人身份绑定关系是可信的、防篡改。Specifically, before the inventory robot sends the device identity activation request to the cloud server, it first signs the identity binding information, and then sends the device identity activation request to the cloud server based on the signed identity binding information to enable the cloud service After receiving the device identity activation request, the terminal performs credibility verification on the identity binding information carried in the device identity activation request, so as to ensure that the robot identity binding relationship is credible and tamper-proof.
其中,针对在盘点机器人侧先对身份绑定信息进行签名再生成设备身份激活请求的情况,对应的,在云端服务端需要对设备身份激活请求进行验签,确保机器人身份绑定关系是可信的、防篡改,基于此,上述S314,向云端服务端发送设备身份激活请求,以使该云端服务端响应于该设备身份激活请求并将盘点机器人的身份绑定信息与公有密钥之间的对应关系上传至区块链,具体包括:向云端服务端发送设备身份激活请求,以使该云端服务端响应于该设备身份激活请求、并基于从区块链获取到的公有密钥对签名后的身份绑定信息进行验签、且验签通过后将盘点机器人的身份绑定信息、链上地址与公有密钥之间的对应关系上传至区块链。Among them, for the situation where the identity binding information is signed on the inventory robot side and then the device identity activation request is generated, correspondingly, the device identity activation request needs to be verified on the cloud server to ensure that the robot identity binding relationship is trustworthy Based on this, the above-mentioned S314 sends a device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and counts the relationship between the identity binding information of the robot and the public key. The corresponding relationship is uploaded to the blockchain, which specifically includes: sending a device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and signs it based on the public key obtained from the blockchain After verification, the identity binding information of the inventory robot, the corresponding relationship between the address on the chain and the public key are uploaded to the blockchain after the verification is passed.
具体的,云端服务端在接收到盘点机器人发送的设备身份激活请求后,基于该盘点机器人的设备标识信息,从区块链中获取与该盘点机器人对应的公有密钥;基于获取到的公有密钥,对设备身份激活请求中的签名后的身份绑定信息进行验签;若身份绑定信息验签通过,则将盘点机器人的身份绑定信息、链上地址与公有密钥之间的对应关系上传至区块链;若身份绑定信息验签不通过,则确定设备身份激活请求来自于不可信的盘点机器人,停止响应接收到的设备身份激活请求。Specifically, after receiving the device identity activation request sent by the inventory robot, the cloud server obtains the public key corresponding to the inventory robot from the blockchain based on the device identification information of the inventory robot; based on the obtained public secret Key to verify the signed identity binding information in the device identity activation request; if the identity binding information passes the verification, the correspondence between the identity binding information of the robot, the address on the chain and the public key will be counted The relationship is uploaded to the blockchain; if the identity binding information verification fails, it is determined that the device identity activation request comes from an untrusted inventory robot, and it stops responding to the received device identity activation request.
另外,云端服务端在接收到盘点机器人发送的设备身份激活请求后,还可以先对设备身份激活请求中的链上地址和公有密钥进行可信性验证,再利用验证通过的公有密钥对签名后的身份绑定信息进行验签;基于此,具体包括:基于该盘点机器人的设备标识信息,从区块链中获取与该盘点机器人对应的链上地址和公有密钥;基于获取到的链上地址和公有密钥,对设备身份激活请求中的链上地址和公有密钥进行验证;具体的,判断从区块链中获取的链上地址和公有密钥分别与设备身份激活请求中的链上地址和公有密钥是否一致,若一致,则说明设备身份激活请求携带的公有密钥是有效的;若验证通过,则利用设备身份激活请求中携带的公有密钥,对该设备身份激活请求中的签名后的身份绑定信息进行验签;具体的,如果验证通过,则说明该公有密钥是可信的、有效的;若身份绑定信息验签通过,则将盘点机器人的身份绑定信息、链上地址和公有密钥之间的对应关系上传至区块链;若身份绑定信息验签不通过,则确定设备身份激活请求来自于不可信的盘点机器人,停止响应接收到的设备身份激活请求。In addition, after the cloud server receives the device identity activation request sent by the inventory robot, it can first verify the credibility of the on-chain address and public key in the device identity activation request, and then use the verified public key pair The signed identity binding information is verified; based on this, it specifically includes: obtaining the on-chain address and public key corresponding to the inventory robot from the blockchain based on the device identification information of the inventory robot; based on the obtained The on-chain address and public key are used to verify the on-chain address and public key in the device identity activation request; specifically, the on-chain address and public key obtained from the blockchain are determined to be in the device identity activation request. Whether the on-chain address and the public key are the same, if they are the same, the public key carried in the device identity activation request is valid; if the verification is passed, the public key carried in the device identity activation request is used to identify the device The signed identity binding information in the activation request is verified; specifically, if the verification passes, it means that the public key is credible and valid; if the identity binding information passes the verification, the robot’s The correspondence between the identity binding information, the address on the chain, and the public key is uploaded to the blockchain; if the identity binding information fails to pass the verification, it is determined that the device identity activation request comes from an untrusted inventory robot and stops responding. The requested device identity activation request.
另外,若上述设备身份激活请求还携带有设备唯一性标识,则云端服务端验签通过后,将盘点机器人的唯一性标识、身份绑定信息与公有密钥之间的对应关系上传至区块链。In addition, if the above device identity activation request also carries a unique device identifier, the cloud server will upload the corresponding relationship between the unique identifier of the inventory robot, the identity binding information and the public key to the block after the cloud server passes the verification. chain.
具体的,针对盘点机器人向云端服务端请求设备身份激活的过程,当设备身份激活请求验证通过后,云端服务端将设备标识信息与公有密钥之间的对应关系上传至区块链,其中,该设备标识信息可以包括:设备唯一性标识、身份绑定信息、可信服务管理平台颁发的数字证书的序列号、或区块链返回的链上地址中至少一项;Specifically, for the process of the inventory robot requesting device identity activation from the cloud server, when the device identity activation request is verified, the cloud server uploads the correspondence between the device identification information and the public key to the blockchain, where, The device identification information may include: at least one of a unique device identification, identity binding information, a serial number of a digital certificate issued by a trusted service management platform, or an on-chain address returned by the blockchain;
对应的,针对云端服务端基于公有密钥对签名后的物资盘点数据进行签名验证的过程,由于盘点机器人在向云端服务端上传物资盘点数据时,可以携带自身的设备唯一性标识、身份绑定信息、可信服务管理平台颁发的数字证书的序列号、或区块链返回的链上地址中至少一项作为设备标识信息,因此,云端服务端在接收到盘点机器人所上传的签名后的物资盘点数据后,基于该设备标识信息,获取与该盘点机器人对应的公有密钥,再利用该公有密钥对签名后的物资盘点数据进行签名验证,其中,盘点机器人在向云端服务端上传物资盘点数据时所携带的设备标识信息的类型可以是基于盘点机器人向云端服务端请求设备身份激活所携带的设备标识类型所确定的。Correspondingly, for the process of signing and verifying the signed material inventory data on the cloud server based on the public key, because the inventory robot can carry its own unique device identification and identity binding when uploading the material inventory data to the cloud server At least one of the information, the serial number of the digital certificate issued by the trusted service management platform, or the on-chain address returned by the blockchain is used as the device identification information. Therefore, the cloud server receives the signed materials uploaded by the inventory robot After the inventory data, based on the device identification information, obtain the public key corresponding to the inventory robot, and then use the public key to perform signature verification on the signed material inventory data. The inventory robot uploads the material inventory to the cloud server The type of device identification information carried in the data may be determined based on the type of device identification carried by the inventory robot requesting the activation of the device identity from the cloud server.
本说明书一个或多个实施例中的基于区块链的物资盘点数据提供方法,盘点机器人获取目标仓库的物资盘点数据,其中,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;利用预存的私有密钥对物资盘点数据进行签名处理,得到签名后的物资盘点数据;将签名后的物资盘点数据上传至云端服务端,以使云端服务端对签名后的物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。 在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In the method for providing inventory data based on blockchain in one or more embodiments of this specification, an inventory robot obtains inventory data of a target warehouse, where the inventory data includes: the robot pose information and the material attribute information. Correspondence; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; upload the signed material inventory data to the cloud server so that the cloud server can count the signed material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain. Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
对应上述图2至图6描述的基于区块链的物资盘点数据提供方法,基于相同的技术构思,本说明书一个或多个实施例还提供了一种基于区块链的物资盘点数据提供方法,该方法应用于接入区块链的云端服务端,图7为本说明书一个或多个实施例提供的基于区块链的物资盘点数据提供方法的流程示意图,图8中的方法能够由云端服务端执行,如图7所示,该方法至少包括步骤S702~S706。Corresponding to the blockchain-based material inventory data providing method described in Figures 2 to 6, based on the same technical concept, one or more embodiments of this specification also provide a blockchain-based material inventory data providing method. The method is applied to the cloud server connected to the blockchain. Figure 7 is a schematic flow diagram of the method for providing inventory data based on the blockchain provided by one or more embodiments of this specification. The method in Figure 8 can be served by the cloud End execution, as shown in Figure 7, the method at least includes steps S702 to S706.
S702,接收盘点机器人上传的签名后的物资盘点数据,其中,该签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系。S702. Receive the signed material inventory data uploaded by the inventory robot, where the signed material inventory data is obtained by signing the material inventory data of the target warehouse using a pre-stored private key, and the material inventory data includes: a robot Correspondence between pose information and material attribute information.
S704,对签名后的物资盘点数据进行签名验证,得到相应的签名验证结果。S704: Perform signature verification on the signed material inventory data to obtain a corresponding signature verification result.
S706,若物资盘点数据的签名验证结果为签名验证通过,则将签名后的物资盘点数据上传至区块链。S706: If the signature verification result of the material inventory data is that the signature verification is passed, upload the signed material inventory data to the blockchain.
本说明书一个或多个实施例中,在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of this specification, before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
其中,上述S704,对签名后的物资盘点数据进行签名验证,得到相应的签名验证结果,具体包括:利用区块链中部署的智能合约对签名后的物资盘点数据进行签名验证,得到相应的签名验证结果。Among them, in the above S704, signature verification is performed on the signed material inventory data, and the corresponding signature verification result is obtained, which specifically includes: using the smart contract deployed in the blockchain to perform signature verification on the signed material inventory data to obtain the corresponding signature Validation results.
其中,上述利用区块链中部署的智能合约对物资盘点数据进行签名验证,得到相应的签名验证结果,具体包括:利用区块链中部署的智能合约获取与盘点机器人对应的公有密钥;以及,利用智能合约基于获取到的公有密钥对签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;其中,上述公有密钥是盘点机器人在设备身份激活阶段上传至云端服务端并存储至区块链中的。Among them, the above-mentioned use of the smart contract deployed in the blockchain to perform signature verification on the material inventory data to obtain the corresponding signature verification result includes: using the smart contract deployed in the blockchain to obtain the public key corresponding to the inventory robot; and , Use the smart contract to perform signature verification on the signed material inventory data based on the obtained public key, and obtain the corresponding signature verification result; where the above public key is uploaded to the cloud server and stored by the inventory robot during the device identity activation stage To the blockchain.
其中,在上述S702,接收盘点机器人上传的签名后的物资盘点数据之前,还包括:接收盘点机器人发送的设备身份激活请求,其中,该设备身份激活请求是盘点机器人的当前状态为初始化状态时,基于身份绑定信息和公有密钥所生成的,该身份绑定信息与盘点机器人所盘点的物资归属方相对应;响应于接收到的设备身份激活请求,并将该设备身份激活请求中携带的身份绑定信息与公有密钥之间的对应关系上传至区块链。Wherein, in the above S702, before receiving the signed material inventory data uploaded by the inventory robot, it further includes: receiving a device identity activation request sent by the inventory robot, where the device identity activation request is when the current state of the inventory robot is in the initialized state, Generated based on the identity binding information and the public key, and the identity binding information corresponds to the owner of the material counted by the inventory robot; in response to the received device identity activation request, and the device identity activation request carried The correspondence between the identity binding information and the public key is uploaded to the blockchain.
其中,在接收盘点机器人发送的设备身份激活请求之前,还包括:向盘点机器人对应的仓库管理终端下发为盘点机器人分配的设备身份图形码,以使盘点机器人利用摄像装置扫描仓库管理终端上显示的设备身份图形码、并解析得到身份绑定信息。Among them, before receiving the equipment identity activation request sent by the inventory robot, it also includes: issuing the equipment identity graphic code assigned to the inventory robot to the warehouse management terminal corresponding to the inventory robot, so that the inventory robot uses the camera to scan the warehouse management terminal for display The device identity graphic code of the device is analyzed and the identity binding information is obtained.
其中,上述设备身份激活请求是基于盘点机器人的身份绑定信息和数字证书所生成的;该数字证书是可信服务管理平台基于盘点机器人的公有密钥所生成的。Wherein, the device identity activation request is generated based on the identification binding information of the inventory robot and a digital certificate; the digital certificate is generated by the trusted service management platform based on the public key of the inventory robot.
其中,上述设备身份激活请求是基于签名后的身份绑定信息和数字证书所生成的;该签名后的身份绑定信息是盘点机器人利用预存的私有密钥对身份绑定信息进行签名处理得到的。Among them, the device identity activation request is generated based on the signed identity binding information and digital certificate; the signed identity binding information is obtained by the inventory robot using the pre-stored private key to sign the identity binding information .
其中,上述响应于接收到的设备身份激活请求,并将该设备身份激活请求中携带的身份绑定信息与公有密钥之间的对应关系上传至区块链,具体包括:响应于接收到的设备身份激活请求,并从可信服务管理平台获取盘点机器人对应的公有密钥;基于获取到的公有密钥对签名后的身份绑定信息进行验签;若身份绑定信息验签通过,则将身份绑定信息与数字证书之间的对应关系上传至区块链。Wherein, the foregoing response to the received device identity activation request, and uploading the correspondence between the identity binding information carried in the device identity activation request and the public key to the blockchain, specifically includes: responding to the received Device identity activation request, and obtain the public key corresponding to the inventory robot from the trusted service management platform; verify the signed identity binding information based on the obtained public key; if the identity binding information passes the verification, then Upload the correspondence between the identity binding information and the digital certificate to the blockchain.
其中,上述设备身份激活请求是基于盘点机器人的身份绑定信息、链上地址和公 有密钥所生成的;该链上地址是云端服务端返回的区块链中用于存储所述公有密钥的存储地址。Wherein, the above device identity activation request is generated based on the identity binding information of the inventory robot, the on-chain address, and the public key; the on-chain address is used to store the public key in the blockchain returned by the cloud server The storage address.
其中,上述设备身份激活请求是基于签名后的身份绑定信息、链上地址和公有密钥所生成的;该签名后的身份绑定信息是所述盘点机器人利用预存的私有密钥对身份绑定信息进行签名处理得到的。Wherein, the device identity activation request is generated based on the signed identity binding information, the on-chain address, and the public key; the signed identity binding information is that the inventory robot uses the pre-stored private key to bind the identity The specified information is obtained by signature processing.
其中,所述响应于接收到的设备身份激活请求,并将该设备身份激活请求中携带的身份绑定信息与公有密钥之间的对应关系上传至区块链,具体包括:响应于接收到的设备身份激活请求,并从区块链中获取盘点机器人对应的公有密钥;基于获取到的公有密钥对签名后的身份绑定信息进行验签;若身份绑定信息验签通过,则将盘点机器人的身份绑定信息、链上地址和公有密钥之间的对应关系上传至区块链。Wherein, said responding to the received device identity activation request, and uploading the correspondence between the identity binding information carried in the device identity activation request and the public key to the blockchain, specifically includes: responding to the received Device identity activation request, and obtain the public key corresponding to the inventory robot from the blockchain; verify the signed identity binding information based on the obtained public key; if the identity binding information passes the verification, then Upload the corresponding relationship between the identity binding information of the inventory robot, the address on the chain, and the public key to the blockchain.
本说明书一个或多个实施例中的基于区块链的物资盘点数据提供方法,接收盘点机器人上传的签名后的物资盘点数据,其中,该签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;对签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;若物资盘点数据的签名验证结果为签名验证通过,则将签名后的物资盘点数据上传至区块链。在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。The method for providing material inventory data based on blockchain in one or more embodiments of this specification receives signed material inventory data uploaded by an inventory robot, wherein the signed material inventory data uses a pre-stored private key pair The material inventory data of the target warehouse is obtained by signature processing. The material inventory data includes: the correspondence between the robot pose information and the material attribute information; signature verification is performed on the signed material inventory data, and the corresponding signature verification result is obtained; If the signature verification result of the material inventory data is that the signature verification is passed, upload the signed material inventory data to the blockchain. Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
需要说明的是,本说明书中该实施例与本说明书中上一实施例基于同一发明构思,因此该实施例的具体实施可以参见前述基于区块链的物资盘点数据提供方法的实施,重复之处不再赘述。It should be noted that this embodiment in this specification is based on the same inventive concept as the previous embodiment in this specification. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned blockchain-based material inventory data provision method. No longer.
对应上述图2至图6描述的基于区块链的物资盘点数据提供方法,基于相同的技术构思,本说明书一个或多个实施例还提供了一种基于区块链的物资盘点数据提供装置,该装置设置于盘点机器人侧,图8为本说明书一个或多个实施例提供的基于区块链的物资盘点数据提供装置的模块组成示意图,该装置用于执行图2至图6描述的基于区块链的物资盘点数据提供方法,如图8所示,该装置包括:物资数据获取模块802,其获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;物资数据签名模块804,其利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据;物资数据发送模块806,其将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。Corresponding to the blockchain-based material inventory data providing method described in Figures 2 to 6, based on the same technical concept, one or more embodiments of this specification also provide a blockchain-based material inventory data providing device, The device is set on the side of the inventory robot. FIG. 8 is a schematic diagram of the module composition of the block chain-based material inventory data providing device provided by one or more embodiments of this specification. The device is used to perform the area-based The method for providing inventory data of the block chain, as shown in FIG. 8, the device includes: a material data acquisition module 802, which obtains the material inventory data of the target warehouse, wherein the material inventory data includes: robot pose information and material attributes Correspondence between information; material data signature module 804, which uses a pre-stored private key to sign the material inventory data to obtain signed material inventory data; material data sending module 806, which signs the material inventory data Upload the inventory data of the material to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
本说明书一个或多个实施例中,在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of this specification, before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
可选地,上述物资数据发送模块806,用于将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端利用区块链中部署的智能合约对所述物资盘点数据进行签名验证、并将签名验证通过的物资盘点数据上传至区块链。Optionally, the aforementioned material data sending module 806 is configured to upload the signed material inventory data to the cloud server, so that the cloud server uses the smart contract deployed in the blockchain to check the material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain.
可选地,上述装置还包括:设备身份激活绑定模块,用于若所述盘点机器人的当前状态为初始化状态,则获取所述盘点机器人的公有密钥;以及,获取所述盘点机器人的身份绑定信息,其中,所述身份绑定信息与所述盘点机器人所盘点的物资归属方相对应;基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求;将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链。Optionally, the above-mentioned apparatus further includes: a device identity activation binding module, configured to obtain the public key of the inventory robot if the current state of the inventory robot is an initialization state; and obtain the identity of the inventory robot Binding information, wherein the identity binding information corresponds to the owner of the materials counted by the inventory robot; based on the identity binding information and the public key, a device identity activation request of the inventory robot is generated Send the device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and uploads the correspondence between the identity binding information and the public key to Blockchain.
可选地,上述设备身份激活绑定模块,用于利用摄像装置扫描仓库管理终端上显 示的设备身份图形码,其中,所述设备身份图形码是云端服务端所分配的;对所述设备身份图形码进行解析,得到所述盘点机器人的身份绑定信息。Optionally, the above-mentioned device identity activation binding module is used to scan the device identity graphic code displayed on the warehouse management terminal with a camera device, wherein the device identity graphic code is allocated by the cloud server; for the device identity The graphic code is analyzed to obtain the identity binding information of the inventory robot.
可选地,上述设备身份激活绑定模块,用于将所述公有密钥发送至可信服务管理平台,以使所述可信服务管理平台生成包含所述公有密钥的数字证书;接收所述可信服务管理平台发送的所述数字证书;基于所述身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求。Optionally, the aforementioned device identity activation binding module is configured to send the public key to a trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key; The digital certificate sent by the trusted service management platform; based on the identity binding information and the digital certificate, a device identity activation request of the inventory robot is generated.
可选地,上述设备身份激活绑定模块,用于利用预存的私有密钥对所述身份绑定信息进行签名处理,得到签名后的身份绑定信息;基于所述签名后的身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求。Optionally, the aforementioned device identity activation binding module is configured to use a pre-stored private key to sign the identity binding information to obtain signed identity binding information; based on the signed identity binding information And the digital certificate to generate a device identity activation request of the inventory robot.
可选地,上述设备身份激活绑定模块,用于将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求、并基于从所述可信服务管理平台获取的公有密钥对所述签名后的身份绑定信息进行验签、且验签通过后将所述身份绑定信息与所述数字证书之间的对应关系上传至区块链。Optionally, the aforementioned device identity activation binding module is configured to send the device identity activation request to a cloud server, so that the cloud server responds to the device identity activation request and is based on the trusted The public key obtained by the service management platform verifies the signed identity binding information, and after the verification is passed, the correspondence between the identity binding information and the digital certificate is uploaded to the blockchain.
可选地,上述设备身份激活绑定模块,用于将所述公有密钥发送至云端服务端,以使所述云端服务端将所述公有密钥上传至区块链,并返回所述区块链中用于存储所述公有密钥的链上地址;接收所述云端服务端返回的所述链上地址;基于所述身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求。Optionally, the aforementioned device identity activation binding module is configured to send the public key to the cloud server, so that the cloud server uploads the public key to the blockchain and returns to the zone The on-chain address used to store the public key in the block chain; receive the on-chain address returned by the cloud server; based on the identity binding information, the on-chain address, and the public key, A device identity activation request of the inventory robot is generated.
可选地,上述设备身份激活绑定模块,用于利用预存的私有密钥对所述身份绑定信息进行签名处理,得到签名后的身份绑定信息;基于所述签名后的身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求。Optionally, the aforementioned device identity activation binding module is configured to use a pre-stored private key to sign the identity binding information to obtain signed identity binding information; based on the signed identity binding information , The on-chain address and the public key generate a device identity activation request of the inventory robot.
可选地,上述设备身份激活绑定模块,用于将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求,并基于从所述区块链中获取的公有密钥对所述签名后的身份绑定信息进行验签,且验签通过后将所述身份绑定信息、所述链上地址与所述公有密钥之间的对应关系上传至区块链。Optionally, the above-mentioned device identity activation binding module is configured to send the device identity activation request to a cloud server, so that the cloud server responds to the device identity activation request, and based on the data from the block The public key obtained in the chain verifies the signed identity binding information, and after the verification is passed, the correspondence between the identity binding information, the address on the chain, and the public key Upload to the blockchain.
可选地,上述物资数据获取模块802,用于利用射频装置采集物资标签信息,并根据所述物资标签信息和当前位姿信息,生成目标仓库的物资盘点数据;和/或,利用摄像装置采集物资图像信息,并根据所述物资图像信息和当前位姿信息,生成目标仓库的物资盘点数据。Optionally, the above-mentioned material data acquisition module 802 is configured to collect material tag information using a radio frequency device, and generate material inventory data of the target warehouse based on the material tag information and current pose information; and/or, use a camera device to collect The material image information, and according to the material image information and the current pose information, the material inventory data of the target warehouse is generated.
本说明书一个或多个实施例中的基于区块链的物资盘点数据提供装置,盘点机器人获取目标仓库的物资盘点数据,其中,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;利用预存的私有密钥对物资盘点数据进行签名处理,得到签名后的物资盘点数据;将签名后的物资盘点数据上传至云端服务端,以使云端服务端对签名后的物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of this specification, in the blockchain-based material inventory data providing device, the inventory robot obtains the material inventory data of the target warehouse, where the material inventory data includes: the robot pose information and the material attribute information. Correspondence; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; upload the signed material inventory data to the cloud server so that the cloud server can count the signed material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain. Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
需要说明的是,本说明书中关于基于区块链的物资盘点数据提供装置的实施例与本说明书中关于基于区块链的物资盘点数据提供方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的物资盘点数据提供方法的实施,重复之处不再赘述。It should be noted that the embodiment of the device for providing inventory data based on the blockchain in this specification and the embodiment of the method for providing inventory data based on the blockchain in this specification are based on the same inventive concept, so the embodiment of For specific implementation, please refer to the implementation of the aforementioned corresponding blockchain-based material inventory data providing method, and the repetition will not be repeated.
对应上述图2至图6描述的基于区块链的物资盘点数据提供方法,基于相同的技术构思,本说明书一个或多个实施例还提供了一种基于区块链的物资盘点数据提供装置,该装置设置于云端服务端,图9为本说明书一个或多个实施例提供的基于区块链的物资盘点数据提供装置的模块组成示意图,该装置用于执行图7描述的基于区块链的物资盘点数据提供方法,如图9所示,该装置包括:物资数据接收模块902,其接收盘点机器 人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;物资数据验签模块904,其对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;物资数据存储模块906,其若所述签名验证结果为签名验证通过,则将所述签名后的物资盘点数据上传至区块链。Corresponding to the blockchain-based material inventory data providing method described in Figures 2 to 6, based on the same technical concept, one or more embodiments of this specification also provide a blockchain-based material inventory data providing device, The device is set on the cloud server. FIG. 9 is a schematic diagram of the module composition of the blockchain-based material inventory data providing device provided by one or more embodiments of this specification. The device is used to execute the blockchain-based device described in FIG. The method for providing material inventory data, as shown in FIG. 9, the device includes: material data receiving module 902, which receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data uses pre-stored private inventory data. The key is obtained by signing the material inventory data of the target warehouse. The material inventory data includes: the correspondence between the robot pose information and the material attribute information; the material data verification module 904, which signs the data The material inventory data is subjected to signature verification to obtain the corresponding signature verification result; the material data storage module 906, if the signature verification result is that the signature verification is passed, upload the signed material inventory data to the blockchain.
本说明书一个或多个实施例中,在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of this specification, before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
可选地,上述物资数据验签模块904,用于利用所述区块链中部署的智能合约对所述物资盘点数据进行签名验证,得到相应的签名验证结果。Optionally, the aforementioned material data verification module 904 is configured to use the smart contract deployed in the blockchain to perform signature verification on the material inventory data to obtain a corresponding signature verification result.
可选地,上述装置还包括:设备身份绑定响应模块,用于接收盘点机器人发送的设备身份激活请求,其中,所述设备身份激活请求是所述盘点机器人的当前状态为初始化状态时,基于身份绑定信息和公有密钥所生成的,所述身份绑定信息与所述盘点机器人所盘点的物资归属方相对应;响应于所述设备身份激活请求,并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链。Optionally, the above-mentioned apparatus further includes: a device identity binding response module, configured to receive a device identity activation request sent by an inventory robot, wherein the device identity activation request is based on when the current state of the inventory robot is an initialized state Generated by the identity binding information and the public key, the identity binding information corresponds to the owner of the materials counted by the inventory robot; responding to the device identity activation request, and combining the identity binding information with The corresponding relationship between the public keys is uploaded to the blockchain.
可选地,上述装置还包括:设备身份信息下发模块,用于向盘点机器人对应的仓库管理终端下发为所述盘点机器人分配的设备身份图形码,以使所述盘点机器人利用摄像装置扫描所述仓库管理终端上显示的设备身份图形码、并解析得到身份绑定信息。Optionally, the above device further includes: an equipment identity information issuing module, configured to issue to the warehouse management terminal corresponding to the inventory robot, the equipment identity graphic code assigned to the inventory robot, so that the inventory robot uses the camera to scan The device identity graphic code displayed on the warehouse management terminal is parsed to obtain identity binding information.
可选地,所述设备身份激活请求是基于所述盘点机器人的身份绑定信息和数字证书所生成的;所述数字证书是可信服务管理平台基于所述公有密钥所生成的。Optionally, the device identity activation request is generated based on the identity binding information of the inventory robot and a digital certificate; the digital certificate is generated by a trusted service management platform based on the public key.
可选地,所述设备身份激活请求是基于签名后的身份绑定信息和所述数字证书所生成的;所述签名后的身份绑定信息是所述盘点机器人利用预存的私有密钥对身份绑定信息进行签名处理得到的。Optionally, the device identity activation request is generated based on the signed identity binding information and the digital certificate; the signed identity binding information is the identity of the inventory robot using a pre-stored private key The binding information is obtained by signing.
可选地,上述设备身份绑定响应模块,用于响应于所述设备身份激活请求,并从所述可信服务管理平台获取所述盘点机器人对应的公有密钥;基于获取到的所述公有密钥对所述签名后的身份绑定信息进行验签;若所述身份绑定信息验签通过,则将所述身份绑定信息与所述数字证书之间的对应关系上传至区块链。Optionally, the aforementioned device identity binding response module is configured to respond to the device identity activation request and obtain the public key corresponding to the inventory robot from the trusted service management platform; based on the obtained public key The key verifies the signed identity binding information; if the identity binding information passes the verification, upload the correspondence between the identity binding information and the digital certificate to the blockchain .
可选地,所述设备身份激活请求是基于所述盘点机器人的身份绑定信息、链上地址和公有密钥所生成的;所述链上地址是云端服务端返回的所述区块链中用于存储所述公有密钥的存储地址。Optionally, the device identity activation request is generated based on the identity binding information, on-chain address, and public key of the inventory robot; the on-chain address is in the blockchain returned by the cloud server The storage address used to store the public key.
可选地,所述设备身份激活请求是基于签名后的身份绑定信息、链上地址和公有密钥所生成的;所述签名后的身份绑定信息是所述盘点机器人利用预存的私有密钥对身份绑定信息进行签名处理得到的。Optionally, the device identity activation request is generated based on signed identity binding information, an on-chain address, and a public key; the signed identity binding information is a pre-stored private key used by the inventory robot The key is obtained by signing the identity binding information.
可选地,上述设备身份绑定响应模块,用于响应于所述设备身份激活请求,并从所述区块链中获取所述盘点机器人对应的公有密钥;基于获取到的所述公有密钥对所述签名后的身份绑定信息进行验签;若所述身份绑定信息验签通过,则将所述身份绑定信息、所述链上地址与所述公有密钥之间的对应关系上传至区块链。Optionally, the aforementioned device identity binding response module is configured to respond to the device identity activation request and obtain the public key corresponding to the inventory robot from the blockchain; based on the obtained public secret The key verifies the signed identity binding information; if the identity binding information passes the verification, the correspondence between the identity binding information, the address on the chain, and the public key The relationship is uploaded to the blockchain.
本说明书一个或多个实施例中的基于区块链的物资盘点数据提供装置,接收盘点机器人上传的签名后的物资盘点数据,其中,该签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;对签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;若物资盘点数据的签名验证结果为签名验证通过,则将签名后的物资盘点数据上传至区块链。在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证 并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。The block chain-based material inventory data providing device in one or more embodiments of this specification receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data uses a pre-stored private key pair The material inventory data of the target warehouse is obtained by signature processing. The material inventory data includes: the correspondence between the robot pose information and the material attribute information; signature verification is performed on the signed material inventory data, and the corresponding signature verification result is obtained; If the signature verification result of the material inventory data is that the signature verification is passed, upload the signed material inventory data to the blockchain. Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
需要说明的是,本说明书中关于基于区块链的物资盘点数据提供装置的实施例与本说明书中关于基于区块链的物资盘点数据提供方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的物资盘点数据提供方法的实施,重复之处不再赘述。It should be noted that the embodiment of the device for providing inventory data based on the blockchain in this specification and the embodiment of the method for providing inventory data based on the blockchain in this specification are based on the same inventive concept, so the embodiment of For specific implementation, please refer to the implementation of the aforementioned corresponding blockchain-based material inventory data providing method, and the repetition will not be repeated.
对应上述图2至图6描述的基于区块链的物资盘点数据提供方法,基于相同的技术构思,本说明书一个或多个实施例还提供了一种基于区块链的物资盘点数据提供系统,图10为本说明书一个或多个实施例提供的基于区块链的物资盘点数据提供系统的结构组成示意图,该系统用于执行图2至图6描述的基于区块链的物资盘点数据提供方法,如图10所示,该系统包括:盘点机器人、以及接入区块链的云端服务端。Corresponding to the blockchain-based material inventory data providing method described in Figures 2 to 6, based on the same technical concept, one or more embodiments of this specification also provide a blockchain-based material inventory data providing system. Figure 10 is a schematic diagram of the structural composition of a blockchain-based material inventory data providing system provided by one or more embodiments of this specification. The system is used to implement the blockchain-based material inventory data providing method described in Figures 2 to 6 , As shown in Figure 10, the system includes: an inventory robot and a cloud server connected to the blockchain.
上述盘点机器人,获取目标仓库的物资盘点数据,其中,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;利用预存的私有密钥对物资盘点数据进行签名处理,得到签名后的物资盘点数据;将签名后的物资盘点数据上传至云端服务端。The above-mentioned inventory robot obtains the inventory data of the target warehouse, where the inventory data includes: the correspondence between the robot pose information and the material attribute information; use the pre-stored private key to sign the inventory data to obtain the signature After the material inventory data; upload the signed material inventory data to the cloud server.
上述云端服务端,接收盘点机器人上传的签名后的物资盘点数据;并对签名后的物资盘点数据进行签名验证;以及将签名验证通过的物资盘点数据上传至区块链。The aforementioned cloud server receives the signed material inventory data uploaded by the inventory robot; performs signature verification on the signed material inventory data; and uploads the material inventory data that has passed the signature verification to the blockchain.
本说明书一个或多个实施例中的基于区块链的物资盘点数据提供装置,盘点机器人获取目标仓库的物资盘点数据,其中,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;利用预存的私有密钥对物资盘点数据进行签名处理,得到签名后的物资盘点数据;将签名后的物资盘点数据上传至云端服务端,以使云端服务端对签名后的物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of this specification, in the blockchain-based material inventory data providing device, the inventory robot obtains the material inventory data of the target warehouse, where the material inventory data includes: the robot pose information and the material attribute information. Correspondence; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; upload the signed material inventory data to the cloud server so that the cloud server can count the signed material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain. Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
需要说明的是,本说明书中关于基于区块链的物资盘点数据提供系统的实施例与本说明书中关于基于区块链的物资盘点数据提供方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的物资盘点数据提供方法的实施,重复之处不再赘述。It should be noted that the embodiment of the blockchain-based material inventory data providing system in this specification and the embodiment of the blockchain-based material inventory data providing method in this specification are based on the same inventive concept, so the embodiment of For specific implementation, please refer to the implementation of the aforementioned corresponding blockchain-based material inventory data providing method, and the repetition will not be repeated.
进一步地,对应上述图2至图6所示的方法,基于相同的技术构思,本说明书一个或多个实施例还提供了一种基于区块链的物资盘点数据提供设备,该设备用于执行上述的基于区块链的物资盘点数据提供方法,如图11所示。Further, corresponding to the methods shown in Figures 2 to 6, based on the same technical concept, one or more embodiments of this specification also provide a blockchain-based material inventory data providing device, which is used to execute The above-mentioned blockchain-based material inventory data provision method is shown in Figure 11.
基于区块链的物资盘点数据提供设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器1101和存储器1102,存储器1102中可以存储有一个或一个以上存储应用程序或数据。其中,存储器1102可以是短暂存储或持久存储。存储在存储器1102的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括对基于区块链的物资盘点数据提供设备中的一系列计算机可执行指令。更进一步地,处理器1101可以设置为与存储器1102通信,在基于区块链的物资盘点数据提供设备上执行存储器1102中的一系列计算机可执行指令。基于区块链的物资盘点数据提供设备还可以包括一个或一个以上电源1103,一个或一个以上有线或无线网络接口1104,一个或一个以上输入输出接口1105,一个或一个以上键盘1106等。Blockchain-based material inventory data providing equipment may have relatively large differences due to different configurations or performances, and may include one or more processors 1101 and memory 1102, and the memory 1102 may store one or more storage applications Or data. Among them, the memory 1102 may be short-term storage or persistent storage. The application program stored in the memory 1102 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in a blockchain-based material inventory data providing device. Furthermore, the processor 1101 may be configured to communicate with the memory 1102, and execute a series of computer-executable instructions in the memory 1102 on a blockchain-based material inventory data providing device. The blockchain-based material inventory data providing equipment may also include one or more power supplies 1103, one or more wired or wireless network interfaces 1104, one or more input and output interfaces 1105, one or more keyboards 1106, and so on.
在一个具体的实施例中,基于区块链的物资盘点数据提供设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对基于区块链的物资盘点数据提供设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:获取目标仓库的物 资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据;将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。In a specific embodiment, a blockchain-based material inventory data providing device includes a memory, and one or more programs, one or more programs are stored in the memory, and one or more programs may include one Or more than one module, and each module may include a series of computer-executable instructions in a blockchain-based material inventory data providing device, and is configured to be executed by one or more processors to execute the one or more programs including It is used to perform the following computer-executable instructions: Obtain material inventory data of a target warehouse, where the material inventory data includes: the correspondence between robot pose information and material attribute information; The inventory data is signed to obtain the signed material inventory data; upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and passes the signature verification Upload the inventory data of the materials to the blockchain.
本说明书一个或多个实施例中,在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of this specification, before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
可选地,计算机可执行指令在被执行时,所述将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链,包括:将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端利用区块链中部署的智能合约对所述物资盘点数据进行签名验证、并将签名验证通过的物资盘点数据上传至区块链。Optionally, when the computer-executable instructions are executed, the signed material inventory data is uploaded to the cloud server, so that the cloud server can perform signature verification on the material inventory data and verify the signature Uploading the passed material inventory data to the blockchain includes: uploading the signed material inventory data to the cloud server, so that the cloud server uses the smart contract deployed in the blockchain to check the material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain.
可选地,计算机可执行指令在被执行时,在获取目标仓库的物资盘点数据之前,还包括:若所述盘点机器人的当前状态为初始化状态,则获取所述盘点机器人的公有密钥;以及,获取所述盘点机器人的身份绑定信息,其中,所述身份绑定信息与所述盘点机器人所盘点的物资归属方相对应;基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求;将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链。Optionally, when the computer-executable instructions are executed, before acquiring the inventory data of the target warehouse, the method further includes: if the current state of the inventory robot is an initialization state, acquiring the public key of the inventory robot; and , Obtain the identity binding information of the inventory robot, wherein the identity binding information corresponds to the owner of the materials inventory by the inventory robot; and based on the identity binding information and the public key, the identity binding information is generated The device identity activation request of the inventory robot; sending the device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and combines the identity binding information with the public secret The correspondence between the keys is uploaded to the blockchain.
可选地,计算机可执行指令在被执行时,所述获取所述盘点机器人的身份绑定信息,包括:利用摄像装置扫描仓库管理终端上显示的设备身份图形码,其中,所述设备身份图形码是云端服务端所分配的;对所述设备身份图形码进行解析,得到所述盘点机器人的身份绑定信息。Optionally, when the computer-executable instructions are executed, the acquiring the identity binding information of the inventory robot includes: scanning the device identity graphic code displayed on the warehouse management terminal with a camera device, wherein the device identity graphic The code is allocated by the cloud server; the device identity graphic code is analyzed to obtain the identity binding information of the inventory robot.
可选地,计算机可执行指令在被执行时,所述基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求,包括:将所述公有密钥发送至可信服务管理平台,以使所述可信服务管理平台生成包含所述公有密钥的数字证书;接收所述可信服务管理平台发送的所述数字证书;基于所述身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求。Optionally, when the computer-executable instructions are executed, the generating the device identity activation request of the inventory robot based on the identity binding information and the public key includes: sending the public key to A trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key; receives the digital certificate sent by the trusted service management platform; based on the identity binding information and the The digital certificate generates the device identity activation request of the inventory robot.
可选地,计算机可执行指令在被执行时,所述基于所述身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求,包括:利用预存的私有密钥对所述身份绑定信息进行签名处理,得到签名后的身份绑定信息;基于所述签名后的身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求。Optionally, when the computer-executable instructions are executed, the generating the device identity activation request of the inventory robot based on the identity binding information and the digital certificate includes: using a pre-stored private key to pair the The identity binding information is signed to obtain the signed identity binding information; based on the signed identity binding information and the digital certificate, a device identity activation request of the inventory robot is generated.
可选地,计算机可执行指令在被执行时,所述将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求、并基于从所述可信服务管理平台获取的公有密钥对所述签名后的身份绑定信息进行验签、且验签通过后将所述身份绑定信息与所述数字证书之间的对应关系上传至区块链。Optionally, when the computer-executable instructions are executed, the device identity activation request is sent to a cloud server, so that the cloud server responds to the device identity activation request and binds the identity Uploading the correspondence between the information and the public key to the blockchain includes: sending the device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and The signed identity binding information is verified based on the public key obtained from the trusted service management platform, and after the verification is passed, the corresponding relationship between the identity binding information and the digital certificate Upload to the blockchain.
可选地,计算机可执行指令在被执行时,所述基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求,包括:将所述公有密钥发送至云端服务端,以使所述云端服务端将所述公有密钥上传至区块链,并返回所述区块链中用于存储所述公有密钥的链上地址;接收所述云端服务端返回的所述链上地址;基于所述身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求。Optionally, when the computer-executable instructions are executed, the generating the device identity activation request of the inventory robot based on the identity binding information and the public key includes: sending the public key to The cloud server, so that the cloud server uploads the public key to the blockchain, and returns the on-chain address used to store the public key in the blockchain; receiving the cloud server The returned on-chain address; based on the identity binding information, the on-chain address, and the public key, a device identity activation request of the inventory robot is generated.
可选地,计算机可执行指令在被执行时,所述基于所述身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求,包括:利用预存的私 有密钥对所述身份绑定信息进行签名处理,得到签名后的身份绑定信息;基于所述签名后的身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求。Optionally, when the computer-executable instructions are executed, the generating the device identity activation request of the inventory robot based on the identity binding information, the on-chain address, and the public key includes: using pre-stored The private key for signing the identity binding information to obtain the signed identity binding information; based on the signed identity binding information, the on-chain address, and the public key to generate the Count the robot’s device identity activation request.
可选地,计算机可执行指令在被执行时,所述将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求,并基于从所述区块链中获取的公有密钥对所述签名后的身份绑定信息进行验签,且验签通过后将所述身份绑定信息、所述链上地址与所述公有密钥之间的对应关系上传至区块链。Optionally, when the computer-executable instructions are executed, the device identity activation request is sent to a cloud server, so that the cloud server responds to the device identity activation request and binds the identity Uploading the correspondence between the information and the public key to the blockchain includes: sending the device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request, and The signed identity binding information is verified based on the public key obtained from the blockchain, and after the verification is passed, the identity binding information, the on-chain address and the public secret are verified. The correspondence between the keys is uploaded to the blockchain.
可选地,计算机可执行指令在被执行时,所述获取目标仓库的物资盘点数据,包括:利用射频装置采集物资标签信息,并根据所述物资标签信息和当前位姿信息,生成目标仓库的物资盘点数据;和/或,利用摄像装置采集物资图像信息,并根据所述物资图像信息和当前位姿信息,生成目标仓库的物资盘点数据。Optionally, when the computer-executable instructions are executed, the acquiring material inventory data of the target warehouse includes: collecting material label information using a radio frequency device, and generating information about the target warehouse according to the material label information and current pose information. Material inventory data; and/or, use a camera to collect material image information, and generate material inventory data of the target warehouse based on the material image information and current pose information.
本说明书一个或多个实施例中的基于区块链的物资盘点数据提供设备,盘点机器人获取目标仓库的物资盘点数据,其中,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;利用预存的私有密钥对物资盘点数据进行签名处理,得到签名后的物资盘点数据;将签名后的物资盘点数据上传至云端服务端,以使云端服务端对签名后的物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of the present specification, in the blockchain-based material inventory data providing device, the inventory robot obtains the material inventory data of the target warehouse, where the material inventory data includes: the difference between the robot pose information and the material attribute information Correspondence; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; upload the signed material inventory data to the cloud server so that the cloud server can count the signed material inventory data Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain. Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
在另一个具体的实施例中,基于区块链的物资盘点数据提供设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对基于区块链的物资盘点数据提供设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:接收盘点机器人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;若所述签名验证结果为签名验证通过,则将所述签名后的物资盘点数据上传至区块链。In another specific embodiment, a blockchain-based material inventory data providing device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include One or more modules, and each module may include a series of computer-executable instructions in a blockchain-based material inventory data providing device, and is configured to execute the one or more programs by one or more processors Contains the following computer executable instructions: receiving the signed material inventory data uploaded by the inventory robot, where the signed material inventory data is obtained by signing the material inventory data of the target warehouse using a pre-stored private key The material inventory data includes: the correspondence between robot pose information and material attribute information; signature verification is performed on the signed material inventory data to obtain a corresponding signature verification result; if the signature verification result is If the signature verification is passed, the material inventory data after the signature is uploaded to the blockchain.
本说明书一个或多个实施例中,在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of this specification, before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
可选地,计算机可执行指令在被执行时,所述对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果,包括:利用所述区块链中部署的智能合约对所述物资盘点数据进行签名验证,得到相应的签名验证结果。Optionally, when the computer-executable instructions are executed, the signature verification of the signed material inventory data to obtain the corresponding signature verification result includes: using the smart contract deployed in the blockchain to verify the signature. The material inventory data is subjected to signature verification, and the corresponding signature verification result is obtained.
可选地,计算机可执行指令在被执行时,在接收盘点机器人上传的签名后的物资盘点数据之前,还包括:接收盘点机器人发送的设备身份激活请求,其中,所述设备身份激活请求是所述盘点机器人的当前状态为初始化状态时,基于身份绑定信息和公有密钥所生成的,所述身份绑定信息与所述盘点机器人所盘点的物资归属方相对应;响应于所述设备身份激活请求,并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链。Optionally, when the computer executable instruction is executed, before receiving the signed material inventory data uploaded by the inventory robot, it further includes: receiving a device identity activation request sent by the inventory robot, wherein the device identity activation request is When the current state of the inventory robot is the initialization state, it is generated based on the identity binding information and the public key, and the identity binding information corresponds to the owner of the materials inventory by the inventory robot; in response to the device identity Activate the request, and upload the correspondence between the identity binding information and the public key to the blockchain.
可选地,计算机可执行指令在被执行时,在接收盘点机器人发送的设备身份激活请求之前,还包括:向盘点机器人对应的仓库管理终端下发为所述盘点机器人分配的设 备身份图形码,以使所述盘点机器人利用摄像装置扫描所述仓库管理终端上显示的设备身份图形码、并解析得到身份绑定信息。Optionally, when the computer-executable instructions are executed, before receiving the device identity activation request sent by the inventory robot, the method further includes: issuing the device identity graphic code assigned to the inventory robot to the warehouse management terminal corresponding to the inventory robot; In order to enable the inventory robot to scan the device identity graphic code displayed on the warehouse management terminal by using a camera device, and analyze to obtain identity binding information.
可选地,计算机可执行指令在被执行时,所述设备身份激活请求是基于所述盘点机器人的身份绑定信息和数字证书所生成的;所述数字证书是可信服务管理平台基于所述公有密钥所生成的。Optionally, when the computer-executable instructions are executed, the device identity activation request is generated based on the identity binding information of the inventory robot and a digital certificate; the digital certificate is a trusted service management platform based on the Generated by the public key.
可选地,计算机可执行指令在被执行时,所述设备身份激活请求是基于签名后的身份绑定信息和所述数字证书所生成的;所述签名后的身份绑定信息是所述盘点机器人利用预存的私有密钥对身份绑定信息进行签名处理得到的。Optionally, when the computer-executable instructions are executed, the device identity activation request is generated based on the signed identity binding information and the digital certificate; the signed identity binding information is the inventory The robot uses the pre-stored private key to sign the identity binding information.
可选地,计算机可执行指令在被执行时,所述响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:响应于所述设备身份激活请求,并从所述可信服务管理平台获取所述盘点机器人对应的公有密钥;基于获取到的所述公有密钥对所述签名后的身份绑定信息进行验签;若所述身份绑定信息验签通过,则将所述身份绑定信息与所述数字证书之间的对应关系上传至区块链。Optionally, when the computer-executable instructions are executed, the responding to the device identity activation request and uploading the correspondence between the identity binding information and the public key to the blockchain includes: Respond to the device identity activation request and obtain the public key corresponding to the inventory robot from the trusted service management platform; verify the signed identity binding information based on the obtained public key If the identity binding information passes the verification, upload the correspondence between the identity binding information and the digital certificate to the blockchain.
可选地,计算机可执行指令在被执行时,所述设备身份激活请求是基于所述盘点机器人的身份绑定信息、链上地址和公有密钥所生成的;所述链上地址是云端服务端返回的所述区块链中用于存储所述公有密钥的存储地址。Optionally, when the computer-executable instructions are executed, the device identity activation request is generated based on the identity binding information, the on-chain address, and the public key of the inventory robot; the on-chain address is a cloud service The storage address used to store the public key in the blockchain returned by the end.
可选地,计算机可执行指令在被执行时,所述设备身份激活请求是基于签名后的身份绑定信息、链上地址和公有密钥所生成的;所述签名后的身份绑定信息是所述盘点机器人利用预存的私有密钥对身份绑定信息进行签名处理得到的。Optionally, when the computer-executable instructions are executed, the device identity activation request is generated based on the signed identity binding information, the on-chain address, and the public key; the signed identity binding information is The inventory robot uses a pre-stored private key to sign the identity binding information.
可选地,计算机可执行指令在被执行时,所述响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:响应于所述设备身份激活请求,并从所述区块链中获取所述盘点机器人对应的公有密钥;基于获取到的所述公有密钥对所述签名后的身份绑定信息进行验签;若所述身份绑定信息验签通过,则将所述身份绑定信息、所述链上地址与所述公有密钥之间的对应关系上传至区块链。Optionally, when the computer-executable instructions are executed, the responding to the device identity activation request and uploading the correspondence between the identity binding information and the public key to the blockchain includes: Respond to the device identity activation request, and obtain the public key corresponding to the inventory robot from the blockchain; verify the signed identity binding information based on the obtained public key If the identity binding information passes the verification, upload the correspondence between the identity binding information, the address on the chain, and the public key to the blockchain.
本说明书一个或多个实施例中的基于区块链的物资盘点数据提供设备,接收盘点机器人上传的签名后的物资盘点数据,其中,该签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;对签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;若物资盘点数据的签名验证结果为签名验证通过,则将签名后的物资盘点数据上传至区块链。在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。The blockchain-based material inventory data providing device in one or more embodiments of this specification receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data uses a pre-stored private key pair The material inventory data of the target warehouse is obtained by signature processing. The material inventory data includes: the correspondence between the robot pose information and the material attribute information; signature verification is performed on the signed material inventory data, and the corresponding signature verification result is obtained; If the signature verification result of the material inventory data is that the signature verification is passed, upload the signed material inventory data to the blockchain. Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
需要说明的是,本说明书中关于基于区块链的物资盘点数据提供设备的实施例与本说明书中关于基于区块链的物资盘点数据提供方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的物资盘点数据提供方法的实施,重复之处不再赘述。It should be noted that the embodiment of the blockchain-based material inventory data providing device in this specification and the embodiment of the blockchain-based material inventory data providing method in this specification are based on the same inventive concept, so the embodiment of For specific implementation, please refer to the implementation of the aforementioned corresponding blockchain-based material inventory data providing method, and the repetition will not be repeated.
进一步地,对应上述图2至图6所示的方法,基于相同的技术构思,本说明书一个或多个实施例还提供了一种存储介质,用于存储计算机可执行指令,一种具体的实施例中,该存储介质可以为U盘、光盘、硬盘等,该存储介质存储的计算机可执行指令在被处理器执行时,能实现以下流程:获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据;将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。Further, corresponding to the methods shown in FIGS. 2 to 6 above, based on the same technical concept, one or more embodiments of this specification also provide a storage medium for storing computer-executable instructions, a specific implementation In an example, the storage medium may be a U disk, an optical disk, a hard disk, etc., when the computer executable instructions stored in the storage medium are executed by the processor, the following process can be realized: obtaining inventory data of the target warehouse, wherein the material The inventory data includes: the correspondence between the robot pose information and the material attribute information; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; take the signed material inventory The data is uploaded to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
本说明书一个或多个实施例中,在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签 名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of this specification, before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链,包括:将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端利用区块链中部署的智能合约对所述物资盘点数据进行签名验证、并将签名验证通过的物资盘点数据上传至区块链。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the signed material inventory data is uploaded to the cloud server, so that the cloud server can check the material inventory data Performing signature verification and uploading the material inventory data that has passed the signature verification to the blockchain includes: uploading the signed material inventory data to the cloud server, so that the cloud server uses the intelligence deployed in the blockchain The contract performs signature verification on the material inventory data, and uploads the material inventory data that has passed the signature verification to the blockchain.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,在获取目标仓库的物资盘点数据之前,还包括:若所述盘点机器人的当前状态为初始化状态,则获取所述盘点机器人的公有密钥;以及,获取所述盘点机器人的身份绑定信息,其中,所述身份绑定信息与所述盘点机器人所盘点的物资归属方相对应;基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求;将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, before acquiring the inventory data of the target warehouse, the method further includes: if the current state of the inventory robot is an initialization state, acquiring the inventory The public key of the robot; and obtaining the identity binding information of the inventory robot, wherein the identity binding information corresponds to the owner of the materials inventory by the inventory robot; based on the identity binding information and the inventory The public key generates a device identity activation request of the inventory robot; sends the device identity activation request to the cloud server, so that the cloud server responds to the device identity activation request and binds the identity The corresponding relationship between certain information and the public key is uploaded to the blockchain.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述获取所述盘点机器人的身份绑定信息,包括:利用摄像装置扫描仓库管理终端上显示的设备身份图形码,其中,所述设备身份图形码是云端服务端所分配的;对所述设备身份图形码进行解析,得到所述盘点机器人的身份绑定信息。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the obtaining the identity binding information of the inventory robot includes: scanning the device identity graphic code displayed on the warehouse management terminal with a camera device, Wherein, the device identity graphic code is allocated by the cloud server; the device identity graphic code is parsed to obtain the identity binding information of the inventory robot.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求,包括:将所述公有密钥发送至可信服务管理平台,以使所述可信服务管理平台生成包含所述公有密钥的数字证书;接收所述可信服务管理平台发送的所述数字证书;基于所述身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求。Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, generating the device identity activation request of the inventory robot based on the identity binding information and the public key includes: The public key is sent to a trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key; receives the digital certificate sent by the trusted service management platform; The identity binding information and the digital certificate generate a device identity activation request of the inventory robot.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求,包括:将所述公有密钥发送至可信服务管理平台,以使所述可信服务管理平台生成包含所述公有密钥的数字证书;接收所述可信服务管理平台发送的所述数字证书;基于所述身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求。Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, generating the device identity activation request of the inventory robot based on the identity binding information and the public key includes: The public key is sent to a trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key; receives the digital certificate sent by the trusted service management platform; The identity binding information and the digital certificate generate a device identity activation request of the inventory robot.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述基于所述身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求,包括:利用预存的私有密钥对所述身份绑定信息进行签名处理,得到签名后的身份绑定信息;基于所述签名后的身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, generating the device identity activation request of the inventory robot based on the identity binding information and the digital certificate includes: using pre-stored Signature processing of the identity binding information with the private key to obtain the signed identity binding information; based on the signed identity binding information and the digital certificate, a device identity activation request of the inventory robot is generated .
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求、并基于从所述可信服务管理平台获取的公有密钥对所述签名后的身份绑定信息进行验签、且验签通过后将所述身份绑定信息与所述数字证书之间的对应关系上传至区块链。Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the device identity activation request is sent to the cloud server, so that the cloud server responds to the device identity activation request And uploading the correspondence between the identity binding information and the public key to the blockchain includes: sending the device identity activation request to the cloud server, so that the cloud server responds to all The device identity activation request, and the signed identity binding information is verified based on the public key obtained from the trusted service management platform, and after the verification is passed, the identity binding information is verified with the The correspondence between the digital certificates is uploaded to the blockchain.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求,包括:将所述公有密钥发送至云端服务端,以使所述云端服务端将所述公有密钥上传至区块链,并返回所述区块链中用于存储所述公有密钥的链上地址;接收所述云端服务端返回的所述链上地址;基于所述身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求。Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, generating the device identity activation request of the inventory robot based on the identity binding information and the public key includes: The public key is sent to the cloud server, so that the cloud server uploads the public key to the blockchain, and returns the on-chain address used to store the public key in the blockchain Receiving the on-chain address returned by the cloud server; based on the identity binding information, the on-chain address, and the public key, generating a device identity activation request of the inventory robot.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述基于所述身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求,包括:利用预存的私有密钥对所述身份绑定信息进行签名处理,得到签名后的身份绑定信息;基于所述签名后的身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the device identity of the inventory robot is generated based on the identity binding information, the on-chain address, and the public key The activation request includes: using a pre-stored private key to sign the identity binding information to obtain the signed identity binding information; based on the signed identity binding information, the on-chain address, and the The public key generates the device identity activation request of the inventory robot.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求,并基于从所述区块链中获取的公有密钥对所述签名后的身份绑定信息进行验签,且验签通过后将所述身份绑定信息、所述链上地址与所述公有密钥之间的对应关系上传至区块链。Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the device identity activation request is sent to the cloud server, so that the cloud server responds to the device identity activation request And uploading the correspondence between the identity binding information and the public key to the blockchain includes: sending the device identity activation request to the cloud server, so that the cloud server responds to all The device identity activation request, and verify the signed identity binding information based on the public key obtained from the blockchain, and after the verification is passed, the identity binding information, the chain The correspondence between the above address and the public key is uploaded to the blockchain.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述获取目标仓库的物资盘点数据,包括:利用射频装置采集物资标签信息,并根据所述物资标签信息和当前位姿信息,生成目标仓库的物资盘点数据;和/或,利用摄像装置采集物资图像信息,并根据所述物资图像信息和当前位姿信息,生成目标仓库的物资盘点数据。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the acquiring material inventory data of the target warehouse includes: collecting material label information by using a radio frequency device, and according to the material label information and the current location Posture information to generate material inventory data of the target warehouse; and/or use a camera to collect material image information, and generate material inventory data of the target warehouse based on the material image information and current pose information.
本说明书一个或多个实施例中的存储介质存储的计算机可执行指令在被处理器执行时,盘点机器人获取目标仓库的物资盘点数据,其中,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;利用预存的私有密钥对物资盘点数据进行签名处理,得到签名后的物资盘点数据;将签名后的物资盘点数据上传至云端服务端,以使云端服务端对签名后的物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。When the computer-executable instructions stored in the storage medium in one or more embodiments of this specification are executed by the processor, the inventory robot obtains inventory data of the target warehouse, where the inventory data includes: robot pose information and material attributes Correspondence between the information; use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data; upload the signed material inventory data to the cloud server, so that the cloud server can sign Perform signature verification on the material inventory data and upload the material inventory data that has passed the signature verification to the blockchain. Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
在另一个具体的实施例中,该存储介质可以为U盘、光盘、硬盘等,该存储介质存储的计算机可执行指令在被处理器执行时,能实现以下流程:接收盘点机器人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;若所述签名验证结果为签名验证通过,则将所述签名后的物资盘点数据上传至区块链。In another specific embodiment, the storage medium may be a U disk, an optical disk, a hard disk, etc., and the computer executable instructions stored in the storage medium can realize the following process when executed by the processor: After receiving the signature uploaded by the inventory robot The inventory data of the material, wherein the signed material inventory data is obtained by signing the material inventory data of the target warehouse using a pre-stored private key, and the material inventory data includes: robot pose information and material attribute information Correspondence between; the signature verification of the signed material inventory data to obtain the corresponding signature verification result; if the signature verification result is that the signature verification is passed, upload the signed material inventory data to the district Block chain.
本说明书一个或多个实施例中,在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。In one or more embodiments of this specification, before the material inventory data of the target warehouse is uploaded to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and On the cloud server side, based on blockchain technology, signature verification of material inventory data under multiple witnesses and credible on-chain is realized, which improves the authenticity, security, credibility, and tamper-proof modification of material inventory data.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果,包括:利用所述区块链中部署的智能合约对所述物资盘点数据进行签名验证,得到相应的签名验证结果。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the signature verification of the signed material inventory data to obtain the corresponding signature verification result includes: using the blockchain The smart contract deployed in, performs signature verification on the material inventory data, and obtains the corresponding signature verification result.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,在接收盘点机器人上传的签名后的物资盘点数据之前,还包括:接收盘点机器人发送的设备身份激活请求,其中,所述设备身份激活请求是所述盘点机器人的当前状态为初始化状态时,基于身份绑定信息和公有密钥所生成的,所述身份绑定信息与所述盘点机器人所盘点的物资归属方相对应;响应于所述设备身份激活请求,并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, before receiving the signed material inventory data uploaded by the inventory robot, the method further includes: receiving a device identity activation request sent by the inventory robot. The device identity activation request is generated based on the identity binding information and the public key when the current state of the inventory robot is in the initialization state, and the identity binding information corresponds to the owner of the materials inventory by the inventory robot ; Respond to the device identity activation request, and upload the correspondence between the identity binding information and the public key to the blockchain.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,在接收盘点机器人发送的设备身份激活请求之前,还包括:向盘点机器人对应的仓库管理终端下发为所述盘点机器人分配的设备身份图形码,以使所述盘点机器人利用摄像装置扫描所述仓库管理终端上显示的设备身份图形码、并解析得到身份绑定信息。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, before receiving the device identity activation request sent by the inventory robot, the method further includes: issuing to the warehouse management terminal corresponding to the inventory robot as the inventory robot The distributed equipment identity graphic code, so that the inventory robot uses a camera to scan the equipment identity graphic code displayed on the warehouse management terminal, and analyzes to obtain identity binding information.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述设备身份激活请求是基于所述盘点机器人的身份绑定信息和数字证书所生成的;所述数字证书是可信服务管理平台基于所述公有密钥所生成的。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the device identity activation request is generated based on the identity binding information of the inventory robot and a digital certificate; the digital certificate can be The information service management platform is generated based on the public key.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述设备身份 激活请求是基于签名后的身份绑定信息和所述数字证书所生成的;所述签名后的身份绑定信息是所述盘点机器人利用预存的私有密钥对身份绑定信息进行签名处理得到的。Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the device identity activation request is generated based on the signed identity binding information and the digital certificate; the signed identity The binding information is obtained by the inventory robot using a pre-stored private key to sign the identity binding information.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:响应于所述设备身份激活请求,并从所述可信服务管理平台获取所述盘点机器人对应的公有密钥;基于获取到的所述公有密钥对所述签名后的身份绑定信息进行验签;若所述身份绑定信息验签通过,则将所述身份绑定信息与所述数字证书之间的对应关系上传至区块链。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the corresponding relationship between the identity binding information and the public key is uploaded in response to the device identity activation request To the blockchain, including: responding to the device identity activation request, and obtaining the public key corresponding to the inventory robot from the trusted service management platform; signing the public key based on the obtained public key If the identity binding information passes the verification, the corresponding relationship between the identity binding information and the digital certificate is uploaded to the blockchain.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述设备身份激活请求是基于所述盘点机器人的身份绑定信息、链上地址和公有密钥所生成的;所述链上地址是云端服务端返回的所述区块链中用于存储所述公有密钥的存储地址。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the device identity activation request is generated based on the identity binding information, the on-chain address, and the public key of the inventory robot; The on-chain address is the storage address used to store the public key in the blockchain returned by the cloud server.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述设备身份激活请求是基于签名后的身份绑定信息、链上地址和公有密钥所生成的;所述签名后的身份绑定信息是所述盘点机器人利用预存的私有密钥对身份绑定信息进行签名处理得到的。Optionally, when the computer executable instructions stored in the storage medium are executed by the processor, the device identity activation request is generated based on the signed identity binding information, the on-chain address, and the public key; the signature The latter identity binding information is obtained by the inventory robot using the pre-stored private key to sign the identity binding information.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:响应于所述设备身份激活请求,并从所述区块链中获取所述盘点机器人对应的公有密钥;基于获取到的所述公有密钥对所述签名后的身份绑定信息进行验签;若所述身份绑定信息验签通过,则将所述身份绑定信息、所述链上地址与所述公有密钥之间的对应关系上传至区块链。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the corresponding relationship between the identity binding information and the public key is uploaded in response to the device identity activation request To the blockchain, including: responding to the device identity activation request, and obtaining the public key corresponding to the inventory robot from the blockchain; and signing the public key based on the obtained public key The identity binding information is verified; if the identity binding information passes the verification, the correspondence between the identity binding information, the address on the chain, and the public key is uploaded to the blockchain.
本说明书一个或多个实施例中的存储介质存储的计算机可执行指令在被处理器执行时,接收盘点机器人上传的签名后的物资盘点数据,其中,该签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,该物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;对签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;若物资盘点数据的签名验证结果为签名验证通过,则将签名后的物资盘点数据上传至区块链。在目标仓库的物资盘点数据上传至云端服务端之前,先由盘点机器人对采集到的物资盘点数据进行可信签名处理,得到签名后的物资盘点数据,以及在云端服务端侧基于区块链技术实现在多方见证下对物资盘点数据进行签名验证并可信上链,提高了物资盘点数据的真实性、安全性、可信性、以及防篡改性。When the computer executable instructions stored in the storage medium in one or more embodiments of this specification are executed by the processor, they receive the signed material inventory data uploaded by the inventory robot, where the signed material inventory data is pre-stored The private key is obtained by signing the material inventory data of the target warehouse. The material inventory data includes: the correspondence between the robot pose information and the material attribute information; the signed material inventory data is signed and verified to obtain the corresponding Signature verification result; if the signature verification result of the material inventory data is that the signature verification is passed, upload the signed material inventory data to the blockchain. Before uploading the material inventory data of the target warehouse to the cloud server, the inventory robot first performs trusted signature processing on the collected material inventory data to obtain the signed material inventory data, and the cloud server side is based on blockchain technology Realize the signature verification of the material inventory data under the witness of multiple parties and the credible chaining, which improves the authenticity, security, credibility, and tamper-proof modification of the material inventory data.
需要说明的是,本说明书中关于存储介质的实施例与本说明书中关于基于区块链的物资盘点数据提供方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的物资盘点数据提供方法的实施,重复之处不再赘述。It should be noted that the embodiment of the storage medium in this specification and the embodiment of the method for providing material inventory data based on the blockchain in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the aforementioned corresponding The implementation of the method of providing inventory data of the block chain will not be repeated here.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电 路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HD Cal、JHDL(Java Hardware Description Language)、Lava、Lola、My HDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, the improvement of a technology can be clearly distinguished between hardware improvements (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements in method flow). However, with the development of technology, the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (such as a Field Programmable Gate Array (Field Programmable Gate Array, FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device. It is programmed by the designer to "integrate" a digital system on a piece of PLD, without requiring chip manufacturers to design and manufacture dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly realized with "logic compiler" software, which is similar to the software compiler used in program development and writing, but before compilation The original code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and there is not only one type of HDL, but many types, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HD Cal, JHDL (Java Hardware Description Language), Lava, Lola, My HDL, PALASM, RHDL (Ruby Hardware Description), etc., currently the most Commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that just a little bit of logic programming of the method flow in the above-mentioned hardware description languages and programming into an integrated circuit can easily obtain the hardware circuit that implements the logic method flow.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the memory control logic. Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedded logic. The same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units illustrated in the above embodiments may be specifically implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书一个或多个时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when one or more of this specification is implemented, the functions of each unit can be implemented in the same one or more software and/or hardware.
本领域内的技术人员应明白,本说明书一个或多个的实施例可提供为方法、系统、或计算机程序产品。因此,本说明书一个或多个可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书一个或多个可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that one or more of the embodiments in this specification can be provided as a method, a system, or a computer program product. Therefore, one or more of this specification may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more of this specification can adopt computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. form.
本说明书一个或多个是参照根据本说明书一个或多个实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。One or more of this specification is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to one or more embodiments of this specification. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are used to generate It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
本领域技术人员应明白,本说明书一个或多个的实施例可提供为方法、系统或计算机程序产品。因此,本说明书一个或多个可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书一个或多个可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that one or more of the embodiments in this specification can be provided as a method, a system, or a computer program product. Therefore, one or more of this specification may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more of this specification can adopt computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. form.
本说明书一个或多个可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书一个或多个,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。One or more of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more of this specification can also be practiced in a distributed computing environment. In these distributed computing environments, tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
以上所述仅为本说明书一个或多个的实施例而已,并不用于限制本说明书一个或多个。对于本领域技术人员来说,本说明书一个或多个可以有各种更改和变化。凡在本说明书一个或多个的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本说明书一个或多个的权利要求范围之内。The above description is only one or more embodiments of this specification, and is not used to limit one or more of this specification. For those skilled in the art, one or more of this specification can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within one or more of the spirit and principle of this specification shall be included in the scope of one or more of the claims of this specification.

Claims (30)

  1. 一种基于区块链的物资盘点数据提供方法,应用于盘点机器人,所述方法包括:A blockchain-based method for providing inventory data is applied to an inventory robot, and the method includes:
    获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;Obtain material inventory data of the target warehouse, where the material inventory data includes: the correspondence between robot pose information and material attribute information;
    利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据;Use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data;
    将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。Upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
  2. 根据权利要求1所述的方法,其中,所述将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链,包括:The method according to claim 1, wherein said uploading the signed material inventory data to a cloud server, so that the cloud server performs signature verification on the material inventory data and passes the signature verification The material inventory data is uploaded to the blockchain, including:
    将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端利用区块链中部署的智能合约对所述物资盘点数据进行签名验证、并将签名验证通过的物资盘点数据上传至区块链。Upload the signed material inventory data to the cloud server, so that the cloud server uses the smart contract deployed in the blockchain to perform signature verification on the material inventory data and verify the material inventory data that has passed the signature verification Upload to the blockchain.
  3. 根据权利要求2所述的方法,其中,所述将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端利用区块链中部署的智能合约对所述物资盘点数据进行签名验证、并将签名验证通过的物资盘点数据上传至区块链,包括:The method according to claim 2, wherein said uploading the signed material inventory data to a cloud server, so that the cloud server uses a smart contract deployed in a blockchain to perform inventory data on the material Perform signature verification and upload the material inventory data that has passed the signature verification to the blockchain, including:
    将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端利用区块链中部署的智能合约基于所述盘点机器人对应的公有密钥,对所述物资盘点数据进行签名验证,并将签名验证通过的物资盘点数据上传至区块链;Upload the signed material inventory data to the cloud server, so that the cloud server uses the smart contract deployed in the blockchain to sign the material inventory data based on the public key corresponding to the inventory robot Verify and upload the material inventory data that has passed the signature verification to the blockchain;
    其中,所述公有密钥是所述盘点机器人在设备身份激活阶段上传至所述云端服务端的。Wherein, the public key is uploaded to the cloud server by the inventory robot during the device identity activation stage.
  4. 根据权利要求1所述的方法,其中,在获取目标仓库的物资盘点数据之前,还包括:The method according to claim 1, wherein before obtaining the material inventory data of the target warehouse, the method further comprises:
    若所述盘点机器人的当前状态为初始化状态,则获取所述盘点机器人的公有密钥;以及,If the current state of the inventory robot is the initialization state, obtain the public key of the inventory robot; and,
    获取所述盘点机器人的身份绑定信息,其中,所述身份绑定信息与所述盘点机器人所盘点的物资归属方相对应;Acquiring the identity binding information of the inventory robot, where the identity binding information corresponds to the owner of the materials inventory by the inventory robot;
    基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求;Generating a device identity activation request of the inventory robot based on the identity binding information and the public key;
    将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链。The device identity activation request is sent to the cloud server, so that the cloud server responds to the device identity activation request and uploads the correspondence between the identity binding information and the public key to the district Block chain.
  5. 根据权利要求4所述的方法,其中,所述获取所述盘点机器人的身份绑定信息,包括:The method according to claim 4, wherein said obtaining the identity binding information of the inventory robot comprises:
    利用摄像装置扫描仓库管理终端上显示的设备身份图形码,其中,所述设备身份图形码是云端服务端所分配的;Scanning the device identity graphic code displayed on the warehouse management terminal with a camera device, wherein the device identity graphic code is allocated by the cloud server;
    对所述设备身份图形码进行解析,得到所述盘点机器人的身份绑定信息。Analyze the device identity graphic code to obtain the identity binding information of the inventory robot.
  6. 根据权利要求4所述的方法,其中,所述基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求,包括:The method according to claim 4, wherein the generating the device identity activation request of the inventory robot based on the identity binding information and the public key comprises:
    将所述公有密钥发送至可信服务管理平台,以使所述可信服务管理平台生成包含所述公有密钥的数字证书;Sending the public key to a trusted service management platform, so that the trusted service management platform generates a digital certificate containing the public key;
    接收所述可信服务管理平台发送的所述数字证书;Receiving the digital certificate sent by the trusted service management platform;
    基于所述身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求。Based on the identity binding information and the digital certificate, a device identity activation request of the inventory robot is generated.
  7. 根据权利要求6所述的方法,其中,所述基于所述身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求,包括:The method according to claim 6, wherein the generating the device identity activation request of the inventory robot based on the identity binding information and the digital certificate comprises:
    利用预存的私有密钥对所述身份绑定信息进行签名处理,得到签名后的身份绑定信 息;Use the pre-stored private key to sign the identity binding information to obtain the signed identity binding information;
    基于所述签名后的身份绑定信息和所述数字证书,生成所述盘点机器人的设备身份激活请求。Based on the signed identity binding information and the digital certificate, a device identity activation request of the inventory robot is generated.
  8. 根据权利要求7所述的方法,其中,所述将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:The method according to claim 7, wherein the sending the device identity activation request to a cloud server, so that the cloud server responds to the device identity activation request and combines the identity binding information with Uploading the correspondence between the public keys to the blockchain includes:
    将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求、并基于从所述可信服务管理平台获取的公有密钥对所述签名后的身份绑定信息进行验签、且验签通过后将所述身份绑定信息与所述数字证书之间的对应关系上传至区块链。The device identity activation request is sent to the cloud server, so that the cloud server responds to the device identity activation request and signs the signed data based on the public key obtained from the trusted service management platform The identity binding information is verified and the corresponding relationship between the identity binding information and the digital certificate is uploaded to the blockchain after the verification is passed.
  9. 根据权利要求4所述的方法,其中,所述基于所述身份绑定信息和所述公有密钥,生成所述盘点机器人的设备身份激活请求,包括:The method according to claim 4, wherein the generating the device identity activation request of the inventory robot based on the identity binding information and the public key comprises:
    将所述公有密钥发送至云端服务端,以使所述云端服务端将所述公有密钥上传至区块链,并返回所述区块链中用于存储所述公有密钥的链上地址;Send the public key to the cloud server, so that the cloud server uploads the public key to the blockchain, and returns it to the blockchain for storing the public key on the chain address;
    接收所述云端服务端返回的所述链上地址;Receiving the on-chain address returned by the cloud server;
    基于所述身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求。Based on the identity binding information, the on-chain address, and the public key, a device identity activation request of the inventory robot is generated.
  10. 根据权利要求9所述的方法,其中,所述基于所述身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求,包括:The method according to claim 9, wherein the generating the device identity activation request of the inventory robot based on the identity binding information, the on-chain address, and the public key comprises:
    利用预存的私有密钥对所述身份绑定信息进行签名处理,得到签名后的身份绑定信息;Use the pre-stored private key to sign the identity binding information to obtain the signed identity binding information;
    基于所述签名后的身份绑定信息、所述链上地址和所述公有密钥,生成所述盘点机器人的设备身份激活请求。Based on the signed identity binding information, the on-chain address and the public key, a device identity activation request of the inventory robot is generated.
  11. 根据权利要求10所述的方法,其中,所述将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:The method according to claim 10, wherein said sending said device identity activation request to a cloud server, so that said cloud server responds to said device identity activation request and combines said identity binding information with Uploading the correspondence between the public keys to the blockchain includes:
    将所述设备身份激活请求发送至云端服务端,以使所述云端服务端响应于所述设备身份激活请求,并基于从所述区块链中获取的公有密钥对所述签名后的身份绑定信息进行验签,且验签通过后将所述身份绑定信息、所述链上地址与所述公有密钥之间的对应关系上传至区块链。The device identity activation request is sent to the cloud server, so that the cloud server responds to the device identity activation request, and the signed identity is based on the public key obtained from the blockchain The binding information is verified, and after the verification is passed, the correspondence between the identity binding information, the address on the chain, and the public key is uploaded to the blockchain.
  12. 根据权利要求1所述的方法,其中,所述获取目标仓库的物资盘点数据,包括:The method according to claim 1, wherein said obtaining material inventory data of the target warehouse comprises:
    利用射频装置采集物资标签信息,并根据所述物资标签信息和当前位姿信息,生成目标仓库的物资盘点数据;Use the radio frequency device to collect material label information, and generate material inventory data of the target warehouse based on the material label information and current pose information;
    和/或,and / or,
    利用摄像装置采集物资图像信息,并根据所述物资图像信息和当前位姿信息,生成目标仓库的物资盘点数据。The camera device is used to collect the material image information, and according to the material image information and the current pose information, the material inventory data of the target warehouse is generated.
  13. 一种基于区块链的物资盘点数据提供方法,应用于接入区块链的云端服务端,所述方法包括:A blockchain-based method for providing inventory data is applied to a cloud server connected to the blockchain, and the method includes:
    接收盘点机器人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;Receive the signed material inventory data uploaded by the inventory robot, where the signed material inventory data is obtained by signing the material inventory data of the target warehouse using a pre-stored private key, and the material inventory data includes: a robot Correspondence between pose information and material attribute information;
    对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;Perform signature verification on the signed material inventory data to obtain a corresponding signature verification result;
    若所述签名验证结果为签名验证通过,则将所述签名后的物资盘点数据上传至区块链。If the signature verification result is that the signature verification is passed, upload the signed material inventory data to the blockchain.
  14. 根据权利要求13所述的方法,其中,所述对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果,包括:The method according to claim 13, wherein said performing signature verification on said signed material inventory data to obtain a corresponding signature verification result comprises:
    利用所述区块链中部署的智能合约对所述物资盘点数据进行签名验证,得到相应的签名验证结果。The smart contract deployed in the blockchain is used to perform signature verification on the material inventory data, and a corresponding signature verification result is obtained.
  15. 根据权利要求14所述的方法,其中,所述利用所述区块链中部署的智能合约对所述物资盘点数据进行签名验证,得到相应的签名验证结果,包括:The method according to claim 14, wherein said using the smart contract deployed in the blockchain to perform signature verification on the material inventory data to obtain the corresponding signature verification result comprises:
    利用所述区块链中部署的智能合约获取与所述盘点机器人对应的公有密钥;以及,Use the smart contract deployed in the blockchain to obtain the public key corresponding to the inventory robot; and,
    利用所述智能合约基于所述公有密钥对所述物资盘点数据进行签名验证,得到相应的签名验证结果;Use the smart contract to perform signature verification on the material inventory data based on the public key to obtain a corresponding signature verification result;
    其中,所述公有密钥是所述盘点机器人在设备身份激活阶段上传至所述云端服务端的。Wherein, the public key is uploaded to the cloud server by the inventory robot during the device identity activation stage.
  16. 根据权利要求13所述的方法,其中,在接收盘点机器人上传的签名后的物资盘点数据之前,还包括:The method according to claim 13, wherein before receiving the signed material inventory data uploaded by the inventory robot, the method further comprises:
    接收盘点机器人发送的设备身份激活请求,其中,所述设备身份激活请求是所述盘点机器人的当前状态为初始化状态时,基于身份绑定信息和公有密钥所生成的,所述身份绑定信息与所述盘点机器人所盘点的物资归属方相对应;Receive a device identity activation request sent by the inventory robot, where the device identity activation request is generated based on the identity binding information and the public key when the current state of the inventory robot is in the initialization state, the identity binding information Correspond to the owner of the materials counted by the counting robot;
    响应于所述设备身份激活请求,并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链。In response to the device identity activation request, the correspondence between the identity binding information and the public key is uploaded to the blockchain.
  17. 根据权利要求16所述的方法,其中,在接收盘点机器人发送的设备身份激活请求之前,还包括:The method according to claim 16, wherein before receiving the device identity activation request sent by the inventory robot, the method further comprises:
    向盘点机器人对应的仓库管理终端下发为所述盘点机器人分配的设备身份图形码,以使所述盘点机器人利用摄像装置扫描所述仓库管理终端上显示的设备身份图形码、并解析得到身份绑定信息。The equipment identity graphic code assigned to the inventory robot is issued to the warehouse management terminal corresponding to the inventory robot, so that the inventory robot uses the camera to scan the equipment identity graphic code displayed on the warehouse management terminal, and parses to obtain the identity binding Certain information.
  18. 根据权利要求16所述的方法,其中,所述设备身份激活请求是基于所述盘点机器人的身份绑定信息和数字证书所生成的;所述数字证书是可信服务管理平台基于所述公有密钥所生成的。The method according to claim 16, wherein the device identity activation request is generated based on the identity binding information of the inventory robot and a digital certificate; the digital certificate is a trusted service management platform based on the public secret Key generated.
  19. 根据权利要求18所述的方法,其中,所述设备身份激活请求是基于签名后的身份绑定信息和所述数字证书所生成的;所述签名后的身份绑定信息是所述盘点机器人利用预存的私有密钥对身份绑定信息进行签名处理得到的。The method according to claim 18, wherein the device identity activation request is generated based on the signed identity binding information and the digital certificate; the signed identity binding information is used by the inventory robot The pre-stored private key is obtained by signing the identity binding information.
  20. 根据权利要求19所述的方法,其中,所述响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:The method according to claim 19, wherein the responding to the device identity activation request and uploading the correspondence between the identity binding information and the public key to the blockchain comprises:
    响应于所述设备身份激活请求,并从所述可信服务管理平台获取所述盘点机器人对应的公有密钥;Respond to the device identity activation request, and obtain the public key corresponding to the inventory robot from the trusted service management platform;
    基于获取到的所述公有密钥对所述签名后的身份绑定信息进行验签;Verifying the signed identity binding information based on the obtained public key;
    若所述身份绑定信息验签通过,则将所述身份绑定信息与所述数字证书之间的对应关系上传至区块链。If the identity binding information passes the verification, the corresponding relationship between the identity binding information and the digital certificate is uploaded to the blockchain.
  21. 根据权利要求16所述的方法,其中,所述设备身份激活请求是基于所述盘点机器人的身份绑定信息、链上地址和公有密钥所生成的;所述链上地址是云端服务端返回的所述区块链中用于存储所述公有密钥的存储地址。The method according to claim 16, wherein the device identity activation request is generated based on the identity binding information, on-chain address, and public key of the inventory robot; the on-chain address is returned by the cloud server The storage address used to store the public key in the blockchain.
  22. 根据权利要求21所述的方法,其中,所述设备身份激活请求是基于签名后的身份绑定信息、链上地址和公有密钥所生成的;所述签名后的身份绑定信息是所述盘点机器人利用预存的私有密钥对身份绑定信息进行签名处理得到的。The method according to claim 21, wherein the device identity activation request is generated based on the signed identity binding information, the on-chain address and the public key; the signed identity binding information is the The inventory robot uses the pre-stored private key to sign the identity binding information.
  23. 根据权利要求22所述的方法,其中,响应于所述设备身份激活请求并将所述身份绑定信息与所述公有密钥之间的对应关系上传至区块链,包括:The method according to claim 22, wherein responding to the device identity activation request and uploading the correspondence between the identity binding information and the public key to the blockchain comprises:
    响应于所述设备身份激活请求,并从所述区块链中获取所述盘点机器人对应的公有密钥;Respond to the device identity activation request, and obtain the public key corresponding to the inventory robot from the blockchain;
    基于获取到的所述公有密钥对所述签名后的身份绑定信息进行验签;Verifying the signed identity binding information based on the obtained public key;
    若所述身份绑定信息验签通过,则将所述身份绑定信息、所述链上地址与所述公有 密钥之间的对应关系上传至区块链。If the identity binding information passes the verification, upload the correspondence between the identity binding information, the address on the chain, and the public key to the blockchain.
  24. 一种基于区块链的物资盘点数据提供装置,设置于盘点机器人侧,所述装置包括:A block chain-based material inventory data providing device is arranged on the side of an inventory robot, and the device includes:
    物资数据获取模块,其获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;A material data acquisition module, which acquires material inventory data of a target warehouse, where the material inventory data includes: the correspondence between robot pose information and material attribute information;
    物资数据签名模块,其利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据;A material data signature module, which uses a pre-stored private key to sign the material inventory data to obtain signed material inventory data;
    物资数据发送模块,其将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。Material data sending module, which uploads the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the block chain.
  25. 一种基于区块链的物资盘点数据提供装置,应用于接入区块链的云端服务端,所述装置包括:A block chain-based material inventory data providing device is applied to a cloud server connected to the block chain, and the device includes:
    物资数据接收模块,其接收盘点机器人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;The material data receiving module receives the signed material inventory data uploaded by the inventory robot, wherein the signed material inventory data is obtained by signing the material inventory data of the target warehouse using a pre-stored private key. Material inventory data includes: the correspondence between robot pose information and material attribute information;
    物资数据验签模块,其对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;The material data verification module, which performs signature verification on the signed material inventory data, and obtains the corresponding signature verification result;
    物资数据存储模块,其若所述签名验证结果为签名验证通过,则将所述签名后的物资盘点数据上传至区块链。The material data storage module uploads the signed material inventory data to the blockchain if the signature verification result is that the signature verification is passed.
  26. 一种基于区块链的物资盘点数据提供系统,包括:盘点机器人、以及接入区块链的云端服务端;A blockchain-based material inventory data providing system, including: an inventory robot and a cloud server connected to the blockchain;
    所述盘点机器人,获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据;将所述签名后的物资盘点数据上传至云端服务端;The inventory robot obtains material inventory data of a target warehouse, where the material inventory data includes: the correspondence between robot pose information and material attribute information; and a pre-stored private key is used to sign the material inventory data Processing to obtain the signed material inventory data; upload the signed material inventory data to the cloud server;
    所述云端服务端,接收盘点机器人上传的签名后的物资盘点数据;并对所述物资盘点数据进行签名验证;以及将签名验证通过的物资盘点数据上传至区块链。The cloud server receives the signed material inventory data uploaded by the inventory robot; performs signature verification on the material inventory data; and uploads the material inventory data that has passed the signature verification to the blockchain.
  27. 一种基于区块链的物资盘点数据提供设备,包括:A blockchain-based material inventory data providing equipment, including:
    处理器;以及Processor; and
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer-executable instructions which, when executed, cause the processor to:
    获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;Obtain material inventory data of the target warehouse, where the material inventory data includes: the correspondence between robot pose information and material attribute information;
    利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据;Use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data;
    将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。Upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
  28. 一种基于区块链的物资盘点数据提供设备,包括:A blockchain-based material inventory data providing equipment, including:
    处理器;以及Processor; and
    被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer-executable instructions which, when executed, cause the processor to:
    接收盘点机器人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;Receive the signed material inventory data uploaded by the inventory robot, where the signed material inventory data is obtained by signing the material inventory data of the target warehouse using a pre-stored private key, and the material inventory data includes: a robot Correspondence between pose information and material attribute information;
    对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;Perform signature verification on the signed material inventory data to obtain a corresponding signature verification result;
    若所述签名验证结果为签名验证通过,则将所述签名后的物资盘点数据上传至区块 链。If the signature verification result is that the signature verification is passed, upload the signed material inventory data to the blockchain.
  29. 一种存储介质,用于存储计算机可执行指令,所述可执行指令在被处理器执行时实现以下方法:A storage medium for storing computer executable instructions, which implement the following methods when executed by a processor:
    获取目标仓库的物资盘点数据,其中,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;Obtain material inventory data of the target warehouse, where the material inventory data includes: the correspondence between robot pose information and material attribute information;
    利用预存的私有密钥对所述物资盘点数据进行签名处理,得到签名后的物资盘点数据;Use the pre-stored private key to sign the material inventory data to obtain the signed material inventory data;
    将所述签名后的物资盘点数据上传至云端服务端,以使所述云端服务端对所述物资盘点数据进行签名验证并将签名验证通过的物资盘点数据上传至区块链。Upload the signed material inventory data to the cloud server, so that the cloud server performs signature verification on the material inventory data and uploads the material inventory data that has passed the signature verification to the blockchain.
  30. 一种存储介质,用于存储计算机可执行指令,所述可执行指令在被处理器执行时实现以下方法:A storage medium for storing computer executable instructions, which implement the following methods when executed by a processor:
    接收盘点机器人上传的签名后的物资盘点数据,其中,所述签名后的物资盘点数据是利用预存的私有密钥对目标仓库的物资盘点数据进行签名处理得到的,所述物资盘点数据包括:机器人位姿信息和物资属性信息之间的对应关系;Receive the signed material inventory data uploaded by the inventory robot, where the signed material inventory data is obtained by signing the material inventory data of the target warehouse using a pre-stored private key, and the material inventory data includes: a robot Correspondence between pose information and material attribute information;
    对所述签名后的物资盘点数据进行签名验证,得到相应的签名验证结果;Perform signature verification on the signed material inventory data to obtain a corresponding signature verification result;
    若所述签名验证结果为签名验证通过,则将所述签名后的物资盘点数据上传至区块链。If the signature verification result is that the signature verification is passed, upload the signed material inventory data to the blockchain.
PCT/CN2020/132675 2020-02-27 2020-11-30 Blockchain-based material inventory data providing method, apparatus and system WO2021169455A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010125140.7 2020-02-27
CN202010125140.7A CN111371559B (en) 2020-02-27 2020-02-27 Material inventory data providing method, device and system based on block chain

Publications (1)

Publication Number Publication Date
WO2021169455A1 true WO2021169455A1 (en) 2021-09-02

Family

ID=71206295

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/132675 WO2021169455A1 (en) 2020-02-27 2020-11-30 Blockchain-based material inventory data providing method, apparatus and system

Country Status (2)

Country Link
CN (2) CN111371559B (en)
WO (1) WO2021169455A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11579630B2 (en) * 2020-02-06 2023-02-14 Accenture Global Solutions Limited Decentralized robot cooperation platform
CN111371559B (en) * 2020-02-27 2021-07-27 支付宝(杭州)信息技术有限公司 Material inventory data providing method, device and system based on block chain
CN112422290A (en) * 2020-10-27 2021-02-26 中思博安科技(北京)有限公司 Block chain-based data uplink method, device and system
CN112035504B (en) * 2020-11-03 2022-02-08 支付宝(杭州)信息技术有限公司 Block chain-based item code generation method, and item weight transfer method and device
CN113079025A (en) * 2021-04-07 2021-07-06 上海万向区块链股份公司 Method and system compatible with multiple public key algorithm signatures

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446830A (en) * 2018-11-13 2019-03-08 中链科技有限公司 Data center environment information processing method and device based on block chain
CN109816383A (en) * 2019-02-22 2019-05-28 杭州秘猿科技有限公司 A kind of block chain endorsement method, block chain wallet and block chain
US20200026834A1 (en) * 2018-07-23 2020-01-23 One Kosmos Inc. Blockchain identity safe and authentication system
CN111371559A (en) * 2020-02-27 2020-07-03 支付宝(杭州)信息技术有限公司 Material inventory data providing method, device and system based on block chain

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7693757B2 (en) * 2006-09-21 2010-04-06 International Business Machines Corporation System and method for performing inventory using a mobile inventory robot
KR101676767B1 (en) * 2015-07-20 2016-11-16 테라온 주식회사 The System and Method for patrolling management of mobile device user
US11367039B2 (en) * 2016-03-31 2022-06-21 Aglive International Pty. Ltd. Information system for item verification
CN106485298A (en) * 2016-10-11 2017-03-08 合肥思盟信息科技有限公司 A kind of equipment routing inspection maintaining method based on Quick Response Code
US20180240191A1 (en) * 2017-02-03 2018-08-23 Terry Aronson System and Method for asset backed crypto-currency
EP3396612A1 (en) * 2017-04-24 2018-10-31 BlockSettle AB Method and system for creating a user identity
CN107886284A (en) * 2017-12-26 2018-04-06 青岛道合供应链管理有限公司 A kind of staple commodities supply chain management system for internet of things based on wisdom pallet
CN108470265B (en) * 2018-03-27 2021-03-02 深圳春沐源控股有限公司 Multi-warehouse data management method based on block chain and related equipment
CN109264275B (en) * 2018-09-20 2020-08-28 深圳蓝胖子机器人有限公司 Robot-based intelligent warehouse management method and device and storage medium
CN109660350A (en) * 2018-10-31 2019-04-19 阿里巴巴集团控股有限公司 Data based on block chain deposit card method and device, electronic equipment
CN109242119B (en) * 2018-11-07 2021-09-07 福建亿榕信息技术有限公司 Automatic inspection method and system for secondary equipment of intelligent substation
CN109726922A (en) * 2018-12-29 2019-05-07 杭州趣链科技有限公司 A kind of computer room patrolling and checking management system and method based on block chain
CN110303500B (en) * 2019-07-10 2020-09-29 中信梧桐港供应链管理有限公司 Warehouse robot control system and method
CN110445617B (en) * 2019-07-16 2022-05-03 创新先进技术有限公司 Vehicle parking image storage method, device and system based on block chain
CN110365928A (en) * 2019-07-16 2019-10-22 阿里巴巴集团控股有限公司 A kind of Driving Test videotape storage means, apparatus and system based on block chain
CN110503362A (en) * 2019-08-01 2019-11-26 深圳市珍久库科技有限公司 A kind of intelligent repository management method and system based on block chain
CN110490514A (en) * 2019-08-01 2019-11-22 深圳市珍久库科技有限公司 A kind of assets digitlization of the intelligent repository based on block chain management and device
CN110450176A (en) * 2019-08-07 2019-11-15 国网河北省电力有限公司 The robot to make an inventory for Power Material storage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200026834A1 (en) * 2018-07-23 2020-01-23 One Kosmos Inc. Blockchain identity safe and authentication system
CN109446830A (en) * 2018-11-13 2019-03-08 中链科技有限公司 Data center environment information processing method and device based on block chain
CN109816383A (en) * 2019-02-22 2019-05-28 杭州秘猿科技有限公司 A kind of block chain endorsement method, block chain wallet and block chain
CN111371559A (en) * 2020-02-27 2020-07-03 支付宝(杭州)信息技术有限公司 Material inventory data providing method, device and system based on block chain

Also Published As

Publication number Publication date
CN113794569A (en) 2021-12-14
CN113794569B (en) 2023-10-13
CN111371559B (en) 2021-07-27
CN111371559A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
WO2021169455A1 (en) Blockchain-based material inventory data providing method, apparatus and system
WO2021114937A1 (en) Blockchain-based service processing method, apparatus and device
WO2021239104A1 (en) Blockchain-based service processing
KR102541219B1 (en) Beam control method, base station, and terminal
WO2021068636A1 (en) Block chain-based creation method, apparatus, device and system for verifiable claim
TWI706654B (en) Authentication method, authentication data processing method and device based on blockchain
US11171782B2 (en) Identity and electronic signature verification in blockchain
US11288371B2 (en) Blockchain-based data processing method, apparatus, and device
US11386191B2 (en) Trusted hardware-based identity management methods, apparatuses, and devices
WO2021227966A1 (en) Binding processing
CN112149187B (en) Method and device for processing traceability information based on blockchain
WO2021239089A1 (en) Transaction processing method, apparatus, device and system
US11418499B2 (en) Password security
CN112560019B (en) Processing method, device and equipment of block chain data
CN112200585B (en) Service processing method, device, equipment and system
WO2020056597A1 (en) Item identity management method, terminal, micro-processing unit, identification device and system
CN110222531A (en) A kind of method, system and equipment accessing database
CN114884674A (en) Block chain-based user data transfer method, device and equipment
CN114491430A (en) Service processing method, device and equipment based on block chain
EP4040720A1 (en) Secure identity card using unclonable functions
EP3945696B1 (en) Blockchain data processing method, apparatus, and device
CN110990492B (en) Information processing method, device and equipment
CN113761496A (en) Identity verification method and device based on block chain and electronic equipment
CN114553516A (en) Data processing method, device and equipment

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: 20921028

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20921028

Country of ref document: EP

Kind code of ref document: A1