Article storage method, device, equipment and readable storage medium
Through blockchain application system and consensus algorithm, decentralized management of IoT containers is realized, solving the problem of data susceptibility to modification and item loss and theft caused by the centralized structure of IoT containers, and improving the credibility and security of item storage sex.
Patent Information
- Application Number
- CN202310847810.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2043-07-11
AI Technical Summary
Existing IoT containers have a centralized structure, and data is easily modified by the terminal, resulting in the risk of loss or stolen valuables and an incalculable loss.
The blockchain application system is adopted to authenticate the credibility of item characteristics through periodic feature data collection and consensus algorithms, real-time perception is realized.
Enhance the accuracy of the status supervision of containers and items in containers, reduce the risks of loss and theft, and ensure the trusted storage and transmission of items.
Smart Images

Figure CN116739456B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of trusted container storage in an Internet of Things environment, and in particular to an article storage method, device, equipment and readable storage medium Background Art
[0002] IoT containers are widely used in daily life, such as logistics transport vehicles, special express cabinets, confidential delivery, and valuables display cabinets. They are mainly used to perceive the status of items in the container and the status of the container itself in real time and to handle emergencies in a timely manner. In most cases, for valuable items, the real-time credibility of the item status and container status is particularly important.
[0003] Although the IoT containers of existing technologies can provide real-time perception of the status of items in the container and the status of the container itself to a certain extent, and have a certain ability to resist risks, the containers themselves are mostly centralized structures, and the data can be easily modified at the terminal, which makes the items stored in the container subject to the risk of loss or theft, which can easily cause immeasurable losses.
[0004] Therefore, in response to the above technical problems, it is necessary to provide an item storage method, device, equipment and readable storage medium.
[0005] The information disclosed in this background technology section is only intended to enhance the understanding of the overall background of the invention and should not be regarded as an acknowledgment or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the invention
[0006] The purpose of the present invention is to provide an item storage method, device, equipment and readable storage medium, which can rely on a blockchain application system to achieve decentralized security management of items in a container, and can perceive the status of items in the container and the status of the container itself in real time.
[0007] To achieve the above purpose, the technical solution provided by the present invention is as follows:
[0008] In a first aspect, the present invention provides a method for storing items, comprising:
[0009] Based on the container application system, feature data of items stored in the container are collected periodically;
[0010] The characteristic data is uploaded to the blockchain application system, and the credibility of the characteristics of the object is authenticated based on the consensus algorithm.
[0011] In one or more embodiments, the object storage method further comprises:
[0012] The blockchain application system responds to the user's identity registration request and generates a public key and a private key bound to the user's identity.
[0013] In one or more embodiments, the container application system is based on which data of items stored in the container are periodically collected, including:
[0014] The blockchain application system responds to the user's authorization operation using the private key;
[0015] The blockchain application system determines whether the private key matches the public key bound to the corresponding user identity based on a consensus algorithm;
[0016] If so, the container application system periodically collects characteristic data of the items stored in the container in response to the user's collection interval setting operation.
[0017] In one or more embodiments, uploading the feature data to the blockchain application system and authenticating the credibility of the feature of the item based on a consensus algorithm includes:
[0018] Based on the feature data, establishing a first feature vector;
[0019] The blockchain application system responds to the user's setting operation of the item parameters;
[0020] The blockchain application system averages the first feature vector and generates a second feature vector in combination with the item parameters;
[0021] Based on the evidence consensus algorithm and / or the intelligent consensus algorithm, the credibility of the second feature vector is authenticated.
[0022] In one or more embodiments, the intelligent consensus algorithm is a PBFT (Ba (Da)) algorithm, where PBFT is a decentralized consensus algorithm, Da is a feature similarity deviation calculation algorithm, and Ba is a feature credibility verification interruption algorithm. If the second feature vector obtained for the nth time is The allowable deviation range is The number of interruptions that make the second characteristic vector unreliable is Z, and the obtained nth second characteristic vector is used as the evaluation basis. If
[0023]
[0024] Established,
[0025] The second eigenvector Starting from the n+1th time, there are Z interruptions, which are considered as features. The subsequent Z-order features are unreliable, otherwise, That is, characteristics The Zth feature after that is credible.
[0026] In one or more implementations, the performing credibility authentication on the second feature vector based on the evidence consensus algorithm includes:
[0027] Reading the second eigenvector and the reference vector;
[0028] If the second eigenvector is equal to the reference vector, then the second eigenvector is credible;
[0029] If the second eigenvector is not equal to the reference vector, the second eigenvector is not credible.
[0030] In one or more embodiments, the method further comprises:
[0031] If the second feature vector is not credible, the item will be removed from the chain.
[0032] In one or more embodiments, the method further comprises:
[0033] The blockchain application system performs identity binding, identity unbinding, container item off-chain, container item transfer, and container item purchase in response to user operations.
[0034] In a second aspect, the present invention provides an article storage device, comprising:
[0035] A collection module, used for periodically collecting characteristic data of items stored in the container based on the container application system;
[0036] The authentication module is used to upload the feature data to the blockchain application system and perform credibility authentication on the features of the item based on a consensus algorithm.
[0037] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the item storage method by executing the computer instructions.
[0038] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the item storage method.
[0039] Compared with the prior art, the article storage method provided by the present invention comprises: based on the container application system, periodically collecting feature data of the articles stored in the container; uploading the feature data to the blockchain application system, and performing credibility authentication on the features of the articles based on the consensus algorithm. The article storage method has the following advantages:
[0040] (1) While sensing the container and the items stored inside the container in real time, the decentralization of the item storage method is achieved based on the communication between the blockchain application system and the container application system, thereby achieving the trustworthiness of the IoT container in different business stages.
[0041] (2) Based on the blockchain application system, intelligent consensus and / or evidence storage formula are performed on the characteristics of items obtained through periodic scanning, thereby enhancing the accuracy of monitoring the status of containers and items in containers. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a schematic diagram of an application scenario of the object storage method in one embodiment of the present invention.
[0043] Figure 2 It is a schematic diagram of the process of storing items in one embodiment of the present invention.
[0044] Figure 3 It is a structural block diagram of an article storage device in one embodiment of the present invention.
[0045] Figure 4 It is a structural block diagram of an electronic device in one embodiment of the present invention.
[0046] Figure 5 It is a schematic diagram of the architecture of a specific embodiment of an implementation mode of the present invention.
[0047] Figure 6 It is a diagrammatic representation of a container in a specific embodiment of an implementation manner of the present invention. DETAILED DESCRIPTION
[0048] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation modes.
[0049] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.
[0050] In order to facilitate understanding of the technical solutions of the present application, the technical terms that may appear in the present invention are first explained in detail below.
[0051] On-chain: Information is agreed upon by multiple distributed nodes in the blockchain application control system and written into the ledgers of each branch node. The ledger is in the form of a blockchain, so it is called on-chain.
[0052] Off-chain: Multiple distributed nodes in the blockchain application control system once again reach a consensus that the information previously uploaded to the chain is invalid; that is, the previously agreed information is false.
[0053] PBFT (Practical Byzantine Fault Tolerance): It is a state machine replica replication algorithm, that is, the service is modeled as a state machine, and the state machine is replicated on different nodes in the distributed system. Each replica of the state machine saves the state of the service and also implements the operation of the service. The set of all replicas is represented by the capital letter R, and each replica is represented by an integer from 0 to |R|-1. For the convenience of description, assume that |R|=3f+1, where f is the maximum number of replicas that may fail. Although there can be more than 3f+1 replicas, additional replicas cannot improve reliability except for reducing performance.
[0054] Blockchain: It is a chain of multiple blocks. Each block stores certain information, and they are connected into a chain in the order of their generation. This chain is stored in all servers. As long as there is one server in the entire system that can work, the entire blockchain is safe. These servers are called nodes in the blockchain system, and they provide storage space and computing power support for the entire blockchain system. If you want to modify the information in the blockchain, you must obtain the consent of more than half of the nodes and modify the information in all nodes. These nodes are usually in the hands of different entities, so it is extremely difficult to tamper with the information in the blockchain. Compared with traditional networks, blockchain has two core characteristics: one is that data is difficult to tamper with, and the other is decentralization. Based on these two characteristics, the information recorded in the blockchain is more authentic and reliable, which can help solve the problem of people's distrust of each other.
[0055] GPRS (general packet radio service): A mobile cellular access technology that uses the GSM infrastructure to provide packet data services at rates up to 100 kbit / s. GPRS uses radio resources only when actually transmitting and receiving.
[0056] Internet of Things: refers to the use of various information sensors, radio frequency identification technology, global positioning system, infrared sensors, laser scanners and other devices and technologies to collect any objects or processes that need to be monitored, connected, and interacted in real time, and collect various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, location, etc. Through various possible network access, it realizes ubiquitous connection between objects and objects and between objects and people, and realizes intelligent perception, identification and management of objects and processes. The Internet of Things is an information carrier based on the Internet, traditional telecommunications networks, etc. It allows all ordinary physical objects that can be independently addressed to form an interconnected network.
[0057] Decentralization: Nodes are free to choose and decide the center. Simply put, centralization means that the center determines the nodes. Nodes must rely on the center, and nodes cannot survive without the center. In a decentralized system, anyone is a node, and anyone can become a center. No center is permanent, but phased, and no center is mandatory for nodes.
[0058] Please refer to Figure 1 , which is a schematic diagram of an application scenario of the article storage method provided by the present invention. Figure 1 In the implementation scenario shown, a user terminal 101, a container application system 102, and a blockchain application system 103 are included. Specifically, based on the Internet access channel provided by the GPRS module, the user terminal 101 establishes a communication connection with the container application system 102; the container application system 102 establishes a communication connection with the blockchain application system 103. When the blockchain application system responds to the user's identity registration request, it will generate a public key and a private key bound to the user's identity; based on the authorization of the corresponding private key, the blockchain application system 103 controls the container application system 102 to call the hardware device of the container to perform periodic data collection on the items by issuing a control command. Subsequently, the container application system 102 uploads the collected data to the blockchain application system 103, and the blockchain application system 103 generates a feature vector in combination with the item parameters set by the user terminal 101. Finally, based on the evidence consensus algorithm and / or the intelligent consensus algorithm, the feature vector is authenticated for credibility.
[0059] It should be noted that the hardware device includes but is not limited to a camera, a sensor, a spectrum lamp, a GPS module, etc., and the embodiment of the present invention does not impose any limitation on this.
[0060] It should also be noted that the user terminal 101 may include but is not limited to a desktop computer (PC), a desktop computer, a smart phone, a handheld computer, a tablet computer, a personal digital assistant (PDA), and other portable electronic devices or wearable electronic devices, wherein the user terminal 101 is installed with a computer software program that matches the item storage device provided by the method; the user terminal 101 may be connected to a communication network in a wired or wireless manner, wherein the communication network includes a combination of a local area network or a wide area network that communicates with the Internet. The embodiments of the present invention do not limit the above contents.
[0061] Please refer to Figure 2 FIG. 1 is a flow chart of an article storage method according to an embodiment of the present invention. The article storage method specifically comprises the following steps:
[0062] S201: periodically collecting characteristic data of items stored in the container based on the container application system;
[0063] It should be noted that before periodically collecting feature data of items stored in the container based on the container application system, it is also necessary to generate a public key and a private key bound to the user's identity based on the blockchain application system in response to the user's identity registration request.
[0064] It should also be noted that in the item storage method provided by the present invention, the identity registration method includes but is not limited to mobile phone verification code registration, identity card information registration, trusted platform account sharing, etc., which is not limited in the embodiments of the present invention.
[0065] For example, a user registers by sending a verification code to a mobile phone using a computer software program that matches the item storage device provided by the method. The blockchain application system responds to the user's identity registration request and sends a verification code to the corresponding mobile phone number. After the verification code is successfully verified, the blockchain application system will allocate a key pair bound to the registered mobile phone number, and the key pair includes a public key and a private key.
[0066] In an exemplary embodiment, the container-based application system periodically collects feature data of items stored in the container, including the blockchain application system responding to the user's authorization operation using the private key; the blockchain application system determines whether the private key matches the public key bound to the corresponding user identity based on a consensus algorithm; if so, the container application system responds to the user's collection interval setting operation and periodically collects feature data of the items stored in the container.
[0067] S202: Upload the feature data to the blockchain application system, and perform credibility authentication on the features of the item based on a consensus algorithm.
[0068] In an exemplary embodiment, the feature data is uploaded to the blockchain application system, and the credibility of the features of the item is authenticated based on a consensus algorithm, including: establishing a first feature vector based on the feature data; the blockchain application system responds to the user's setting operation of the item parameters; the blockchain application system averages the first feature vector and generates a second feature vector based on the item parameters; based on the evidence consensus algorithm and / or the intelligent consensus algorithm, the credibility of the second feature vector is authenticated, that is, the container data is uploaded to the chain.
[0069] Specifically, the intelligent consensus algorithm is the PBFT (Ba (Da)) algorithm, where PBFT is a decentralized consensus algorithm, Da is a feature similarity deviation calculation algorithm, and Ba is a feature credibility verification interruption algorithm.
[0070] For example, first, for all sensors except the camera, collect data for 3 minutes. For the camera, use 12 lighting combinations to take pictures of the exhibits, so as to complete the establishment of the first feature vector for each data collection module: for each first feature vector except the image data, after removing the maximum and minimum values, calculate the mean of all remaining unit values of the vector, and these means constitute the feature vector X; for the image data, extract the image features under different lighting combinations to form a 12-dimensional feature vector Z; for the values set by the user for the parameter items of the exhibits, including but not limited to: price, craftsmanship, author, material, year of manufacture, defects, beneficiaries, history, etc., form a feature vector Y. Then establish the second feature vector Vec2 = [X, Z, Y]. Let Vec2 be the initial second feature vector, Vec2 n is the current second eigenvector; for Vec2 n .X and Vec2 n .Z, using intelligent consensus algorithm on the chain, for Vec2 n .Y uses the proof consensus algorithm to go on-chain; for Vec2 n .X, Da algorithm is a conventional difference algorithm, similarity deviation = |Vec2 n .X-Vec2.X|, for Vec2 n .Z, Da algorithm is based on the common image similarity calculation method Sim(picVec1,picVec2), similarity deviation = 1-Sim(Vec2 n .Z,Vec2.X). All nodes make Ba judgments on the Da algorithm value based on the PBFT protocol, and decide whether to put the current feature data consensus on the chain.
[0071] The credibility authentication of the second feature vector based on the evidence consensus algorithm includes: reading the second feature vector and the reference vector; if the second feature vector is equal to the reference vector, the second feature vector is credible; if the second feature vector is not equal to the reference vector, the second feature vector is unreliable.
[0072] For example, all nodes need to have a consensus on Vec2.Y. First, each node has a copy of Vec2.Y as a reference vector. Each node receives a query message from other nodes, which contains all the Vec2 from .Y, the node that receives the message determines whether its Vec2.Y and Vec2 from .Y Whether the two strings are equal, if they are equal, the second feature vector from the other node is considered to be credible, otherwise, the second feature vector from the other node is considered to be unreliable.
[0073] It should be noted that if the second eigenvector is not credible, the item will be taken off-chain, that is, multiple distributed nodes in the blockchain application control system will once again agree that the information of the second eigenvector that was previously uploaded to the chain is invalid, making the previously agreed information false.
[0074] It should also be noted that the item storage method also includes the blockchain application system responding to user operations to perform identity binding, identity unbinding, container item off-chain, container item transfer, and container item purchase.
[0075] In an exemplary embodiment, the identity binding includes: the trusted IoT container device responds to the user's scanning operation, jumps to the blockchain application system's corresponding container item page, the scanning user further confirms the identity binding, and the blockchain application system binds the container item and its identity with the scanning user, and stores the relationship based on a consensus algorithm.
[0076] For example, user A wants to bind his identity to container exhibit B, so after user A scans the container with his mobile phone, the scanning page automatically jumps to the current container item page in the blockchain application system, where the required information related to the container exhibit can be set. Then the scanning user clicks the "Identity Binding" button on the container exhibit interface, and the blockchain application system binds the container exhibit and its identity to the scanning user, and uses the consensus algorithm to store evidence.
[0077] Specifically, the required information includes but is not limited to the category, price, material, craftsmanship, beneficiary, etc. of the items in the container.
[0078] In an exemplary embodiment, the identity unbinding includes: the blockchain application system responds to the user's authorization operation using the private key; the blockchain application system determines, based on a consensus algorithm, whether the private key matches the public key bound to the corresponding user identity; if so, the container device record to be unbound from the identity is selected, the user further confirms the unbinding and uses the private key to authorize, and the blockchain application system, based on a consensus algorithm, stores evidence that the binding relationship between the current user and the specified container item is invalid.
[0079] For example, user A wants to unbind his identity from container item B, so user A authorizes to enter the blockchain application system based on different identity registration methods, selects the corresponding container device record to be unbound, and clicks the "Unbind" button corresponding to the record. The system pops up an authorization prompt page. After the user uses the private key signature to authorize, the blockchain application system then uses the consensus algorithm to store evidence that the binding relationship between the current user and the specified container item is invalid.
[0080] In an exemplary embodiment, the container item off-chain includes: the blockchain application system responds to the user's authorization operation using the private key; the blockchain application system determines whether the private key matches the public key bound to the corresponding user identity based on a consensus algorithm; if so, based on the consensus algorithm, the authorization is invalid for the corresponding container item feature.
[0081] In an exemplary embodiment, the container item transfer includes: initiated by the container item owner, and under the premise that the owner uses the private key authorization consent, the container item that has been bound to the owner's identity is unbound, and the blockchain application system binds the unbound container item to another user identity.
[0082] In an exemplary embodiment, the container item purchase includes: based on the transfer process of the container item, the blockchain application system completes the transfer to the original owner of the container item.
[0083] Please refer to Figure 3 As shown, based on the same inventive concept as the aforementioned object storage method, an embodiment of the present invention provides an object storage device 300 , which includes a collection module 301 and an authentication module 302 .
[0084] Specifically, the collection module 301 is used to periodically collect feature data of items stored in a container based on a container application system; the authentication module 302 is used to upload the feature data to a blockchain application system and perform credibility authentication on the features of the items based on a consensus algorithm.
[0085] It should be noted that the acquisition module 301 is also used to generate a public key and a private key bound to the user's identity based on the blockchain application system in response to the user's identity registration request. The acquisition module 301 is used to periodically collect feature data of items stored in the container based on the container application system, including: the blockchain application system responds to the user's authorization operation using the private key; the blockchain application system determines whether the private key matches the public key bound to the corresponding user identity based on the consensus algorithm; if so, the container application system responds to the user's collection interval setting operation and periodically collects feature data of the items stored in the container.
[0086] It should also be noted that the authentication module is used to upload the feature data to the blockchain application system, and based on the consensus algorithm, perform credibility authentication on the features of the item, including: establishing a first feature vector based on the feature data; the blockchain application system responds to the user's setting operation on the item parameters; the blockchain application system averages the first feature vector and generates a second feature vector in combination with the item parameters; and performs credibility authentication on the second feature vector based on the evidence consensus algorithm and / or the intelligent consensus algorithm.
[0087] Specifically, the intelligent consensus algorithm is the PBFT (Ba (Da)) algorithm, where PBFT is a decentralized consensus algorithm, Da is a feature similarity deviation calculation algorithm, and Ba is a feature credibility verification interruption algorithm; the credibility authentication of the second feature vector based on the evidence consensus algorithm includes: reading the second feature vector and the reference vector; if the second feature vector is equal to the reference vector, the second feature vector is credible; if the second feature vector is not equal to the reference vector, the second feature vector is unreliable. If the second feature vector is unreliable, the item is taken off the chain.
[0088] It should also be noted that the acquisition module 301 and the authentication module are also used to cooperate to enable the blockchain application system to respond to user operations to perform identity binding, identity unbinding, container item chaining, container item dechaining, container item transfer and container item purchase.
[0089] Please refer to Figures 5 and 6 As shown, in a specific embodiment, the specific steps of the article storage method provided by the present invention are as follows:
[0090] Step 1: Based on an application program installed on a mobile phone that is compatible with the article storage method provided by the present invention, a registration request is initiated, and the mobile phone establishes a communication connection with the container application system through an Internet access channel provided by a GPRS module.
[0091] Step 2: After completing the registration, put the item into the item storage device provided by the present invention and close the container entrance, click the "Container Exhibits on Chain" button on the container, and the container application system residing on the main control board will control all the cameras, spectrum lights and other hardware devices set in the container to open, and continuously collect data for 3 minutes; Figure 6As shown, the camera is a camera module; the spectrum light is an LED multi-spectrum light strip module, which uses each spectrum in the multi-spectrum and combines the upper and lower multi-spectrum light strips. Under all combinations of the upper and lower multi-spectrum light strips, all cameras sample and take pictures of the exhibits; based on the upper and lower, the container feature values and all sensor data are sent to the blockchain application system; the blockchain application system performs feature analysis on the sensor data, establishes container exhibit features through an intelligent consensus algorithm, and establishes a mapping relationship between the container feature values and the container exhibit features. The blockchain application system uses the PBFT consensus algorithm to store this mapping relationship.
[0092] Step 3: After the user scans the code of the item storage device, he will jump to the container exhibit page in the blockchain application system. After setting the required information related to the container exhibit, the scanning user clicks the "Identity Binding" button next to the container exhibit. The blockchain application system uses the PBFT algorithm to bind the affiliation between the container exhibit and the identity of the scanning user and store the evidence.
[0093] Step 4: After the user uses the private key to authorize, he can perform operations such as identity unbinding, container item off-chain, container item transfer, and container item purchase as needed.
[0094] Please refer to Figure 4 As shown, an embodiment of the present invention further provides an electronic device 400, which includes at least one processor 401, a memory 402 (such as a non-volatile memory), a memory 403, and a communication interface 404, and the at least one processor 401, the memory 402, the memory 403, and the communication interface 404 are connected together via a bus 405. The at least one processor 401 is used to call at least one program instruction stored or encoded in the memory 402, so that the at least one processor 401 performs various operations and functions of the object storage method described in various embodiments of this specification.
[0095] In an embodiment of the present specification, the electronic device 400 may include, but is not limited to, a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile electronic device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable electronic device, a consumer electronic device, and the like.
[0096] An embodiment of the present invention further provides a computer-readable medium carrying computer-executable instructions. When the computer-executable instructions are executed by a processor, they can be used to implement various operations and functions of the item storage method described in various embodiments of this specification.
[0097] The computer-readable medium in the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0098] In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0099] 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.
[0100] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatuses, 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 a 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 generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. 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.
[0101] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of the present invention is intended to be limited by the claims and their equivalents.
Claims
1. A method for storing articles, characterized in that: include: Based on the container application system, feature data of items stored in the container are collected periodically; Uploading the feature data to the blockchain application system, and performing credibility authentication on the features of the item based on a consensus algorithm; The characteristic data is uploaded to the blockchain application system, and the credibility of the characteristics of the item is authenticated based on the consensus algorithm, including: collecting data from all sensors except the camera; for the camera, taking pictures of the exhibits with a combination of lights, so as to complete the establishment of a first feature vector for each data collection module: for each first feature vector except the image data, after removing the maximum and minimum values, the mean of all remaining unit values of the vector is calculated, and these means constitute the feature vector X; for the image data, the image features under different light combinations are extracted to form a feature vector Z; for the values set by the user for the parameter items of the exhibits, including: price, craftsmanship, author, material, year of manufacture, defects, beneficiary, history, a feature vector Y is formed; and then a second feature vector [X, Z, Y] is established; the credibility of the second feature vector is authenticated based on the evidence consensus algorithm and / or the intelligent consensus algorithm; The intelligent consensus algorithm is the PBFT (Ba (Da)) algorithm, where PBFT is a decentralized consensus algorithm, Da is a feature similarity deviation calculation algorithm, and Ba is a feature credibility verification interruption algorithm, specifically: If the second eigenvector obtained for the nth time is The allowable deviation range is The number of interruptions that make the second characteristic vector unreliable is Z, and the obtained nth second characteristic vector is used as the evaluation basis. If Established, The second eigenvector Starting from the n+1th time, there are Z interruptions, which are considered as features. The subsequent Z-order features are unreliable, otherwise, That is, characteristics The Z-th feature after that is credible; Based on the evidence consensus algorithm, the credibility of the second feature vector is authenticated, including: reading the second feature vector and the reference vector; if the second feature vector is equal to the reference vector, the second feature vector is credible; if the second feature vector is not equal to the reference vector, the second feature vector is unreliable.
2. The article storage method according to claim 1, characterized in that: The article storage method further comprises: The blockchain application system responds to the user's identity registration request and generates a public key and a private key bound to the user's identity.
3. The article storage method according to claim 2, characterized in that: The container-based application system periodically collects data on items stored in the container, including: The blockchain application system responds to the user's authorization operation using the private key; The blockchain application system determines whether the private key matches the public key bound to the corresponding user identity based on a consensus algorithm; If so, the container application system periodically collects characteristic data of the items stored in the container in response to the user's collection interval setting operation.
4. The article storage method according to claim 1, characterized in that: The method further includes: if the second feature vector is not credible, the item is removed from the chain.
5. The article storage method according to claim 1, characterized in that: The method further comprises: The blockchain application system performs identity binding, identity unbinding, container item off-chain, container item transfer, and container item purchase in response to user operations.
6. An article storage device, characterized in that: include: A collection module, used for periodically collecting characteristic data of items stored in the container based on the container application system; An authentication module, used to upload the feature data to the blockchain application system and authenticate the credibility of the features of the item based on a consensus algorithm; The characteristic data is uploaded to the blockchain application system, and the credibility of the characteristics of the item is authenticated based on the consensus algorithm, including: collecting data from all sensors except the camera; for the camera, taking pictures of the exhibits with a combination of lights, so as to complete the establishment of a first feature vector for each data collection module: for each first feature vector except the image data, after removing the maximum and minimum values, the mean of all remaining unit values of the vector is calculated, and these means constitute the feature vector X; for the image data, the image features under different light combinations are extracted to form a feature vector Z; for the values set by the user for the parameter items of the exhibits, including: price, craftsmanship, author, material, year of manufacture, defects, beneficiary, history, a feature vector Y is formed; and then a second feature vector [X, Z, Y] is established; the credibility of the second feature vector is authenticated based on the evidence consensus algorithm and / or the intelligent consensus algorithm; The intelligent consensus algorithm is the PBFT (Ba (Da)) algorithm, where PBFT is a decentralized consensus algorithm, Da is a feature similarity deviation calculation algorithm, and Ba is a feature credibility verification interruption algorithm, specifically: If the second eigenvector obtained for the nth time is The allowable deviation range is The number of interruptions that make the second characteristic vector unreliable is Z, and the obtained nth second characteristic vector is used as the evaluation basis. If Established, The second eigenvector Starting from the n+1th time, there are Z interruptions, which are considered as features. The subsequent Z-order features are unreliable, otherwise, That is, characteristics The Z-th feature after that is credible; Based on the evidence consensus algorithm, the credibility of the second feature vector is authenticated, including: reading the second feature vector and the reference vector; if the second feature vector is equal to the reference vector, the second feature vector is credible; if the second feature vector is not equal to the reference vector, the second feature vector is unreliable.
7. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the article storage method according to any one of claims 1 to 5 by executing the computer instructions.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the article storage method according to any one of claims 1 to 5.
