A method, device and equipment for information processing
Through encryption processing and blockchain technology, the information of information collection equipment is ensured to be safe during transmission, and the problem of vulnerability of information collection equipment in traditional warehousing management is solved, and the efficient and reliable transmission and storage of information is achieved.
Patent Information
- Application Number
- CN202110533023.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-24
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2040-04-24
AI Technical Summary
In traditional warehousing management, information collection equipment is prone to illegal attacks during network transmission, threatening the security of information.
Using encryption processing and blockchain technology, the encrypted collection information sent by the information collection device is received through the information management device. After verifying its identity, if it is a preset device, the information will be uploaded to the blockchain system to ensure that only legal information can be uploaded to the link. , reduce the risk of cyberattacks.
It effectively improves the security of information, reduces information errors caused by network attacks, enhances the reliability of information sources, and reduces the number of devices connected in the blockchain system, and improves work efficiency.
Smart Images

Figure CN113221143B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device and equipment for information processing. Background Art
[0002] With the development of computer technology, advanced technology has brought us convenience, but also brought new problems. For example, in terms of warehouse management, traditional warehouse management generally relies on manual management, such as manually counting the number of goods and filling out the goods list. With the continuous improvement of science and technology, it is now common to use devices such as scanners, cameras or sensors to collect information about goods in the warehouse, which can reduce labor and improve the efficiency of data collection. However, the collected information is usually transmitted through the network, which may be subject to illegal attacks during the transmission process, threatening the security of the information.
[0003] Therefore, how to ensure information security is a technical problem that needs to be urgently solved in this field. Summary of the invention
[0004] In view of this, an information processing method, apparatus and device are provided in the embodiments of the present application, which can be used to improve the security of information.
[0005] To solve the above technical problems, the embodiments of this specification are implemented as follows:
[0006] An information processing method provided in an embodiment of this specification includes:
[0007] Receiving the encrypted collected information sent by the information collection device;
[0008] According to the information collection device identifier corresponding to the encrypted collection information, determining whether the information collection device is a preset information collection device;
[0009] If the information collection device is a preset information collection device, the encrypted collection information is uploaded to the blockchain system.
[0010] An information processing method provided in an embodiment of this specification includes:
[0011] Acquire the encrypted collected information uploaded by the information management device; the collected information is collected by the information collection device and uploaded to the information management device;
[0012] Performing signature verification on the collected information;
[0013] The encrypted collected information that has passed the signature verification is saved in the blockchain.
[0014] An information processing method provided in an embodiment of this specification includes:
[0015] Obtaining collection information;
[0016] Encrypting the collected information to obtain encrypted collected information;
[0017] The encrypted collected information is sent to the information management device; the encrypted collected information corresponds to the information collection device identifier, and the information collection device identifier is used for the information management device to judge that the information collection device is a preset information collection device, and upload the encrypted collected information to the blockchain system.
[0018] An information processing device provided in an embodiment of this specification includes:
[0019] A collection information receiving module, used to receive the encrypted collection information sent by the information collection device;
[0020] A collection device determination module, used to determine whether the information collection device is a preset information collection device according to the information collection device identifier corresponding to the encrypted collection information;
[0021] The information uploading module is used to upload the encrypted collected information to the blockchain system if the information collection device is a preset information collection device.
[0022] An information processing device provided in an embodiment of this specification includes:
[0023] A collection information acquisition module is used to obtain the encrypted collection information uploaded by the information management device; the collection information is collected by the information collection device and uploaded to the information management device;
[0024] An information signature verification module, used to verify the signature of the collected information;
[0025] The information storage module is used to store the encrypted collected information that has passed the signature verification to the blockchain.
[0026] An information processing device provided in an embodiment of this specification includes:
[0027] An information acquisition module is used to acquire collected information;
[0028] An information encryption module, used to encrypt the collected information to obtain encrypted collected information;
[0029] An information sending module is used to send the encrypted collected information to an information management device; the encrypted collected information corresponds to the information collection device identifier, and the information collection device identifier is used by the information management device to determine that the information collection device is a preset information collection device, and upload the encrypted collected information to the blockchain system.
[0030] An information processing device provided in an embodiment of this specification includes:
[0031] at least one processor; and,
[0032] a memory communicatively connected to the at least one processor; wherein,
[0033] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0034] Receiving the encrypted collected information sent by the information collection device;
[0035] According to the information collection device identifier corresponding to the encrypted collection information, determining whether the information collection device is a preset information collection device;
[0036] If the information collection device is a preset information collection device, the encrypted collection information is uploaded to the blockchain system.
[0037] An information processing device provided in an embodiment of this specification includes:
[0038] at least one processor; and,
[0039] a memory communicatively connected to the at least one processor; wherein,
[0040] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0041] Acquire the encrypted collected information uploaded by the information management device; the collected information is collected by the information collection device and uploaded to the information management device;
[0042] Performing signature verification on the collected information;
[0043] The encrypted collected information that has passed the signature verification is saved in the blockchain.
[0044] An information processing device provided in an embodiment of this specification includes:
[0045] at least one processor; and,
[0046] a memory communicatively connected to the at least one processor; wherein,
[0047] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0048] Obtaining collection information;
[0049] Encrypting the collected information to obtain encrypted collected information;
[0050] The encrypted collected information is sent to the information management device; the encrypted collected information corresponds to the information collection device identifier, and the information collection device identifier is used for the information management device to judge that the information collection device is a preset information collection device, and upload the encrypted collected information to the blockchain system.
[0051] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0052] In the embodiments of this specification, the information collection device encrypts the collected information and transmits it to the information management device, which can effectively improve the security of the information and reduce information errors caused by network attacks. The information management device verifies the information collection device to ensure that only the collected information of the preset information collection device can be uploaded to the blockchain system, which can reduce interference information and further improve the security of the information. Therefore, the scheme in the embodiments of this specification can ensure information security from multiple angles, and thus can also improve the credibility of information in the blockchain.
[0053] In addition, in the embodiments of this specification, the information management device is used to upload the collected information obtained by the information collection device to the blockchain system, without putting the information collection device on the chain, which can reduce the cost of uploading information to the chain, and can also reduce the number of connections of devices in the blockchain system, thereby improving the working efficiency of the blockchain system. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0055] Figure 1 A schematic diagram of an application scenario of an information processing method provided in an embodiment of this specification;
[0056] Figure 2 A flowchart of an information processing method provided in an embodiment of this specification;
[0057] Figure 3 A timing diagram of an information processing method provided in an embodiment of this specification;
[0058] Figure 4 A flowchart of an information processing method provided in an embodiment of this specification;
[0059] Figure 5 A flowchart of an information processing method provided in an embodiment of this specification;
[0060] Figure 6 A schematic diagram of the structure of an information processing device provided in an embodiment of this specification;
[0061] Figure 7 A schematic diagram of the structure of an information processing device provided in an embodiment of this specification;
[0062] Figure 8 A schematic diagram of the structure of an information processing device provided in an embodiment of this specification;
[0063] Fig. 9 A schematic diagram of the structure of an information processing device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0065] The technical solutions provided in each embodiment of the present application are described in detail below in conjunction with the accompanying drawings.
[0066] Figure 1 Schematic diagram of an application scenario of an information processing method provided in an embodiment of this specification. Figure 1As shown, the overall architecture mainly includes the collected target 1, the information collection device 2, the information management device 3 and the blockchain system 4. In practical applications, the collected target 1 may include goods stored in the warehouse, data running or stored in the equipment, and other targets that can be collected by the information collection device 2; the information collection device 2 may include sensors, collectors, scanners, cameras and other devices with information collection functions; the information management device 3 may be a server-type device with an on-chain function, which can upload the information collected by the information collection device 2 to the blockchain system 4 and store the collected information in the blockchain. In the embodiment of this specification, the information collection device 2 collects the collected target 1 to obtain the collected information, encrypts the collected information and transmits it to the information management device 3, thereby improving the security of the collected information; to further ensure the security of the received information, the information management device 3 can also verify the received collected information to determine that the received collected information is sent by the information collection device 2; and the information management device 3 can receive information from multiple information collection devices 2, aggregate the collected information and upload it to the blockchain system 4, which can reduce the number of on-chain devices, reduce the on-chain cost, and reduce the number of connections of devices in the blockchain system, thereby improving the working efficiency of the blockchain system.
[0067] Figure 2 A flowchart of an information processing method provided in an embodiment of this specification. From a program perspective, the execution subject of the process can be a program installed on a server or terminal. From a functional perspective, the hardware device corresponding to the execution subject of the process can be an information management device.
[0068] like Figure 2 As shown, the process may include the following steps:
[0069] Step 202: receiving the encrypted collected information sent by the information collection device;
[0070] In actual applications, information collection equipment can usually use Bluetooth, wireless, wired and other transmission methods to transmit the collected information to the information management equipment. The collected information can also be encrypted before transmission, which can reduce the threat of network attacks to the collected information and improve the security of the information.
[0071] Step 204: judging whether the information collection device is a preset information collection device according to the information collection device identifier corresponding to the encrypted collection information;
[0072] In practical applications, the encrypted collected information may correspond to the information collection device identifier. Specifically, the encrypted collected information may include the information collection device identifier. The information collection device identifier may not be included in the encrypted collected information, but is sent to the information management device together with the encrypted collected information as additional information. The information collection device identifier can be used to point to the information collection device that sends the collected information. It can be a unique identifier of the information collection device, such as a device ID, a device serial number, a MAC address, etc., or it can be an identifier preset for the information collection device, such as identification information generated according to geographic location, sorting, etc. The specific form of the information collection device identifier is not limited in the embodiments of this specification. As long as different information collection devices can be distinguished, the information management device can determine which specific information collection device sent the encrypted collection information.
[0073] In actual applications, in order to ensure the reliability of the information source, a preset information collection device corresponding to the information management device can be set. The information management device can upload the collected information sent by the preset information collection device to the blockchain system, and the collected information sent by other devices other than the preset information collection device will not be processed on the chain, which can avoid the influence of some interference devices on the real collected information and improve the reliability of the information source. For example, some illegal users forged the information collection device and forged the collected information. Since this information collection device is forged and is a device other than the preset information collection device, even if the information management device receives the forged information sent by this information collection device, it will not upload the forged information to the blockchain system, further ensuring the security of the information.
[0074] Step 206: If the information collection device is a preset information collection device, the encrypted collection information is uploaded to the blockchain system.
[0075] In actual applications, information management devices can upload the collected information of preset information collection devices to the blockchain system to ensure the authenticity and validity of the collected information.
[0076] In the embodiments of this specification, the information collection device can be a device that directly collects or acquires information, such as cameras, sensors, scanners and other devices, and the number of such devices can be large, even up to tens of thousands. For example, each shelf in a large warehouse is usually equipped with multiple sensors or cameras for monitoring the goods in the shelf, and the number of shelves in a large warehouse is usually hundreds or thousands, so the number of information collection devices in the entire warehouse will be large. If the acquired data is directly uploaded to the blockchain, all information collection devices need to be configured as devices that can be uploaded to the blockchain, which will increase the cost, and too many devices connected to the blockchain will also affect the efficiency of blockchain in processing information. In the embodiments of this specification, the information management device can receive the collected information transmitted by multiple information collection devices, and the information management device aggregates the collected information acquired by the information collection device and then uploads it to the blockchain, which can reduce the cost of uploading to the blockchain and improve the processing efficiency of the blockchain. In addition, the information management device can only upload the collected information sent by the authorized information collection device to the blockchain system, which can further ensure the security of the uploading information.
[0077] In the embodiments of this specification, the information collection device encrypts the collected information and transmits it to the information management device, which can effectively improve the security of the information and reduce information errors caused by network attacks. The information management device verifies the information collection device to ensure that only the collected information of the preset information collection device can be uploaded to the blockchain system, which can reduce interference information and further improve the security of the information. Therefore, the scheme in the embodiments of this specification can ensure information security from multiple angles, and thus can also improve the credibility of information in the blockchain.
[0078] In addition, in the embodiments of this specification, the information management device is used to upload the collected information obtained by the information collection device to the blockchain system, without putting the information collection device on the chain, which can reduce the cost of uploading information to the chain, and can also reduce the number of connections of devices in the blockchain system, thereby improving the working efficiency of the blockchain system.
[0079] In the embodiments of this specification, the preset information collection device can be an information collection device that meets the preset conditions, or it can be an information collection device that has a preset relationship with the information management device. For example, the information collection device in the device list of the information management device is set as the preset information collection device, wherein the device list can be pre-set, or it can be generated based on the information collection device that interacts with the information management device; for example, a certain model of information collection device is set as the preset information collection device; for example, an information collection device that meets a specific position relationship with the information collection device is set as the preset information collection device; for example, an information collection device that has a binding relationship with the information collection device is set as the preset information collection device, wherein the binding relationship can be understood as the information collection device and the information management device have authenticated each other, and information interaction is allowed between the two. It should be noted that the method for determining the pre-information collection device can be set according to actual needs, and no specific limitation is made here. In order to more clearly illustrate the scheme in the embodiments of this specification, the preset information collection device is taken as an example of an information collection device that has a binding relationship with the information collection device.
[0080] Figure 3 A timing diagram of an information processing method provided in an embodiment of this specification, such as Figure 3 As shown, the information processing method in the embodiment of this specification may include a binding phase and an information processing phase.
[0081] Among them, the binding stage mainly includes establishing a binding relationship between the information collection device and the information management device. The information management device can perform on-chain processing on the collected information of the information collection device with which it has a binding relationship. The specific binding process may include: the information collection device can send a pre-agreed first binding code to the information management device, the information management device verifies the received first binding code, and after the verification is passed, it can send a second verification code that complies with predetermined rules to the information collection device, the information collection device can verify the second verification code, and if the verification is passed, a binding relationship between the two is established.
[0082] In the information processing stage, the information collection device that has established a binding relationship with the information management device encrypts the collected information and transmits the encrypted collected information to the information management device, which then uploads the received encrypted collected information to the blockchain system. The information collection device can use an asymmetric encryption method to encrypt the collected information and broadcast the public key to the information management device for the information management device to verify the encrypted collected information.
[0083] In the embodiments of this specification, a key mechanism can be used to encrypt the collected information. Specifically, asymmetric key technology can be used. Based on cryptographic algorithms, each information collection device and information management device can have two independent keys, one is a public key and the other is a private key. The public key and the private key are mathematically related. The public key can be used to encrypt a piece of information or verify a digital signature, and the private key can be used to decrypt information or create a digital signature. In practical applications, the public key cannot be reversed to obtain the private key, so the public key can be made public without worrying about the security of the information, while the private key must be properly kept and must not be disclosed. It is usually kept by the owner of the private key. The verification of information can be a private key processing a piece of information to obtain a data signature. Anyone can use the public key to verify whether the signature belongs to the signer and whether it has not been tampered with. Using a private key signature can prevent the information from being tampered with.
[0084] In the embodiment of the specification, before receiving the encrypted collected information sent by the information collection device, the following may also be included:
[0085] Receiving a binding request sent by the information collection device;
[0086] Based on the binding request, the binding relationship with the information collection device is established.
[0087] In actual applications, establishing a binding relationship between information management devices and information collection devices can effectively prevent the information management devices from receiving interfering collection information. For example, when an illegal user launches a network attack on an information management device, false information is transmitted to the information management device through a virtual or illegally connected information collection device. Since the information management device does not establish a binding relationship with such information collection devices, it will not upload the information sent by such information collection devices to the blockchain system, thereby ensuring that the information uploaded to the blockchain system is reliable.
[0088] The binding request may include a first binding code, and establishing a binding relationship with the information collection device based on the binding request may specifically include:
[0089] Determining whether the first binding code is the same as a preset binding code;
[0090] If the first binding code is the same as the preset binding code, the information collection device identifier of the information collection device is determined as the preset information collection device identifier; the preset information collection device identifier is an identifier corresponding to the preset information collection device and used to distinguish different preset information collection devices.
[0091] In the embodiments of this specification, the information management device can establish a binding relationship with the information collection device by obtaining a first binding code from the information collection device. In actual applications, the information collection device can send the first binding code to the information management device by operating the operation panel of the information collection device, or by scanning a QR code, barcode or other code image presented by the information management device. The information management device can also obtain the first binding code by scanning a QR code, barcode or other code image presented by the information management device. The specific form is not limited here, as long as the information management device can obtain the first binding code sent by the information collection device. In actual applications, when the information management device establishes a binding relationship with the information collection device, a binding code can be agreed upon, which can also be called a preset binding code. The information collection device sends the first binding code to the information management device, and the information management device can determine whether the received binding code is the same as the preset binding code. If they are the same, a binding relationship can be established with the information collection device.
[0092] Among them, the first binding code can be in various forms such as numbers, text, and symbols, and can also include information that represents the identity characteristics of the information collection device, such as the device name, device model, etc. For example, the preset binding code is "113355", and the information collection device can send "113355" to the information management device. The information management device determines that the information collection device sends the first binding code that is the same as the preset binding code, and then determines that a binding relationship can be established with the information collection device. For another example, the first binding code includes the identity of the information collection device, such as the device number "adc...", and the preset binding code can include the identity of all or part of the bindable devices. For example, the preset binding code is "adc", which means that the information management device can bind with the information collection device whose first three digits of the device number are "adc". The information management device can compare the received identity of the information collection device with the preset identity of the bindable device. If the preset identity of the bindable device contains the received identity of the information collection device, it means that the first binding code is the same as the preset binding code, and then it is determined that a binding relationship can be established with this information collection device. It should be noted that the above content is only an example of the first binding code and is not intended to be limiting. The first binding code can be set according to actual needs as long as it can be used to determine whether the information collection device has the authority to bind to the information management device.
[0093] In the embodiment of this specification, the preset information collection device identifier may be a device identifier corresponding to the preset information collection device, and the determining whether the information collection device is the preset information collection device may specifically include:
[0094] Determine whether the information collection device identifier of the information collection device is the same as the preset information collection device identifier.
[0095] In the embodiment of this specification, if the information collection device information collection device identifier is the same as the preset information collection device identifier, it can be determined that the information collection device is the preset information collection device, and the information management device can upload the collection information sent by it to the blockchain system.
[0096] In actual applications, the preset information collection device identifier corresponding to the preset information collection device can be saved in the information collection device binding list. The information collection device binding list can record the preset information collection device identifier corresponding to the preset information collection device, or the information collection device identifier of all information collection devices that have a binding relationship with the information management device. When determining whether the information collection device is the preset information collection device, the information collection device identifier corresponding to the encrypted collection information can be compared with the content in the information collection device binding list. If this information collection device identifier exists in the list, it means that the information collection device is the preset information collection device.
[0097] In order to further improve the binding relationship and ensure the security of information, after determining the information collection device identifier of the information collection device as the preset information collection device identifier, the method may further include:
[0098] According to a preset rule, generating a second binding code according to the first binding code;
[0099] The second binding code is sent to the information collection device, and the second binding code is used by the information collection device to verify the information management device.
[0100] In the embodiments of this specification, the information management device can also generate a second binding code according to the first binding code according to the preset rules, and feed it back to the information collection device, so that the information collection device can verify the information management device to determine that the information management device is the information management device that received the first binding code, and adopt a two-party verification method to ensure the legitimacy of the two parties who establish the binding relationship. For example, the information management device can add specific information to the first binding code to form a second binding code, and send it to the information collection device. Since the first binding code is sent by the information collection device to the information management device, the information collection device that receives the second binding code can verify the information management device by judging whether the second binding code contains the first binding code previously sent to the information management device. If the second binding code contains the first binding code previously sent to the information management device, it means that the information management device is the device that the information collection device wants to transmit information, and can establish a binding relationship with the information management device so that the collected information can be transmitted to the information management device later. The preset rule can also be a preset algorithm, such as calculating the first binding code and the preset value according to the preset operation rule to obtain the second binding code. After receiving the second binding code, the information collection device can perform an inverse operation to determine that the information management device is the information management device that received the first binding code, and so on. It should be noted that the preset rules in the embodiments of this specification can be set according to actual needs, and the specific form is not limited here, as long as it can be used by the information collection device to verify the information management device and complete the verification of both parties.
[0101] In the embodiment of this specification, after receiving the second verification code, the information collection device can also feedback information indicating successful or unsuccessful binding to the information management device, so that the information management device can determine whether the binding with the information collection device is successful. If the information management device does not receive or does not receive the information indicating successful binding feedback from the information collection device within a preset time period, it can be determined that the information management device rejected the binding or there are some problems in the binding process. At this time, the information management device will not upload the collected information sent by the information collection device to the blockchain system.
[0102] In actual applications, during the binding process, the information management device can also initiate a binding request to the information collection device, and the information collection device feeds back feedback information to the information management device based on the binding request. The feedback information can include information representing the binding request and information representing the device identifier corresponding to the information collection device. The information management device establishes a binding relationship with the information collection device based on the feedback information. During the binding process, the initiator of the binding request can be set according to actual needs, and is not specifically limited here.
[0103] In the embodiments of this specification, the content of the identity identification of the information collection device that has a binding relationship with the information management device can be saved in the information management device and / or the blockchain. Before uploading the collected information to the blockchain system, the content of the identity information of the information collection device in the collected information can be compared with the content of the identity identification of the information collection device that has a binding relationship with the information management device saved in the information management device and / or the blockchain to determine whether the collected information is sent by the device that has a binding relationship with the information management device. When the content of the identity identification of the information collection device that has a binding relationship with the information management device is saved in the blockchain, the collected information can also be stored in the blockchain corresponding to the content according to the content, so as to facilitate subsequent search for the collected information.
[0104] To further ensure the security of the information uploaded to the blockchain, the information management device may also perform signature verification on the collected information before uploading it to the blockchain. Specifically, before uploading the encrypted collected information to the blockchain system, the following steps may also be performed:
[0105] Obtaining the information collection device identification of the information collection device;
[0106] Based on the information collection device identifier, searching for a public key corresponding to the information collection device;
[0107] Based on the public key, signature verification is performed on the encrypted collected information to determine whether the encrypted collected information is transmitted from the information collection device to the information management device;
[0108] If the signature verification is passed, the encrypted collection information is uploaded to the blockchain system.
[0109] In the embodiments of this specification, the information collection device can generate a public-private key pair, and the encrypted collection information can be information processed by using the private key signature of the information collection device. The information collection device can broadcast the public key to the information management device. Therefore, before uploading the collection information to the blockchain, the information management device or the server can also determine the public key corresponding to the information collection device based on the device identification of the information collection device, and use the public key to perform signature verification on the encrypted collection information, which can be used to determine whether the encrypted collection information received by the information management device is sent by the information collection device that sent the encrypted collection information, thereby further improving the reliability of the source of the encrypted collection information.
[0110] In the embodiments of this specification, the information management device can also generate a public-private key pair, and the information collection device can receive the public key broadcast by the information management device. The information collection device can sign the acquired collection information with the private key of the information collection device itself, and then encrypt it with the public key of the received information management device to obtain the encrypted collection information with the signature; after the information management device receives the encrypted collection information, it can decrypt the encrypted collection information with the private key of the information management device itself to obtain the decrypted collection information, and can also use the public key of the information collection device to verify the signature, to verify whether the collection information is sent by the information collection device, and whether it has been tampered with. And because the collection information is encrypted and processed with the public key of the information management device, only the private key of the information management device can decrypt it. Even if the encrypted collection information is stolen by an illegal user, the illegal user cannot obtain the original collection information, and the information can also be guaranteed not to be leaked.
[0111] To further ensure the security of the acquired information, in the embodiment of this specification, before uploading the encrypted collected information to the blockchain system, the following steps may also be included:
[0112] Obtaining the timestamp of the encrypted collected information;
[0113] Determine whether a time difference between the time information represented by the timestamp and the time when the information management device obtains the timestamp is less than or equal to a preset time difference;
[0114] If the time difference between the time information represented by the timestamp and the time when the information management device obtains the timestamp is less than or equal to the preset time difference, the encrypted collection information is uploaded to the blockchain system.
[0115] In the embodiments of this specification, the information collection device can also add a timestamp to the acquired information, and the information management device can ensure the security of the information by verifying the timestamp. For example, the information collection device acquires information once every 10 minutes and sends the information to the information management device, so that the information management device can receive information from this information collection device once every 10 minutes. When the time information represented in the timestamp of the acquisition information and the time difference between the timestamp acquired by the information management device is greater than 10 minutes, it means that this acquisition information is previous information, which may be repeatedly processed information, or it may be information of network attacks such as replay attacks by illegal users. The information management device can filter out, block or delete this type of information, and not upload this information to the blockchain system, so as to avoid uploading information tampered or forged by illegal users to the blockchain, thereby ensuring that the information in the blockchain system is real information and also ensuring information security.
[0116] In the embodiments of this specification, the collected information received by the information management device may include the information collection device identifier corresponding to the information collection device that obtains the collected information. The information collection device identifier may also be sent to the information management device together with the collected information as additional information. The information management device may set the management relationship between the collected information and the information collection device. In actual applications, there may be multiple information management devices. The collected information obtained by multiple information management devices may be saved in the same blockchain system. To achieve the traceability of the collected information, the information management device may also be set with a device identifier. The collected information uploaded by the information management device may be determined based on this identifier. In the embodiments of this specification, the information management device may be regarded as a node of the blockchain system, and the method may also include:
[0117] Obtaining a hash value of the on-chain data generated according to the encrypted collected information;
[0118] Generate association relationship data between the hash value, the information collection device identifier and the information management device identifier; the information management device identifier is an identifier corresponding to the information management device and used to distinguish different information management devices;
[0119] The association relationship data is stored.
[0120] In practical applications, when information is saved to the blockchain, a hash value corresponding to the information can be generated, and the hash value can be stored in the corresponding block. The association relationship data stored in the embodiments of this specification may include the association data between the information collection device identifier and the information management device identifier. After obtaining new collection information, the new collection information can also be stored in the block pointed to by the information collection device identifier corresponding to the information collection device that obtained this information according to the association relationship, so that the collection information can be classified and stored according to the collection device; similarly, when there are multiple information management devices, the information management device identifier corresponding to the information management device can also be pointed to different blocks, and the collection information obtained by different information management devices can be saved in the corresponding blocks.
[0121] In actual applications, information can also be stored by creating a snapshot library, creating an information collection device snapshot library. For example, the information collection device identifier of the information collection device can point to the collection device snapshot library in the blockchain system, and the collection device snapshot library stores identifiers representing all information collection devices. The identifier of each information collection device can also point to a block or address that stores encrypted collection information; the information management device identifier of the information management device can point to the management device snapshot library in the blockchain system, and the management device snapshot library stores identifiers of all information management devices. The identifier of each information management device can also point to a block or address that stores identifiers of information collection devices that have a binding relationship with the information management device, and the information management device can save the encrypted collection information to the corresponding block or address.
[0122] In actual applications, the collected information can be uploaded to the blockchain system by calling smart contracts, and all records of information processing can be maintained by using smart contracts. Smart contracts can contain a variety of logical functions, which can represent the relationship between information collection devices and information management devices, the relationship between information collection devices and the public key corresponding to the encrypted collected information, and so on.
[0123] In the embodiments of this specification, the acquisition information may specifically include image information acquired by an image acquisition device, and at least one of target object information, target object quantity information, and target object position information in the image information.
[0124] In practical applications, the collected information can be image information, such as pictures, videos, etc. The image information can also be processed to identify at least one of the target information, target quantity information, and target location information contained therein. For example, a photo of goods stored on a warehouse shelf taken by a camera can be uploaded to the blockchain system as collected information, which can be used as evidence for subsequent use; in order to more clearly record the status of the goods, the photo can also be processed to identify the name, quantity, location and other information of the specific goods in the photo, and the identified information can be uploaded to the blockchain system for statistics of the goods.
[0125] In the embodiment of this specification, the information collection device may include a code scanning module, and the collected information may specifically include code information collected by the code scanning module.
[0126] In practical applications, the information collection device may include a code scanning module. For example, the information collection device may be a device with a code scanning function such as a code scanning gun. The code scanning module may identify the code information in the code image. For example, the goods stored in the warehouse are usually pasted with code images such as QR codes and bar codes. The code image may record the name, specifications, origin, manufacturer, production date and other information of the goods. Through the code scanning module, this information can be identified, and the code information in the code image can also be uploaded to the blockchain system with the help of the information management module. It should be noted that the specific form of the code image and the specific code information represented are set according to actual needs, and part or all of the information in the code information can also be uploaded to the blockchain system according to actual needs. The embodiments of this specification do not limit the above specific content, as long as it can meet the needs.
[0127] The information processing method in the embodiments of this specification can be applied to the scenario of warehouse management. Specifically, the information collection device can be a device for collecting goods information for warehouse management. The goods information can include at least one of the quantity information, name information, and location information of the goods.
[0128] The information processing method in the embodiments of this specification can also be applied to other scenarios, for example, to process the fitness equipment itself in the gym and the user information recorded in the fitness equipment, etc.
[0129] Based on the same principle, the embodiment of this specification also provides an information processing method. From the program perspective, the execution subject of the process can be a program installed on a server or terminal. From the functional perspective, the hardware device corresponding to the execution subject of the process can be a blockchain system.
[0130] like Figure 4 As shown, the process may include the following steps:
[0131] Step 402: Acquire the encrypted collected information uploaded by the information management device; the collected information is collected by the information collection device and uploaded to the information management device;
[0132] Step 404: performing signature verification on the collected information;
[0133] Step 406: Save the encrypted collected information that has passed the signature verification to the blockchain.
[0134] In the embodiments of this specification, the information management device can upload the encrypted collected information to the blockchain system. From the perspective of the blockchain system, the encrypted collected information uploaded by the information management device can be obtained, and the encrypted collected information can also be verified, thereby ensuring that the information stored in the blockchain is secure and has not been tampered with.
[0135] The signature verification process for the collected information may specifically include:
[0136] Determine the information collection device identification of the information collection device;
[0137] Based on the information collection device identifier, searching for the public key of the information collection device;
[0138] Using the public key to perform signature verification on the encrypted collected information;
[0139] If the signature verification is passed, the smart contract is called to save the encrypted collection information to the blockchain.
[0140] In the embodiments of this specification, the blockchain system can also perform signature verification on the uploaded information. To ensure the security of the information on the chain, the information that has passed the signature verification can be saved to the blockchain. Specifically, a pre-created smart contract can be used to perform signature verification, call the contract's processing function, determine the device identification of the information collection device, and then determine the public key corresponding to the information collection device. Use this public key to perform signature verification on the encrypted collection information containing the signature. If the verification passes, the smart contract can also be called to save the encrypted collection information to the blockchain.
[0141] In actual applications, smart contracts can be generated in advance, and they can include multiple logical processing functions. For example, the smart contract in the embodiments of this specification can be a contract for recording collected information, and can specifically include a logical function pointing to a data snapshot library. The data snapshot library can store relevant content of the collected information. The blockchain system can save the collected information to the corresponding data snapshot library based on the correspondence between the collected information, the information collection device, and the information management device, and can also save the public key required for signature verification in the data snapshot library; the smart contract can also include a logical function pointing to a device snapshot library, and the device snapshot library can store relevant content of the information collection device and the information management device, such as the device identification of the information collection device, the device identification of the information management device, and the binding relationship between the information collection device and the information management device, etc.
[0142] Smart contracts can also be created based on a preset smart contract template for processing collected information. The smart contract template can record the processing logic for processing collected information, which can include storage logic for storing public keys, device information of information collection devices, device information of information management devices, and collected information in the blockchain, and can also include query logic for querying stored public keys, device information of information collection devices, device information of information management devices, and collected information from the blockchain, and can also include logic for updating stored information, etc. It should be noted that in the embodiments of this specification, smart contracts can be created according to actual needs, and the specific form is not limited here, as long as it can meet the needs of information processing.
[0143] Based on the same principle, another information processing method is also provided in the embodiments of this specification. Figure 5 This is an information processing method provided in the embodiments of this specification. From a program perspective, the execution subject of the process can be a program installed on a server or terminal. From a functional perspective, the hardware device corresponding to the execution subject of the process can be an information collection device.
[0144] like Figure 5 As shown, the method may include:
[0145] Step 502: Acquire collection information;
[0146] Step 504: encrypting the collected information to obtain encrypted collected information;
[0147] Step 506: Send the encrypted collection information to the information management device; the encrypted collection information corresponds to the information collection device identifier, and the information collection device identifier is used by the information management device to determine that the information collection device is a preset information collection device, and upload the encrypted collection information to the blockchain system.
[0148] In the embodiments of this specification, the information collection device can encrypt and transmit the acquired information to the information management device so that the information management device can upload the verified information to the blockchain system. The information collection device can be a device with information collection function, such as a barcode scanner, camera, sensor, etc. It can include the same device or multiple devices.
[0149] Before sending the encrypted collected information to the information management device, the method may further include:
[0150] A binding request is sent to the information management device so that the information management device establishes a binding relationship with the information collection device.
[0151] The binding request includes a first binding code, and sending the binding request to the information management device may specifically include:
[0152] The first binding code is sent to the information management device so that the information collection device determines the information collection device identifier of the information collection device as a preset information collection device identifier.
[0153] After sending the first binding code to the information management device, the method may further include:
[0154] receiving a second binding code sent by the information management device, where the second binding code is generated by the information management device according to a preset rule based on the first binding code and is used to verify the information management device;
[0155] Determine whether the second binding code contains information representing the first binding code, and obtain a binding determination result;
[0156] If the binding determination result indicates that the second binding code includes information representing the first binding code, it is determined to establish a binding relationship with the information management device.
[0157] The method described in the embodiments of this specification may also include:
[0158] The information collection device identifier is sent to the information management device so that the information management device searches for the public key corresponding to the information collection device based on the information collection device identifier.
[0159] In actual applications, the information collection device identifier can be sent to the information management device when sending the first binding code, can also be sent when feeding back the binding success information to the information management device, can also be broadcasted together with the information collection device identifier when broadcasting the public key, etc. The specific method is not limited here, as long as the information management device can obtain it. The information management device can save the obtained information collection device identifier and establish a corresponding relationship between the information collection device identifier and the public key broadcast by the information collection device, so that the public key corresponding to the information collection device identifier can be determined according to the information collection device identifier.
[0160] After acquiring the collected information, the following steps may also be performed:
[0161] A timestamp is added to the collected information, where the timestamp represents the time when the collected information is collected, and is used by the information management device to verify the collected information.
[0162] In practical applications, an asymmetric encryption algorithm can be used to sign and encrypt the collected information. In the embodiment of this specification, timestamp information can be added to the collected information, signed using the private key of the information collection device, and the signed collected information with a timestamp can be encrypted and sent to the information management device. The information management device can use the received public key of the information collection device to verify the signature of the collected information with a timestamp. In practical applications, the information collection device can also sign the collected information and then add timestamp information, and then perform encryption processing, etc. It should be noted that the above content is only an example of the timestamp information related content for the purpose of more clearly explaining the scheme of the embodiment of this specification. In practical applications, other methods can also be used to add timestamps and obtain timestamps. The specific method is not limited here, as long as the timestamp can be used to verify the collected information.
[0163] In the embodiments of the present specification, the acquisition information may specifically include image information acquired by an image acquisition device, and at least one of target object information, target object quantity information, and target object position information in the image information.
[0164] In the embodiment of this specification, the information collection device may include a code scanning module, and the collected information may specifically include code information collected by the code scanning module.
[0165] In the embodiments of the present specification, the information collection device may be a device for collecting goods information for warehouse management, and the goods information includes at least one of quantity information, name information, and location information of the goods.
[0166] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 6 The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of the structure of an information processing device. Figure 6 As shown, the device may include:
[0167] The collected information receiving module 602 is used to receive the encrypted collected information sent by the information collection device;
[0168] The collection device determination module 604 is used to determine whether the information collection device is a preset information collection device according to the information collection device identifier corresponding to the encrypted collection information;
[0169] The information uploading module 606 is used to upload the encrypted collected information to the blockchain system if the information collection device is a preset information collection device.
[0170] Wherein, the collected information receiving module can also be used for:
[0171] Receiving a binding request sent by the information collection device;
[0172] Based on the binding request, a binding relationship with the information collection device is established.
[0173] The binding request includes a first binding code, and establishing a binding relationship with the information collection device based on the binding request may specifically include:
[0174] Determining whether the first binding code is the same as a preset binding code;
[0175] If the first binding code is the same as the preset binding code, the information collection device identifier of the information collection device is determined as the preset information collection device identifier; the preset information collection device identifier is an identifier corresponding to the preset information collection device and used to distinguish different preset information collection devices.
[0176] Wherein, the collected information receiving module can also be used for:
[0177] According to a preset rule, generating a second binding code according to the first binding code;
[0178] The second binding code is sent to the information collection device, and the second binding code is used by the information collection device to verify the information management device.
[0179] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 7 The embodiments of this specification provide corresponding to Figure 4 A schematic diagram of the structure of an information processing device. Figure 7 As shown, the device may include:
[0180] The collected information acquisition module 702 is used to obtain the encrypted collected information uploaded by the information management device; the collected information is collected by the information collection device and uploaded to the information management device;
[0181] The information signature verification module 704 is used to verify the collected information;
[0182] The information storage module 706 is used to store the encrypted collected information that has passed the signature verification to the blockchain.
[0183] The information signature verification module can be used to:
[0184] Determine the information collection device identification of the information collection device;
[0185] Based on the information collection device identifier, searching for the public key of the information collection device;
[0186] Using the public key to perform signature verification on the encrypted collected information;
[0187] If the signature verification is passed, the smart contract is called to save the encrypted collection information to the blockchain.
[0188] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 8 The embodiments of this specification provide corresponding to Figure 5 A schematic diagram of the structure of an information processing device. Figure 8 As shown, the device may include:
[0189] The information acquisition module 802 is used to acquire the collected information;
[0190] The information encryption module 804 is used to encrypt the collected information to obtain encrypted collected information;
[0191] The information sending module 806 is used to send the encrypted collected information to the information management device; the encrypted collected information corresponds to the information collection device identifier, and the information collection device identifier is used by the information management device to upload the encrypted collected information to the blockchain system when the information management device determines that the information collection device is a preset information collection device.
[0192] Wherein, the information acquisition module can also be used for:
[0193] The first binding code is sent to the information management device so that the information collection device determines the information collection device identifier of the information collection device as a preset information collection device identifier.
[0194] Wherein, the information acquisition module can also be used for:
[0195] receiving a second binding code sent by the information management device, where the second binding code is generated by the information management device according to a preset rule based on the first binding code and is used by the information collection device to verify the information management device;
[0196] Determine whether the second binding code contains information representing the first binding code, and obtain a binding determination result;
[0197] If the binding determination result indicates that the second binding code includes information representing the first binding code, it is determined to establish a binding relationship with the information management device.
[0198] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Fig. 9 A schematic diagram of the structure of an information processing device provided in an embodiment of this specification, Fig. 9The device shown can perform the above Figure 2 , Figure 4 and Figure 5 At least one of the methods shown.
[0199] when Fig. 9 The equipment described in Figure 2 When the method shown corresponds, the device 900 may include:
[0200] at least one processor 910; and,
[0201] A memory 930 in communication with the at least one processor; wherein,
[0202] The memory 930 stores instructions 920 that can be executed by the at least one processor 910. The instructions are executed by the at least one processor 910 to enable the at least one processor 910 to:
[0203] Receiving the encrypted collected information sent by the information collection device;
[0204] According to the information collection device identifier corresponding to the encrypted collection information, determining whether the information collection device is a preset information collection device;
[0205] If the information collection device is a preset information collection device, the encrypted collection information is uploaded to the blockchain system.
[0206] when Fig. 9 The equipment described in Figure 4 When the method shown corresponds, the device 900 may include:
[0207] at least one processor 910; and,
[0208] A memory 930 in communication with the at least one processor; wherein,
[0209] The memory 930 stores instructions 920 that can be executed by the at least one processor 910. The instructions are executed by the at least one processor 910 to enable the at least one processor 910 to:
[0210] Acquire the encrypted collected information uploaded by the information management device; the collected information is collected by the information collection device and uploaded to the information management device;
[0211] Performing signature verification on the collected information;
[0212] The encrypted collected information that has passed the signature verification is saved in the blockchain.
[0213] when Fig. 9 The equipment described in Figure 5When the method shown corresponds, the device 900 may include:
[0214] at least one processor 910; and,
[0215] A memory 930 in communication with the at least one processor; wherein,
[0216] The memory 930 stores instructions 920 that can be executed by the at least one processor 910. The instructions are executed by the at least one processor 910 to enable the at least one processor 910 to:
[0217] Obtaining collection information;
[0218] Encrypting the collected information to obtain encrypted collected information;
[0219] The encrypted collected information is sent to the information management device; the encrypted collected information corresponds to the information collection device identifier, and the information collection device identifier is used for the information management device to judge that the information collection device is a preset information collection device, and upload the encrypted collected information to the blockchain system.
[0220] In the embodiments of the present specification, a computer-readable medium may be provided on which computer-readable instructions are stored. The computer-readable instructions may be executed by a processor to implement the above-mentioned Figure 2 , Figure 4 and Figure 5 An information processing method corresponding to at least one of the methods shown.
[0221] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0222] The apparatus, equipment, non-volatile computer storage medium and method provided in the embodiments of this specification correspond to each other, and therefore, the apparatus, equipment, and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatus, equipment, and non-volatile computer storage medium will not be repeated here.
[0223] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0224] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0225] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or 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 cellular 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 a combination of any of these devices.
[0226] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0227] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product 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 code.
[0228] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0229] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0230] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0231] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0232] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0233] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. 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, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0234] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0235] The present application 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. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0236] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0237] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. An information processing method, comprising: The information management device receives the encrypted collected information sent by the information collection device; The information collection device includes a plurality of information collection devices; According to the information collection device identifier corresponding to the encrypted collection information, determining whether the information collection device is a preset information collection device; The preset information collection device is a device that has a binding relationship with the information management device; The binding relationship is determined after the information collection device and the information management device complete mutual authentication; If the information collection device is a preset information collection device, the encrypted collection information is uploaded to the blockchain system using the information management device; the blockchain system does not include the information collection device.
2. The method according to claim 1, before receiving the encrypted collected information sent by the information collection device, further comprising: Receiving a binding request sent by the information collection device; Based on the binding request, a binding relationship with the information collection device is established.
3. The method according to claim 2, wherein the binding request includes a first binding code, and the establishing a binding relationship with the information collection device based on the binding request specifically includes: Determining whether the first binding code is the same as a preset binding code; If the first binding code is the same as the preset binding code, the information collection device identifier of the information collection device is determined as the preset information collection device identifier.
4. According to the method of claim 3, the step of determining whether the information collection device is a preset information collection device specifically comprises: Determine whether the information collection device identifier of the information collection device is the same as the preset information collection device identifier.
5. The method according to claim 3, after determining the information collection device identifier of the information collection device as a preset information collection device identifier, further comprising: According to a preset rule, generating a second binding code according to the first binding code; The second binding code is sent to the information collection device, and the second binding code is used by the information collection device to verify the information management device.
6. The method according to claim 1, before uploading the encrypted collected information to the blockchain system, further comprises: Obtain the information collection device identification of the information collection device; Based on the information collection device identifier, searching for the public key of the information collection device; Based on the public key, signature verification is performed on the encrypted collected information to determine whether the encrypted collected information is transmitted from the information collection device to the information management device; If the signature verification is passed, the encrypted collection information is uploaded to the blockchain system.
7. The method according to claim 2, before uploading the encrypted collected information to the blockchain system, further comprises: Obtaining the timestamp of the encrypted collected information; Determine whether a time difference between the time indicated by the timestamp and the time when the information management device obtains the timestamp is less than or equal to a preset time difference; If the time difference between the time represented by the timestamp and the time when the information management device obtains the timestamp is less than or equal to the preset time difference, the encrypted collected information is uploaded to the blockchain system.
8. The method according to claim 1, further comprising: Obtaining a hash value of the on-chain data generated according to the encrypted collected information; Generate association relationship data between the hash value, the information collection device identifier and the information management device identifier; The association relationship data is stored.
9. According to the method of claim 1, the collected information specifically includes image information collected by an image acquisition device, and at least one of target object information, target object quantity information, and target object position information in the image information.
10. According to the method of claim 1, the information collection device includes a code scanning module, and the collected information specifically includes code information collected by the code scanning module.
11. According to the method of claim 1, the information collection device is a device for collecting cargo information for warehouse management, and the cargo information includes at least one of the quantity information, name information, and location information of the cargo.
12. According to the method of claim 1, the information collection device identification includes at least one of a device ID and a device serial number.
13. An information processing method, comprising: The blockchain system obtains the encrypted collection information uploaded by the information management device; The collected information is collected by the information collection device and uploaded to the information management device; the blockchain system does not include the information collection device; The information collection device is a device that has a binding relationship with the information management device; The binding relationship is determined after the information collection device and the information management device complete mutual verification; the information collection device includes multiple information collection devices; Performing signature verification on the collected information; The encrypted collected information that has passed the signature verification is saved in the blockchain.
14. According to the method of claim 13, the step of performing signature verification on the collected information specifically comprises: Determine the information collection device identification of the information collection device; Based on the information collection device identifier, searching for the public key of the information collection device; Using the public key to perform signature verification on the encrypted collected information; If the signature verification is passed, the smart contract is called to save the encrypted collection information to the blockchain.
15. An information processing method, comprising: Obtaining collection information; Encrypting the collected information to obtain encrypted collected information; Sending the encrypted collected information to the information management device; the encrypted collected information corresponds to the information collection device identifier, and the information collection device identifier is used by the information management device to upload the encrypted collected information to the blockchain system when the information management device determines that the information collection device is a preset information collection device; The preset information collection device is a device that has a binding relationship with the information management device; The binding relationship is determined after the information collection device and the information management device complete mutual verification; the information collection device includes multiple information collection devices; the blockchain system does not include the information collection device.
16. The method according to claim 15, before sending the encrypted collected information to the information management device, further comprising: A binding request is sent to the information management device so that the information management device establishes a binding relationship with the information collection device.
17. The method according to claim 16, wherein the binding request includes a first binding code, and the sending of the binding request to the information management device specifically comprises: The first binding code is sent to the information management device so that the information collection device determines the information collection device identifier of the information collection device as a preset information collection device identifier.
18. The method according to claim 17, after sending the first binding code to the information management device, further comprising: receiving a second binding code sent by the information management device, where the second binding code is generated by the information management device according to a preset rule based on the first binding code and is used by the information collection device to verify the information management device; Determine whether the second binding code contains information representing the first binding code, and obtain a binding determination result; If the binding determination result indicates that the second binding code includes information representing the first binding code, it is determined to establish a binding relationship with the information management device.
19. The method according to claim 15, further comprising: The information collection device identification is sent to the information management device so that the information management device searches for the public key of the information collection device based on the information collection device identification.
20. The method according to claim 15, after acquiring the collection information, further comprising: A timestamp is added to the collected information, where the timestamp represents the time when the collected information is collected, and is used by the information management device to verify the collected information.
21. The method according to claim 15, wherein the collected information specifically includes image information collected by an image acquisition device, and at least one of target object information, target object quantity information, and target object position information in the image information.
22. According to the method of claim 15, the information collection device includes a code scanning module, and the collected information specifically includes code information collected by the code scanning module.
23. According to the method of claim 15, the information collection device is a device for collecting cargo information for warehouse management, and the cargo information includes at least one of the quantity information, name information, and location information of the cargo.
24. An information processing device, comprising: A collection information receiving module, used to receive the encrypted collection information sent by the information collection device; The information collection device includes a plurality of information collection devices; A collection device determination module, used to determine whether the information collection device is a preset information collection device according to the information collection device identifier corresponding to the encrypted collection information; The preset information collection device is a device that has a binding relationship with the information management device; The binding relationship is determined after the information collection device and the information management device complete mutual authentication; An information uploading module is used to upload the encrypted collected information to the blockchain system using the information management device if the information collection device is a preset information collection device; the blockchain system does not include the information collection device.
25. An information processing device, comprising: The collection information acquisition module is used to obtain the encrypted collection information uploaded by the information management device; The collected information is collected by the information collection device and uploaded to the information management device; the blockchain system does not include the information collection device; The information collection device is a device that has a binding relationship with the information management device; The binding relationship is determined after the information collection device and the information management device complete mutual verification; the information collection device includes multiple information collection devices; An information signature verification module, used to verify the signature of the collected information; The information storage module is used to store the encrypted collected information that has passed the signature verification to the blockchain.
26. The device according to claim 25, wherein the information signature verification module is specifically used to: Determine the information collection device identification of the information collection device; Based on the information collection device identifier, searching for the public key of the information collection device; Using the public key to perform signature verification on the encrypted collected information; If the signature verification is passed, the smart contract is called to save the encrypted collection information to the blockchain.
27. An information processing device, comprising: An information acquisition module is used to acquire collected information; An information encryption module, used to encrypt the collected information to obtain encrypted collected information; An information sending module, used to send the encrypted collected information to the information management device; the encrypted collected information corresponds to the information collection device identifier, and the information collection device identifier is used by the information management device to upload the encrypted collected information to the blockchain system when the information management device determines that the information collection device is a preset information collection device; The preset information collection device is a device that has a binding relationship with the information management device; The binding relationship is determined after the information collection device and the information management device complete mutual verification; the information collection device includes multiple information collection devices; the blockchain system does not include the information collection device.
28. An information processing device comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Receiving encrypted collected information sent by an information collection device; the information collection device includes multiple information collection devices; According to the information collection device identifier corresponding to the encrypted collection information, determine whether the information collection device is a preset information collection device; the preset information collection device is a device that has a binding relationship with the information management device; the binding relationship is determined after the information collection device and the information management device complete mutual verification; If the information collection device is a preset information collection device, the encrypted collection information is uploaded to the blockchain system using the information management device; the blockchain system does not include the information collection device.
29. An information processing device comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Obtaining the encrypted collected information uploaded by the information management device; the collected information is collected by the information collection device and uploaded to the information management device; the blockchain system does not include the information collection device; the information collection device is a device that has a binding relationship with the information management device; the binding relationship is determined after the information collection device and the information management device complete mutual verification; the information collection device includes multiple information collection devices; Performing signature verification on the collected information; The encrypted collected information that has passed the signature verification is saved in the blockchain.
30. An information processing device comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Obtaining collection information; Encrypting the collected information to obtain encrypted collected information; Send the encrypted collection information to the information management device; the encrypted collection information corresponds to the information collection device identifier, and the information collection device identifier is used by the information management device to upload the encrypted collection information to the blockchain system when the information management device determines that the information collection device is a preset information collection device; the preset information collection device is a device that has a binding relationship with the information management device; the binding relationship is determined after the information collection device and the information management device complete mutual verification; the information collection device includes multiple information collection devices; the blockchain system does not include the information collection device.
