Block chain-based warehouse receipt pledge method and device, and medium
Through the blockchain-based warehouse receipt pledge method, warehouse receipt information is automatically generated and monitored, and the multi-sign address and image acquisition device are used to solve the problems of complex processes and difficult data traceability in traditional warehouse receipt pledge, and an efficient and secure warehouse receipt pledge process is achieved.
Patent Information
- Application Number
- CN202510348509.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2045-03-24
AI Technical Summary
In the traditional warehouse receipt pledge process, there are problems such as complex process, inefficient and tampering risks, and the data storage is scattered and difficult to trace.
The warehouse receipt pledge method based on blockchain is adopted, and the warehouse receipt information is automatically generated and monitored by generating multi-sign addresses and image acquisition devices, and the information is written into the blockchain, and the distributed ledger characteristics and encryption technology of the blockchain ensure the integrity and traceability of data.
It simplifies the warehouse receipt generation process, improves processing efficiency, ensures the authenticity and integrity of data, provides fast traceability data records, and reduces the risk of tampering.
Smart Images

Figure CN120278809A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of warehouse receipt information management, and specifically relates to a warehouse receipt pledge method, device, and medium based on blockchain. Background Art
[0002] Warehouse receipt pledge refers to a kind of pledge established with a warehouse receipt (a warehouse receipt is a certificate given by a warehousing node to an inventory node for receiving the stored goods) as the subject matter, which means that the pledgor node delivers the warehouse receipt it owns to the pledgee node as a guarantee for the creditor's rights.
[0003] In the traditional solution, some links in warehouse receipt pledge rely on manual offline processing (for example, when generating a warehouse receipt, it is usually necessary to manually fill in various goods and pledgor node information), which leads to complex processes, low efficiency, and the risk of being tampered with.
[0004] For the parts that can be processed online, due to the independence between the systems used by different nodes, the data of each link is scattered and stored in different systems. Once a problem occurs in the warehouse receipt pledge process, it is difficult to quickly trace and the process is troublesome. Summary of the Invention
[0005] To solve the above problems, this application proposes a warehouse receipt pledge method based on blockchain, including:
[0006] The warehousing node generates corresponding warehouse receipt information based on the received stored goods, and determines the corresponding pledgor node and pledgee node according to the warehouse receipt information;
[0007] Generate a first multi-signature address and a second multi-signature address through the public key of the pledgor node and the public key of the pledgee node; wherein, the first multi-signature address is in the 1-of-2 mode, and the second multi-signature address is in the 2-of-2 mode;
[0008] For the warehouse receipt information, write it into the blockchain through the second multi-signature address;
[0009] Determine the storage location information of the stored goods, and select a corresponding image acquisition device according to the storage location information to monitor the stored goods and generate goods monitoring information;
[0010] According to the information levels of different information in the goods monitoring information, select a corresponding method in the first multi-signature address or the second multi-signature address to write the goods monitoring information into the blockchain.
[0011] In one example, the warehousing node generates corresponding warehouse receipt information based on the received stored goods, and determines the corresponding pledgor node and pledgee node according to the warehouse receipt information, specifically including:
[0012] The warehousing node determines the received warehousing goods based on the warehousing and outbound information uploaded by the warehousing and outbound equipment, and determines the goods information corresponding to the warehousing goods;
[0013] Generate a warehouse receipt information according to the goods information;
[0014] Determine the owning node of the warehousing goods, and use the owning node as the corresponding pledging node;
[0015] Among all the preset pledge nodes, determine the corresponding pledge node based on the feedback of the pledging node.
[0016] In one example, for the warehouse receipt information, it is written into the blockchain through the second multi-signature address, specifically including:
[0017] Use the second multi-signature address as the target address, and send a write request for the warehouse receipt information to the blockchain;
[0018] Generate corresponding digital signatures through the private keys of the pledging node and the pledge node respectively, and sign the write request through the digital signatures respectively;
[0019] Broadcast the write request appended with the digital signature, and after verification by the consensus mechanism, write it into the blockchain.
[0020] In one example, according to the storage location information, select the corresponding image acquisition device, specifically including:
[0021] According to the storage location information, screen among all the pre-set image acquisition devices to determine the specified image acquisition device that is in the nearby area of the storage location information and has no occlusion with the storage location information;
[0022] If there is a specified image acquisition device that is not currently performing a monitoring task, select the specified image acquisition device as the corresponding image acquisition device;
[0023] If all the specified image acquisition devices are currently performing monitoring tasks, determine the current shooting range for each specified image acquisition device;
[0024] Perform simulation adjustment according to the current shooting range until the task area corresponding to the monitoring task and the storage location information can be monitored simultaneously, and determine the corresponding simulation adjustment result;
[0025] According to the simulation adjustment result, select the corresponding specified image acquisition device as the image acquisition device corresponding to the storage location information.
[0026] In one example, perform simulation adjustment according to the current shooting range until the task area corresponding to the monitoring task and the storage location information can be monitored simultaneously, and determine the corresponding simulation adjustment result, which specifically includes:
[0027] Mark the task area corresponding to the monitoring task according to the current shooting range;
[0028] Perform camera calibration on the specified image acquisition device, and determine the image position relationship between the storage location information and the current shooting range according to the calibration result;
[0029] According to the image position relationship, perform simulation adjustment on the current shooting range, translate the current shooting range, and when the task area reaches the critical boundary of the current shooting range, zoom in on the current shooting range by adjusting the focal length until the task area corresponding to the monitoring task and the storage location information are both inside the critical boundary of the current shooting range;
[0030] Determine the focal length after simulation adjustment and the translation distance during the adjustment process as the corresponding simulation adjustment degree.
[0031] In one example, select the corresponding specified image acquisition device as the image acquisition device corresponding to the storage location information according to the simulation adjustment result, which specifically includes:
[0032] Among all the specified image acquisition devices, select several specified image acquisition devices with the longest focal length after simulation adjustment to form a set of devices to be determined;
[0033] In the set of devices to be determined, for each specified image acquisition device, score according to its corresponding translation distance and the task area of the currently executed monitoring task; among them, the farther the translation distance, the more the number of task areas, and the larger the total image area of the task areas, the lower the score;
[0034] Select the specified image acquisition device with the highest score as the image acquisition device corresponding to the storage location information.
[0035] In one example, monitor the storage goods and generate goods monitoring information, which specifically includes:
[0036] Monitor the storage goods in real time and obtain the corresponding video information;
[0037] Analyze the video information to determine whether the goods status of the storage goods has changed;
[0038] If it has changed, record the video information and generate the corresponding abnormal information;
[0039] Generate goods monitoring information based on the video information and the exception information.
[0040] In one example, according to the information levels of different information in the goods monitoring information, select a corresponding method at the first multi-signature address or the second multi-signature address, and write the goods monitoring information into the blockchain. Specifically, it includes:
[0041] Determine the video information and the exception information included in the goods monitoring information; wherein, the information levels of the exception information and the video information are different;
[0042] For the video information, in each preset monitoring period, regularly write the video information into the blockchain through the first multi-signature address;
[0043] For the exception information, after generating the exception information, immediately write the exception information into the blockchain through the second multi-signature address.
[0044] On the other hand, the present application also proposes a warehouse receipt pledge device based on the blockchain, including:
[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, and the instructions are executed by the at least one processor so that the at least one processor can execute the blockchain-based warehouse receipt pledge method as described in any of the above examples.
[0048] On the other hand, the present application also proposes a non-volatile computer storage medium storing computer-executable instructions, and the computer-executable instructions are set to: the blockchain-based warehouse receipt pledge method as described in any of the above examples.
[0049] The blockchain-based warehouse receipt pledge method proposed by the present application can bring the following beneficial effects:
[0050] 1. Automatically generate warehouse receipt information based on the received stored goods, and determine relevant nodes, reducing manual intervention, simplifying the warehouse receipt generation process, and improving the processing efficiency of the warehouse receipt pledge business.
[0051] 2. Write the warehouse receipt information into the blockchain through the second multi-signature address. Through the distributed ledger feature and encryption technology of the blockchain, once the data is recorded, it is difficult to tamper with. The multi-signature address mechanism requires multiple private key signature verifications, further increasing the difficulty of tampering and ensuring the authenticity and integrity of the warehouse receipt information.
[0052] 3. Write the warehouse receipt information and goods monitoring information into the blockchain. The chain structure and timestamp characteristics of the blockchain provide complete and traceable data records. When any problem occurs, relevant information can be quickly located and queried through the blockchain to trace the entire warehouse receipt pledge process.
[0053] 4. According to the information level of the goods monitoring information, select the corresponding method to write into the blockchain at the first multi-signature address or the second multi-signature address. For low-level information, the 1-of-2 mode is relatively efficient and can quickly record information; for high-level information, the 2-of-2 mode provides higher security to ensure the reliability and integrity of important information, and realizes flexible and reasonable writing and management of data. 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 of the present application. In the drawings:
[0055] Figure 1 is a schematic flow chart of the warehouse receipt pledge method based on the blockchain in the embodiment of the present application;
[0056] Figure 2 is a schematic diagram of the warehouse receipt pledge device based on the blockchain in the embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0057] To make the purpose, technical solutions, and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0058] The following will detail the technical solutions provided by each embodiment of the present application in conjunction with the drawings.
[0059] As Figure 1 shown, the embodiment of the present application provides a warehouse receipt pledge method based on the blockchain, including:
[0060] S101: The warehousing node generates corresponding warehouse receipt information based on the received warehoused goods, and determines the corresponding pledgor node and pledgee node according to the warehouse receipt information.
[0061] The warehousing node, the pledging node, and the pledgee node are all pre - applied and admitted (among them, the pledgee node needs to pass KYC / AML verification and upload an electronic copy of the financial license to the blockchain for deposit. And node admission uses zero - knowledge proof to verify the authenticity of qualifications, protecting business privacy while meeting regulatory requirements). As nodes in the blockchain, they are capable of having the permission to write data into the blockchain. The consensus mechanism of the blockchain can be set based on different requirements, including the Proof of Work (PoW), the Proof of Stake (PoS), etc. A disaster recovery mechanism can also be set (for example, deploying an IPFS cluster to store the original monitoring video data, and the blockchain only stores the content - addressed hash. A Byzantine Fault Tolerance (BFT) backup chain can also be set to maintain basic services in case of main - chain failure) and a user interaction layer (for example, designing a zero - knowledge proof query interface to allow nodes to verify the validity of the warehouse receipt without exposing detailed information).
[0062] The warehouse receipt is a voucher for the pledging node to receive the warehoused goods from the warehousing node. The warehouse receipt information includes the information in the warehouse receipt (such as the information of the warehoused goods, the pledging node information, the pledgee node information, the timestamp information, etc.). The warehouse receipt information should also include a unique digital fingerprint (such as the SHA - 256 hash value), a smart contract address association field, a legal effect statement field, etc. It can use the RFC 3161 timestamp protocol to time - anchor the warehouse receipt to ensure the legal effect of the electronic deposit. As the owner of the warehoused goods, the pledging node, due to business needs, pledges the warehouse receipt to the pledgee node (which is usually a bank node). Based on the agreement between the pledging node and the pledgee node, one or more parties that meet the agreement provisions can go to the warehousing node to pick up the warehoused goods with the warehouse receipt.
[0063] Specifically, in the warehouse of the warehousing node, there are inbound and outbound devices. When the warehoused goods are inbound or outbound, they need to be scanned by the inbound and outbound devices, and the obtained inbound and outbound information (including outbound information and inbound information) is uploaded to the server corresponding to the warehousing node, or directly uploaded to the blockchain.
[0064] The warehousing node determines the received warehoused goods based on the inbound and outbound information, and determines the corresponding goods information of the warehoused goods according to the content included in the inbound and outbound information.
[0065] According to the goods information, the warehouse receipt information is generated. The warehouse receipt information includes at least the goods information. Of course, it is also necessary to determine the owning node of the warehoused goods, which is usually also included in the inbound and outbound information, and use the owning node as the corresponding pledging node.
[0066] Since the pledge nodes need to have certain qualifications, a number of pledge nodes are pre-set and admitted to the blockchain, or confirmed by the warehousing nodes. At this time, among all the pre-set pledge nodes, the warehousing nodes determine the corresponding pledge nodes based on the feedback from the pledgor node (for example, confirmed by the pledgor node which node is the target of its current pledge), so as to improve the warehouse receipt information and obtain complete warehouse receipt information.
[0067] S102: Generate a first multi-signature address and a second multi-signature address through the public key of the pledgor node and the public key of the pledge node; among them, the first multi-signature address is in the 1-of-2 mode, and the second multi-signature address is in the 2-of-2 mode.
[0068] A multi-signature address is an address associated with multi-signature technology, generated by multiple public keys through a specific algorithm. The multi-signature address is bound to multiple public keys and the set signature rules, and is used to implement transactions or operations that require multiple signatures or some of them to complete. For example, a deterministic multi-signature address is generated using the corresponding Key sorting standard (such as using BIP-67). At the same time, the Gnosis Safe smart contract mode is adopted to set the multi-signature verification logic, and the Shamir secret sharing scheme is used to split the private key fragments and store them in the HSM hardware security module to achieve key management.
[0069] After the multi-signature address is written into the blockchain, if the initiating node wants to perform operations related to the multi-signature address, such as reading data, etc., it can first construct a request containing the operation details and specify the multi-signature address as the sender of the request or the key address involved.
[0070] Then, according to the signature rules set by the multi-signature address, the node needs to collect enough private key signatures. The signature rule is the m-of-n mode, which means that among the n nodes generating the multi-signature address, at least m node's private key signatures are required to continue executing the operation corresponding to the request. Among them, the 1-of-2 mode means that for the multi-signature address generated by 2 nodes, at least 1 node's private key signature is required to execute the corresponding operation. The 2-of-2 mode means that for the multi-signature address generated by 2 nodes, the private key signatures of all 2 nodes are required to execute the corresponding operation. Compared with the 1-of-2 mode, the 2-of-2 mode is more strict for request verification.
[0071] After the initiating node verifies and passes the private key signature, it broadcasts it. After consensus confirmation, the operation corresponding to this request is automatically executed through the smart contract.
[0072] S103: Write the warehouse receipt information into the blockchain through the second multi-signature address.
[0073] For the warehouse receipt information, it involves the pledge rights of both the pledging node and the pledgee node, which is relatively important for both parties. Therefore, the second multi-signature address with more stringent verification is selected. Only after both nodes have no objection to the warehouse receipt information, the warehouse receipt information is written into the blockchain for storage.
[0074] Specifically, when writing, the second multi-signature address is used as the target address, and a write request for the warehouse receipt information is sent to the blockchain. Through the private keys of the pledging node and the pledgee node, corresponding digital signatures (i.e., the private key signatures mentioned above) are respectively generated, and the write request is signed by the digital signatures respectively. The write request appended with the digital signature is broadcast and written into the blockchain after being verified by the consensus mechanism.
[0075] In addition, a verification mechanism can also be set in the blockchain. When a transaction is broadcast (i.e., the broadcast of the write request for the warehouse receipt information), it is required to wait for at least 6 block confirmations to ensure irreversibility, and a rollback mechanism is set in the smart contract. When the dual-signature verification fails, the Oracle service is automatically triggered for off-chain arbitration.
[0076] S104: Determine the storage location information of the stored goods, and select a corresponding image acquisition device according to the storage location information to monitor the stored goods and generate goods monitoring information.
[0077] As a warehouse node, it may store the stored goods sent by multiple different pledging nodes at the same time. Therefore, it is necessary to determine the storage location information of the stored goods. Among them, the storage location information may include which warehouse it belongs to and which area location in the warehouse.
[0078] The warehouse node is provided with multiple image acquisition devices in the storage area (wherein, the image acquisition device is equipped with a TEE trusted execution environment, encrypts the video stream in real time (AES-256-GCM), and stores the monitoring data hash using the Merkle Patricia Trie structure to achieve fast tampering detection, thereby ensuring the security of the monitoring data). Different image acquisition devices are used to monitor different storage location information and generate goods monitoring information (which may include the monitored video information, abnormal information obtained by analyzing the video information, etc.) to prevent abnormal situations from occurring during the storage of the stored goods (such as being damaged or moved artificially). Selecting a suitable image acquisition device can make the goods monitoring information of the stored goods more accurate.
[0079] Specifically, when selecting an image acquisition device, first filter among all the pre-set image acquisition devices according to the storage location information.
[0080] As mentioned above, multiple image acquisition devices are set in the storage area, and the position coordinates of the image acquisition devices can be pre-stored, so as to determine the image acquisition devices within the nearby area (the nearby area can be a pre-set distance, such as 5 meters) of the storage position information (determine its corresponding position coordinates according to the inbound and outbound equipment). Of course, it is also necessary to determine the image acquisition devices that are not blocked from the storage position information to prevent being blocked by external objects during the monitoring process. Among them, the process of determining no blockage can be obtained through lidar point cloud analysis, constructing a three-dimensional space topology model, judging the straight-line path between the image acquisition device and the storage position information, and judging whether there are other warehousing goods on this path, so as to judge whether there is blockage.
[0081] For convenience of description, the image acquisition devices screened at this time are called designated image acquisition devices.
[0082] If there is a designated image acquisition device that is not currently performing a monitoring task, the designated image acquisition device can be directly selected as the corresponding image acquisition device to monitor the current warehousing goods.
[0083] If all designated image acquisition devices are currently performing monitoring tasks, for each designated image acquisition device, determine the current shooting range, which can be determined according to the shooting direction of the current designated image acquisition device (which can be determined according to the pan-tilt angle) and the focal length.
[0084] During the process of the image acquisition device adjusting the shooting range (for example, adjusting the shooting range by adjusting the pan-tilt angle and the focal length range), it may cause situations such as blurred images and excessive adjustment, which have a negative impact on the monitoring process of the warehousing goods in the already executed monitoring tasks.
[0085] Therefore, when selecting an image acquisition device, perform simulation adjustment according to the current shooting range of the designated image acquisition device until it can simultaneously monitor the task area corresponding to the monitoring task and the storage position information, that is, it can monitor the warehousing goods in the current new monitoring task while monitoring the already executed monitoring tasks, and complete the simulation adjustment. At this time, determine the corresponding simulation adjustment result.
[0086] According to the simulation adjustment result, select the corresponding designated image acquisition device as the image acquisition device corresponding to the storage position information. When selecting, try to select the designated image acquisition device with a smaller adjustment degree in the simulation adjustment result to reduce the negative impact of the adjustment process on the already executed monitoring tasks.
[0087] Further, when performing simulation adjustment, first, based on the current shooting range, mark the task area corresponding to the monitoring task, that is, in the two-dimensional image obtained by monitoring, mark the task area of the currently executed monitoring task (obtained from the position area of the warehousing goods of this monitoring task in the two-dimensional image).
[0088] Perform camera calibration on the specified image acquisition device. Camera calibration is the process of determining the geometric and optical parameters (including internal parameters, external parameters, etc.) and distortion coefficients of the camera (i.e., the image acquisition device). Through camera calibration, the relationship between the pixel coordinates of the camera image and the three-dimensional world coordinates can be established.
[0089] Determine the image position relationship between the storage position information and the current shooting range according to the calibration result, that is, the coordinates corresponding to the storage position information in the actual space can be converted into the coordinates in the two-dimensional image, map the storage position information to the two-dimensional image, obtain the corresponding image position relationship, and thus obtain the image position information of this storage position information in the two-dimensional image.
[0090] According to the image position relationship, perform simulation adjustment on the current shooting range. Generally speaking, when the focal length is considered to be shorter, the shooting range is larger, but the shooting accuracy is poor, which is not conducive to monitoring. Therefore, when performing simulation adjustment, first translate the current shooting range to try whether it is possible to simultaneously monitor the executed monitoring task and the current new warehousing goods.
[0091] Among them, simulation adjustment means that instead of actually adjusting the image, a virtual two-dimensional space is established. In this two-dimensional space, map the coordinates such as the current shooting range and storage position information, and then perform adjustment in this virtual two-dimensional space. Translation adjustment is to translate the current shooting range, and adjusting the focal length means keeping the center of the current shooting range unchanged, and according to the adjustment amplitude of the focal length, magnify or reduce the current shooting range by the corresponding amplitude.
[0092] If the attempt is successful, no subsequent adjustment is required. If it fails, that is, when the task area reaches the critical boundary of the current shooting range (its boundary with the current shooting range), and the adjustment of the current shooting range cannot continue by translation. At this time, magnify the current shooting range by adjusting the focal length (by shortening the focal length, the shooting range increases, that is, the current shooting range is increased) until the task area corresponding to the monitoring task and the storage position information are both inside the critical boundary of the current shooting range.
[0093] Among them, the process of translation and zooming can be repeated multiple times. For example, each time it is translated to the critical boundary, the current shooting range is zoomed in by a fixed degree, and then translation is performed to determine whether simultaneous monitoring can be achieved through translation. If it still cannot be done, the process of zooming and translation is repeated again.
[0094] At this time, determine the simulated adjusted focal length and the translation distance during the adjustment process as the corresponding simulated adjustment degree, so as to facilitate the subsequent selection of the corresponding specified image acquisition device.
[0095] Specifically, among all the specified image acquisition devices, select several specified image acquisition devices with the longest simulated adjusted focal length to form a set of devices to be determined. The longer the focal length, the smaller the corresponding shooting range, the relatively smaller the monitoring range, and the relatively clearer the image, so the less noise generated during image analysis.
[0096] In the set of devices to be determined, for each specified image acquisition device, score according to its corresponding translation distance and the task area of the currently executed monitoring task. Among them, corresponding weights are set in advance for the translation distance, the number of task areas, and the total image area of the task area. The farther the translation distance, the greater the probability of image blurring and the greater the negative impact on monitoring, so the lower the score at this time. Similarly, the more the number of task areas and the larger the total image area of the task area, the more content needs to be monitored simultaneously, the higher the load on the specified image acquisition device, and it is also easy to affect the abnormal information analyzed during monitoring, so the lower the score is also.
[0097] At this time, select the specified image acquisition device with the highest score as the image acquisition device corresponding to the stored location information, which can minimize the negative impact caused by adjusting the current shooting range and ensure the shooting quality after adjustment at the same time.
[0098] S105: According to the information levels of different information in the cargo monitoring information, select the corresponding method at the first multi-signature address or the second multi-signature address, and write the cargo monitoring information into the blockchain.
[0099] Compared with the warehouse receipt information, the strict level of the cargo monitoring information is weaker. Therefore, when writing the cargo monitoring information, the cargo monitoring information can be written in a hierarchical manner, so as to appropriately reduce the workload of the corresponding nodes.
[0100] Specifically, conduct real-time monitoring of the stored goods to obtain the corresponding video information. At this time, the video information can be used as a part of the cargo monitoring information.
[0101] Analyze the video information to determine whether the status of the warehoused goods has changed. The video analysis process can be implemented by methods such as inter-frame difference method (calculating the difference between two frames of images), deep learning models (identifying through deep learning network training models such as convolutional neural networks and recurrent neural networks), etc.
[0102] If a change occurs, record the video information, generate corresponding exception information, and use this exception information as part of the goods monitoring information. At the same time, an alarm can be issued through the alarm device set in the warehouse.
[0103] At this time, when writing the goods monitoring information into the blockchain, determine the video information and exception information included in the goods monitoring information; among them, the exception information and the video information have different information levels. Generally speaking, the exception information refers to the alarm information generated after identifying that the warehoused goods have been moved, so it is relatively more important and has a higher information level, while the video information has a lower video level. For example, a CNN-LSTM hybrid model can be established to divide the exception level (1-5 levels) through time series analysis.
[0104] At this time, for the video information, in each preset monitoring period (for example, the basic period is 24 hours, and it is automatically shortened to 1 hour when abnormal information is detected), the video information is regularly written into the blockchain through the first multi-signature address. That is, when writing, as long as one party agrees, the video information can be written. When reading, any party can also read it at any time.
[0105] For the exception information, after the exception information is generated, due to its higher information level, it is immediately written into the blockchain through the second multi-signature address, and it needs to be jointly authenticated by both parties before writing, which ensures the timeliness of both parties' access to the exception information and also ensures both parties' recognition of the exception information. Among them, the exception information can be a text description or a capture of the video information.
[0106] 1. Automatically generate warehouse receipt information based on the received warehoused goods, and determine relevant nodes, reducing manual intervention, simplifying the warehouse receipt generation process, and improving the processing efficiency of the warehouse receipt pledge business.
[0107] 2. Write the warehouse receipt information into the blockchain through the second multi-signature address. Through the distributed ledger feature and encryption technology of the blockchain, it is difficult to tamper with the data once it is recorded. The multi-signature address mechanism requires multiple private key signature verifications, further increasing the difficulty of tampering and ensuring the authenticity and integrity of the warehouse receipt information.
[0108] 3. Write the warehouse receipt information and the goods monitoring information into the blockchain. The chain structure and timestamp feature of the blockchain provide a complete and traceable data record. When any problem occurs, relevant information can be quickly located and queried through the blockchain, and the entire warehouse receipt pledge process can be traced.
[0109] 4. Write the corresponding method into the blockchain at the first multi-signature address or the second multi-signature address according to the information level of the goods monitoring information. For low-level information, the 1-of-2 mode is relatively efficient and can record information quickly; for high-level information, the 2-of-2 mode provides higher security to ensure the reliability and integrity of important information, and realizes flexible and reasonable writing and management of data.
[0110] As Figure 2 shown, an embodiment of the present application also provides a warehouse receipt pledge device based on blockchain, including:
[0111] At least one processor; and,
[0112] A memory communicatively connected to the at least one processor; wherein,
[0113] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the warehouse receipt pledge method based on blockchain as described in any one of the above embodiments.
[0114] An embodiment of the present application also provides a non-volatile computer storage medium storing computer-executable instructions, and the computer-executable instructions are set to: the warehouse receipt pledge method based on blockchain as described in any one of the above embodiments.
[0115] Each embodiment in the present application is described in a progressive manner. The same or similar parts among the embodiments can be referred to each other, and the differences between each embodiment and other embodiments are emphasized. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments.
[0116] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have beneficial technical effects similar to those of their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media are not described here again.
[0117] The above are only embodiments of the present application and are not used to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims
1. A warehouse receipt pledge method based on blockchain, characterized in that, Including: The warehousing node generates corresponding warehouse receipt information based on the received warehoused goods, and determines the corresponding pledgor node and pledgee node according to the warehouse receipt information; Generate a first multi-signature address and a second multi-signature address through the public key of the pledgor node and the public key of the pledgee node; wherein, the first multi-signature address is in a 1-of-2 mode, and the second multi-signature address is in a 2-of-2 mode; Write the warehouse receipt information into the blockchain through the second multi-signature address; Determine the storage location information of the warehoused goods, and select a corresponding image acquisition device according to the storage location information to monitor the warehoused goods and generate goods monitoring information; According to the information levels of different information in the goods monitoring information, select a corresponding method in the first multi-signature address or the second multi-signature address to write the goods monitoring information into the blockchain.
2. The method according to claim 1, characterized in that, The warehousing node generates corresponding warehouse receipt information based on the received warehoused goods, and determines the corresponding pledgor node and pledgee node according to the warehouse receipt information, specifically including: The warehousing node determines the received warehoused goods based on the inbound and outbound information uploaded by the inbound and outbound equipment, and determines the corresponding goods information of the warehoused goods; Generate warehouse receipt information according to the goods information; Determine the owning node of the warehoused goods and use the owning node as the corresponding pledgor node; Among all preset pledgee nodes, determine the corresponding pledgee node based on the feedback of the pledgor node.
3. The method according to claim 1, characterized in that, Writing the warehouse receipt information into the blockchain through the second multi-signature address specifically includes: Use the second multi-signature address as the target address and send a write request for the warehouse receipt information to the blockchain; Generate corresponding digital signatures through the private keys of the pledgor node and the pledgee node respectively, and sign the write request through the digital signatures respectively; Broadcast the write request appended with the digital signature, and after verification by the consensus mechanism, write it into the blockchain.
4. The method according to claim 1, characterized in that Selecting a corresponding image acquisition device according to the storage location information specifically includes: Screen among all pre-set image acquisition devices according to the storage location information to determine a specified image acquisition device that is in the nearby area of the storage location information and has no occlusion with the storage location information; If there is a specified image acquisition device that is not currently performing a monitoring task, select the specified image acquisition device as the corresponding image acquisition device; If all specified image acquisition devices are currently performing monitoring tasks, determine the current shooting range for each specified image acquisition device; Perform simulation adjustment according to the current shooting range until the task area corresponding to the monitoring task and the storage location information can be monitored simultaneously, and determine the corresponding simulation adjustment result; Select a corresponding specified image acquisition device according to the simulation adjustment result as the image acquisition device corresponding to the storage location information.
5. The method according to claim 4, wherein Perform simulation adjustment according to the current shooting range until the task area corresponding to the monitoring task and the storage location information can be monitored simultaneously, and determine the corresponding simulation adjustment result, specifically including: Mark the task area corresponding to the monitoring task according to the current shooting range; Calibrate the specified image acquisition device, and determine the image position relationship between the storage location information and the current shooting range according to the calibration result; According to the image position relationship, perform simulation adjustment on the current shooting range, translate the current shooting range, and when the task area reaches the critical boundary of the current shooting range, zoom in on the current shooting range by adjusting the focal length until the task area corresponding to the monitoring task and the storage location information are both inside the critical boundary of the current shooting range; Determine the focal length after simulation adjustment and the translation distance during the adjustment process as the corresponding simulation adjustment degree.
6. The method according to claim 5, wherein According to the simulation adjustment result, select the corresponding specified image acquisition device as the image acquisition device corresponding to the storage location information, specifically including: Among all the specified image acquisition devices, select several specified image acquisition devices with the longest focal length after simulation adjustment to form a set of pending devices; In the set of pending devices, for each specified image acquisition device, score according to its corresponding translation distance and the task area of the currently executed monitoring task; the farther the translation distance, the more the number of task areas, and the larger the total image area of the task areas, the lower the score; Select the specified image acquisition device with the highest score as the image acquisition device corresponding to the storage location information.
7. The method according to claim 1, characterized in that, Monitor the warehoused goods to generate goods monitoring information, specifically including: Monitor the warehoused goods in real time to obtain the corresponding video information; Analyze the video information to determine whether the goods status of the warehoused goods has changed; If it has changed, record the video information and generate the corresponding abnormal information; Generate goods monitoring information according to the video information and the abnormal information.
8. The method according to claim 7, wherein According to the information levels of different information in the goods monitoring information, select the corresponding method at the first multi-signature address or the second multi-signature address to write the goods monitoring information into the blockchain, specifically including: Determine the video information and the abnormal information included in the goods monitoring information; among them, the information level of the abnormal information is different from that of the video information; For the video information, in each preset monitoring period, regularly write the video information into the blockchain through the first multi-signature address; For the abnormal information, immediately write the abnormal information into the blockchain through the second multi-signature address after the abnormal information is generated.
9. A blockchain-based warehouse receipt pledge device, characterized in that, Including: At least one processor; And, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the blockchain-based warehouse receipt pledge method described in any one of claims 1 to 8.
10. A non-volatile computer storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions are set to the blockchain-based warehouse receipt pledge method described in any one of claims 1 to 8.
Citation Information
Patent Citations
XAdEs-based multi-user electronic voucher and implementation method
CN104158662A
Multi-target active recognition tracking and monitoring method
CN105407283A
Block chain warehouse receipt generating and updating method, device and equipment
CN111930754A
Multi-signature transaction method, computer equipment and storage medium
CN113205336A
Abnormal data detection method based on multi-party security computing and related equipment
CN117318950A