WO2022166557A1 - Warehouse receipt processing method based on blockchain, and warehouse receipt processing system - Google Patents

Warehouse receipt processing method based on blockchain, and warehouse receipt processing system Download PDF

Info

Publication number
WO2022166557A1
WO2022166557A1 PCT/CN2022/071811 CN2022071811W WO2022166557A1 WO 2022166557 A1 WO2022166557 A1 WO 2022166557A1 CN 2022071811 W CN2022071811 W CN 2022071811W WO 2022166557 A1 WO2022166557 A1 WO 2022166557A1
Authority
WO
WIPO (PCT)
Prior art keywords
warehouse receipt
replacement
party
warehouse
receipt
Prior art date
Application number
PCT/CN2022/071811
Other languages
French (fr)
Chinese (zh)
Inventor
闫二风
Original Assignee
支付宝(杭州)信息技术有限公司
蚂蚁区块链科技(上海)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司, 蚂蚁区块链科技(上海)有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2022166557A1 publication Critical patent/WO2022166557A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Definitions

  • This specification relates to the field of computer technology, and in particular, to a warehouse receipt processing method and a warehouse receipt processing system based on blockchain.
  • some physical goods can be temporarily stored in the warehouse of the warehousing party, and the storage vouchers returned by the warehousing party can be obtained.
  • the storage vouchers can be regarded as the codes of these physical goods.
  • a warehouse receipt such a storage document is referred to as a warehouse receipt, and an institution or individual storing physical goods at the warehousing side is referred to as a stockholder.
  • the inventory party can transfer the warehouse receipt to the resource party in exchange for resources matching the value of the warehouse receipt, and then perform some business processing on the acquired resources.
  • the subsequent inventory party needs to return the acquired resources to the resource party according to the agreement with the resource party and retrieve the warehouse receipt.
  • this manual provides a warehouse receipt processing method and warehouse receipt processing system based on blockchain.
  • the technical solutions are as follows:
  • a method for processing warehouse receipts based on blockchain is provided, which is applied to a warehouse receipt processing system, wherein the warehouse receipt processing system includes a blockchain network and a stock client client, and the blockchain A warehouse receipt replacement contract is deployed on the network to process the transaction representing the warehouse receipt replacement application event, and the processing result is stored in the blockchain network; the method includes: the client side of the inventory side reports to the blockchain network Submit the transaction for invoking the warehouse receipt replacement contract, and the transaction initiated by the inventory client side specifies the business input information required for invoking the warehouse receipt replacement contract: target warehouse receipt identifier, replacement warehouse receipt identifier; the The blockchain network executes the warehouse receipt replacement contract, matches the warehouse receipt information identified by the stockist's target warehouse receipt, and uses the right to replace the warehouse receipt to exchange at least part of the right to the matched target warehouse receipt.
  • a warehouse receipt processing system including a blockchain network and a stock client client; the blockchain network deploys a warehouse receipt replacement contract for processing a warehouse receipt replacement application event.
  • transaction the processing result is stored in the blockchain network;
  • inventory client is used by the blockchain network to submit a transaction that invokes the warehouse receipt replacement contract, and the inventory client initiates the transaction.
  • the business input information required for invoking the warehouse receipt replacement contract is specified in the transaction: target warehouse receipt ID, replacement warehouse receipt ID; the blockchain network is used to execute the warehouse receipt replacement contract and match the inventory
  • the warehouse receipt information identified by the target warehouse receipt, and the right to replace the warehouse receipt is exchanged for at least part of the right to the matched target warehouse receipt.
  • the blockchain network processes transactions representing the application event for warehouse receipt replacement based on the deployed smart contract, that is, the entire process of warehouse receipt replacement is recorded in the blockchain network, which enables the inventory party, the warehousing party and the resource party to communicate with each other.
  • the interactive data between the two parties is credible, which solves the problem of trust between the three parties; at the same time, since the inventory party can exchange the possession of the replacement warehouse receipt for the possession of the target warehouse receipt, the inventory party can use other physical goods in exchange for the target warehouse. Physical goods in the order.
  • Fig. 1a is a schematic diagram of an interaction flow of using warehouse receipts to exchange resources according to an embodiment of this specification
  • Fig. 1b is a schematic diagram of an interaction flow of using a replacement warehouse receipt to exchange a target warehouse receipt according to an embodiment of the present specification
  • FIG. 2 is a schematic diagram of a warehouse receipt processing system framework according to an embodiment of the present specification
  • FIG. 3 is a schematic diagram of another warehouse receipt processing system framework according to an embodiment of the present specification.
  • FIG. 4 is a schematic diagram of an interaction flow of a method for processing warehouse receipts based on blockchain according to an embodiment of this specification
  • FIG. 5 is a schematic diagram of an interaction flow of another blockchain-based warehouse receipt processing method according to an embodiment of this specification.
  • FIG. 6 is a schematic diagram of another warehouse receipt processing system framework according to an embodiment of the present specification.
  • FIG. 7 is a schematic diagram of an interaction flow of another blockchain-based warehouse receipt processing method according to an embodiment of this specification.
  • FIG. 8 is a schematic structural diagram of a device for configuring an apparatus according to an embodiment of the present specification.
  • first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information, without departing from the scope of the present specification.
  • word “if” as used herein can be interpreted as "at the time of” or "when” or "in response to determining.”
  • some physical goods can be temporarily stored in the warehouse of the warehousing party, and the storage vouchers returned by the warehousing party can be obtained.
  • the storage vouchers can be regarded as the codes of these physical goods.
  • a storage document is referred to as a warehouse receipt, and an institution or individual storing physical goods at the warehousing side is referred to as a stockholder.
  • the warehouse receipt can record information such as the identification of the inventory party, the identification of the warehouse party, the type of physical goods stored, the quantity and value of the physical goods stored.
  • the inventory party can transfer the warehouse receipt to the resource party in exchange for resources that match the value of the warehouse receipt. It is understandable that here, the warehouse receipt is transferred to the resource party in exchange for resources that match the value of the warehouse receipt, which can be Transfer a certain right of the warehouse receipt to the resource party, and obtain a certain right of the resource matching the value of the warehouse receipt. For example, possession, ownership, etc.
  • the right of the inventory party to the resource is only temporarily owned, not permanently owned, and the right of the resource party to the warehouse receipt is also temporarily owned. If certain conditions are met, the resource rights need to be returned to the resource party, and the right to the warehouse receipt will be retrieved at the same time. For example, when the time agreed by both parties is reached, the inventory party will return the resource rights to the resource party.
  • the inventory party needs to return the rights of the acquired resources to the resource party according to the agreement with the resource party.
  • the resource rights are returned, it is usually necessary to return a part of the resources.
  • the inventory party can retrieve the right to the warehouse receipt, and use the warehouse receipt to obtain the physical goods stored in the warehouse party from the warehouse party.
  • Figure 1a it is a flow chart of the interaction between the above three parties, in which the process of exchanging the rights of the warehouse receipts for the rights of resources by the inventory party in the figure may also be slightly different from that shown in the figure.
  • the right of the warehouse receipt is also directly sent to the resource party, and the resource party will provide the right of the resource to the stocker, and will issue the resource right that matches the value of the warehouse receipt to the stocker.
  • any party commits evil, it will have a serious impact on the entire business process.
  • the inventory party obtains the resources, it does not recognize that it has reached an exchange consensus with the resource party, and refuses to transfer The warehouse receipt rights are transferred to the resource party; for another example, the resource party refuses to return the originally agreed rights of resources to the inventory party after obtaining the warehouse receipt rights of the inventory party, etc.
  • the warehouse party stores the physical goods of the inventory party , the corresponding warehouse receipt rights are not returned. That is to say, there is the possibility of any party doing evil, and neither party can completely trust each other.
  • the event that the inventory party uses the warehouse receipt rights to exchange the resource rights from the resource party can be stored in the blockchain network, so as to avoid the problem of denial and malicious behavior by any of the three parties.
  • each warehouse receipt can also be recorded, that is, whether the warehouse receipt with the owner's conversion occurs or not, it can be recorded on the blockchain.
  • the event used to characterize the generation process of each warehouse receipt can also be recorded. Recorded in the blockchain network.
  • the blockchain network can also manage each warehouse receipt based on smart contracts. For example, when the warehousing party generates a warehouse receipt, the warehousing party can also send a request to the blockchain network, The blockchain network can call the smart contract to issue a warehouse receipt.
  • the issued warehouse receipt is an asset in the blockchain network.
  • the issued warehouse receipt can contain various information about the warehouse receipt. The owner of the warehouse receipt, the current status, whether it has been exchanged for resources, etc.
  • the above method can solve the problem of trust among the three parties: the inventory party, the warehousing party, and the resource party. That is, the interaction data between the three parties is recorded on the blockchain network, which can prevent any party from doing evil or denying it.
  • the inventory party may need to use the physical goods corresponding to the warehouse receipt before the agreed time to return the resources, but due to insufficient resources, sufficient resources cannot be returned to the resource party.
  • the physical goods corresponding to the warehouse receipt have a shelf life, and the stockholder needs to take out the physical goods corresponding to the warehouse receipt from the warehouse and process them as soon as possible, but there are not enough resources to return to the resource side in exchange for the possession of the warehouse receipt.
  • the stockist usually hopes to regain the physical goods corresponding to the warehouse receipt as soon as possible.
  • the inventory party under the circumstance that the current value of the physical goods increases a lot, for the inventory party, they usually hope to exchange the physical goods corresponding to the warehouse receipt as soon as possible, so as to use the physical goods to obtain more resources as soon as possible. For example, after the physical goods corresponding to the warehouse receipts are exchanged, they can be sold or exchanged for higher-value warehouse receipts.
  • the inventory party needs to obtain the physical goods corresponding to the warehouse receipt before the agreed time to return the resources.
  • the warehouse cannot be exchanged. Therefore, the physical goods corresponding to the warehouse receipt cannot be obtained from the warehousing party.
  • the method of "barter for goods” has been proposed, that is, the inventory party is allowed to use the rights of other warehouse receipts to replace the rights of warehouse receipts.
  • the inventory party stores some physical goods in the warehouse of the warehousing party, and obtains the target warehouse receipt.
  • the inventory party uses the target warehouse receipt to exchange resources matching the value of the target warehouse receipt from the resource party, and agrees date to return the resource.
  • the inventory party Before the scheduled return date, the inventory party needs to obtain the physical goods corresponding to the target warehouse receipt for some reasons, so the resource needs to be returned to the resource party. However, since the inventory party does not have enough resource parts to return, the inventory party can store some more physical goods to the warehouse party to obtain a new warehouse receipt. For the convenience of description, this new warehouse receipt is called a replacement warehouse receipt.
  • the inventory party can replace the target warehouse receipt with the replacement warehouse receipt, that is, replace the corresponding physical goods in the target warehouse receipt with the physical goods corresponding to the replacement warehouse receipt, so as to obtain the physical goods of the target warehouse receipt for processing.
  • the specific interaction process may be as shown in FIG. 1b, wherein the type of the first physical goods stored by the inventory party may be the same as or different from the type of the second physical goods, which is not limited in this specification.
  • the resource side in the process of exchanging the replacement warehouse receipt for the target warehouse receipt, the resource side also needs to review whether the value of the replacement warehouse receipt matches the value of the target warehouse receipt. It is understandable that the matching refers to the value of the replacement warehouse receipt.
  • the value of the target warehouse receipt should not be lower than the value of the target warehouse receipt, so that the inventory party is allowed to replace the possession right of the target warehouse receipt with the possession right of the replacement warehouse receipt.
  • the interactive process of using the replacement warehouse receipt to replace the target warehouse receipt can be recorded on the blockchain website to avoid Misbehavior or denial by either party.
  • the warehouse receipt processing system at least includes a blockchain network 210 and an inventory client 220 .
  • the blockchain network is a distributed shared ledger and database, which has the characteristics of decentralization, non-tampering, full trace, traceability, collective maintenance, openness and transparency, etc. Therefore, the data is stored in the blockchain network. Data security can be effectively guaranteed.
  • it may be a public chain network or a consortium chain network, which is not limited in this specification.
  • both the warehousing party and the resource party can be nodes in the consortium chain network, or users of the nodes, which are not limited in this specification.
  • the blockchain network is deployed with a warehouse receipt replacement contract, the warehouse receipt replacement contract is used to process the transaction representing the warehouse receipt replacement application event, and the processing result is stored in the blockchain network; wherein, the warehouse receipt replacement contract is:
  • the smart contract that executes the above transaction can be understood as a computer program agreed upon by all parties that can execute a certain transaction. Since its storage is deployed in the blockchain network, the smart contract is also immutable and completely credible. sexual.
  • the interactive flow chart when executing warehouse receipt replacement proposed in this specification specifically includes the following process steps: S301, the client side of the inventory side submits a transaction calling the warehouse receipt replacement contract to the blockchain network ;
  • the business input information required for invoking the warehouse receipt replacement contract is specified in the transaction: target warehouse receipt identifier, replacement warehouse receipt identifier; when the stockholder needs to apply for the right to replace the warehouse receipt for the right to the target warehouse receipt , the above transaction can be submitted to the blockchain network.
  • the smart contract is equivalent to a program that can be executed according to the input information
  • the inventory party can add the target warehouse receipt identifier and the replacement warehouse receipt identifier in the transaction to call the smart contract to process according to the input information. That is, the client of the inventory side, every time a warehouse receipt replacement application is required, it constructs the warehouse receipt replacement application event as a transaction and submits it to the blockchain network to call the smart contract for processing.
  • the warehouse party when creating a warehouse receipt in this manual, the warehouse party will assign a unique identifier to each warehouse receipt to identify and distinguish different warehouse receipts.
  • the warehousing party can generate a warehouse order number for each warehouse order according to the order in which each warehouse order is generated, which is used as the identifier of each warehouse order to distinguish different warehouse orders. That is, the above-mentioned replacement warehouse receipt identifier is the information used to identify the replacement warehouse receipt, and the above-mentioned target warehouse receipt identifier is the information used to identify the target warehouse receipt.
  • the smart contract can write the warehouse receipt identity in the information of the issued warehouse receipt according to the warehouse receipt identity provided by the warehousing party.
  • the blockchain network executes the warehouse receipt replacement contract, matches the warehouse receipt information identified by the target warehouse receipt of the stockist, and uses the right to replace the warehouse receipt to exchange at least part of the matched target warehouse receipt
  • the blockchain network executes the warehouse receipt replacement contract for processing.
  • the above-mentioned matching usually refers to finding the target warehouse receipts pre-released or stored in the blockchain network, that is, according to the target Warehouse receipt ID, find the warehouse receipt information of the target warehouse receipt stored in advance. Further use the right to replace the warehouse receipt to exchange at least part of the right to the matched target warehouse receipt, which may specifically be to release the associated relationship between the resource party and the target warehouse receipt, and release the inventory party from the replacement.
  • the associated relationship between the warehouse receipts establish the relationship between the resource party and the replacement warehouse receipts; at the same time, in the case of exchanging the rights to all the matched target warehouse receipts, establish the inventory party and the target warehouse.
  • the target warehouse receipt is split into the exchanged part of the warehouse receipt and the unexchanged part of the warehouse receipt, and the inventory party and the unexchanged part of the warehouse receipt are established.
  • the association relationship of the exchanged part of the warehouse receipts establishes the association relationship between the resource party and the unexchanged part of the warehouse receipts.
  • the inventory party when the inventory party submits the transaction to invoke the warehouse receipt replacement contract, it is usually because the inventory party has replaced the rights of the target warehouse receipt with the resource party to obtain the corresponding resource rights.
  • this process can also be stored on the blockchain.
  • a specific method can be that the warehouse receipt replacement contract is also used to process transactions representing the warehouse receipt transfer application event.
  • the specific processing method It can be that the inventory party submits a transaction representing the warehouse receipt transfer application event to the blockchain network, and the transaction also calls the warehouse receipt replacement contract.
  • the transaction may include the identification of the target warehouse receipt.
  • the blockchain network can transfer the right of the stocker's target warehouse receipt to the resource side; specifically, it can be to release the association between the stocker and the target warehouse receipt, and establish the resource side and the resource side. Describe the relationship between the target warehouse receipts.
  • the resource party can transfer the rights of the resource matching the value of the target warehouse receipt to the inventory party, and upload the resource quantity and transfer result to the blockchain network for storage, and the corresponding smart contract can be stored in the target warehouse.
  • the corresponding resource and exchanged status are recorded in the warehouse receipt.
  • the inventory party has negotiated with the resource party in advance, and the resource party and the agreed inventory party can exchange the right to replace the warehouse receipt for the right of the target warehouse receipt, so the blockchain network can execute the warehouse receipt.
  • a single replacement contract is used to realize the above process, that is, directly use the right to replace the warehouse receipt to exchange at least part of the right to the matched target warehouse receipt.
  • the resource party usually needs to review, that is, it needs to determine whether it agrees that the inventory party can use the right to replace the warehouse receipt in exchange for the right of the target warehouse receipt.
  • the warehouse receipt processing system may also include a resource client 230; as shown in Figure 5, in the process of executing the smart contract on the blockchain network, in exchange for at least part of the Before the right of the matched target warehouse receipt, it may further include: S302a, after monitoring the warehouse receipt replacement application event, the resource client client obtains the target warehouse receipt identifier and the replacement from the blockchain network.
  • Warehouse receipt identification and provide it to the resource party to check whether the target warehouse receipt and the replacement warehouse receipt match the value; among them, it can be outside the blockchain network, the inventory party actively contacts the resource party, so that the resource party can use the resources
  • the client side obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier from the blockchain network.
  • the resource client client obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier from the blockchain network when monitoring the execution of the warehouse receipt replacement contract by the blockchain network.
  • the resource client client can display the obtained target warehouse receipt identifier information and replacement warehouse receipt identifier information to the resource user, and the resource user can obtain the two warehouse receipts according to the obtained information.
  • the inventory party needs to replace all the rights of the target warehouse receipt with the right to replace the warehouse receipt, it can check whether the value of the replacement warehouse receipt is greater than or equal to the value of the target warehouse receipt. If the value is not enough to replace the target warehouse receipt, the audit result will be rejected.
  • the inventory party needs to use the replacement warehouse receipt to replace part of the possession of the target warehouse receipt, it can check whether the value of the replacement warehouse receipt is greater than or equal to the value of the part of the possession right that needs to be replaced by the target warehouse receipt. If so, the review result is passed. , if not, the audit result is not passed.
  • the resource side can input the audit result through the client side of the resource side, that is, the client side of the resource side can receive the audit result input by the resource side.
  • the resource party client in response to the operation of the resource party, the resource party client submits a transaction for invoking the warehouse receipt replacement contract to the blockchain network, and the transaction initiated by the resource party client specifies the resource party's The first audit result; after receiving the audit result of the resource party, the client of the resource side can construct the audit result as the first audit transaction and submit it to the blockchain network, and then the audit result can be stored in the blockchain network to avoid The resource side does evil, such as not acknowledging the audit results.
  • the blockchain network may replace at least part of the right of the matched target warehouse receipt with the right to replace the warehouse receipt based on the first audit result of the resource party.
  • the smart contract may be invoked by the blockchain network, and according to the first audit transaction, if it is determined that the resource party's audit result is passed, the relationship between the resource party and the target warehouse receipt is released.
  • the association relationship is to release the association relationship between the inventory party and the replacement warehouse receipt, and establish the association relationship between the resource party and the replacement warehouse receipt.
  • the verification result of the resource side indicates that the verification fails, a record of failing the verification will be recorded for the target warehouse receipt.
  • the audit and audit results can be stored in the blockchain network, which further improves the overall credibility.
  • the blockchain network processes the transactions representing the warehouse receipt replacement application event based on the deployed smart contract, that is, the entire process of the warehouse receipt replacement is recorded in the blockchain network, which can enable the inventory party, the warehousing party and the resource party to communicate with each other.
  • the interactive data is credible, which solves the problem of trust between the three parties; at the same time, since the inventory party can exchange the possession of the replacement warehouse receipt for the possession of the target warehouse receipt, the inventory party can use other physical goods to exchange for the target warehouse receipt. physical goods in .
  • the blockchain network may simultaneously receive transactions representing warehouse receipt replacement events, and the above-mentioned method can be implemented for the processing flow of each transaction.
  • Different transactions are distinguished by corresponding identifiers.
  • the identifiers of target warehouse receipts and replacement warrants corresponding to different warehouse receipt replacement events can be used as identifiers for different transactions, or pre-specified identifier generation rules can be used.
  • the identification of each transaction is generated to distinguish different warehouse receipt replacement transactions. This manual does not limit the identification of warehouse receipt replacement transactions.
  • an audit link of the warehousing side can also be added in the audit process, that is, as shown in Figure 6, the warehouse receipt processing system also includes the warehouse side client 240.
  • the warehousing client After monitoring the warehouse receipt replacement application event, the warehousing client obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier from the blockchain network, and provides them to the warehousing party for review. is a variety of ways.
  • a warehouse party's auditing method may be: the client side of the warehouse party obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier, and provides them to the warehousing party, so that the warehousing party can verify whether the target warehouse receipt and the replacement warehouse receipt are valuable. match;
  • the client of the warehouse side submits the second audit result to the blockchain network; wherein, the second audit result includes the audit result of the warehouse side.
  • the above-mentioned audit method is the specific judgment principle, which can be referred to the above-mentioned audit process of the resource side, and will not be described in detail here.
  • the warehousing client also reviews the value matching of the two warehouse receipts, which allows the warehousing to also participate in the review process, and the review results can also be given to the resource for reference.
  • the warehousing party as the party that stores the physical goods of the inventory party, can check the storage status of the physical goods corresponding to the warehouse receipt at any time. Therefore, another auditing method of the warehousing side can also be: the client side of the warehousing side obtains the identifier of the replacement warehouse receipt and provides it to the warehousing side, so that the warehousing side can verify whether the replacement warehouse receipt is genuine; The blockchain network submits the second audit result; the second audit result includes the audit result of the warehousing party.
  • the client of the warehousing side provides the replacement warehouse receipt identifier in the warehouse receipt replacement transaction to the warehousing side, and the warehousing side checks whether the physical goods corresponding to the replacement warehouse receipt exist in the warehouse according to the identifier. If it does not exist, the audit will not pass.
  • the warehousing client can also provide the target warehouse receipt identifier in the warehouse receipt replacement transaction to the warehousing side, and the warehousing side can check whether the physical goods corresponding to the target warehouse receipt exist in the warehouse according to the identifier, and check if it exists. Passed, if it does not exist, the review is not passed, that is, the authenticity of the target warehouse receipt is also reviewed.
  • the warehousing party can also verify the authenticity of the detailed information about the target warehouse receipt and the replacement warehouse receipt stored in the replacement transaction according to the actual situation.
  • Adding the above-mentioned method of warehousing to verify the authenticity of warehouse receipts can further improve the security of the overall process.
  • the replacement warehouse receipt replaces the target warehouse receipt successfully, it may involve transferring the physical goods corresponding to the replacement warehouse receipt to the actual storage location. For example, transfer from one warehouse to another. During this process, additional charges may arise due to the need to transfer storage locations.
  • the transfer storage location is usually managed and handled by the warehouse.
  • the warehousing party may not be able to transfer the physical goods corresponding to the replacement warehouse receipts to the actual storage location, for example, due to traffic reasons, weather reasons, etc.
  • the transfer of physical goods to the actual storage location will incur additional costs.
  • the cost of transportation, and the warehousing party cannot afford this cost, the physical goods cannot be transferred to the actual storage location.
  • an audit method for the warehousing party can also be added to the warehousing party to audit whether the physical goods corresponding to the replacement warehouse receipts are allowed to change the storage location.
  • the client of the warehousing side obtains the identifier of the replacement warehouse receipt and provides it to the warehousing side, so that the warehousing side can review whether to allow the transfer of the storage location of the physical goods corresponding to the replacement warehouse receipt;
  • the client of the warehouse side can submit the second audit result to the blockchain network; the second audit result includes the audit result of the warehouse side.
  • the warehousing party can judge whether the current objective conditions support the transfer of the storage location of the physical goods corresponding to the replacement warehouse receipt during the actual review.
  • the inventory direction has paid the cost of transferring the physical goods corresponding to the replacement warehouse receipt to the actual storage location, and the factors such as traffic and weather allow, it can be determined to pass the review, otherwise the review will fail.
  • the warehousing party can determine whether it is willing to pay the cost according to the actual cost. If it is willing, and the factors such as traffic and weather are also allowed, it will be approved. If it is not willing, and If the warehousing party does not pay the fee, it will be determined that the audit is not passed. This specification does not limit the review conditions for reviewing whether to allow the transfer of storage locations.
  • the warehousing party may perform all or part of the above-mentioned audit methods, and the instructions do not limit this.
  • the warehousing client can, in response to the operation of the warehousing, submit to the blockchain network a transaction that invokes the warehouse receipt replacement contract, and the transaction initiated by the resource client specifies the warehousing's second Audit results.
  • the blockchain network can use the right to replace the warehouse receipt to replace at least part of the right of the matched target warehouse receipt based on the first audit result of the resource party and the second audit result of the warehouse party. .
  • the above-mentioned audit performed by the warehousing party can be conducted before the audit by the resource party, after the audit by the resource party, or in parallel with the resource party, that is, the warehouse party and the resource party conduct audits independently without affecting each other. .
  • the resource party is the party that finally transfers the possession of the resource to the inventory party
  • its audit result can be used as the final determination result, that is, the warehouse party's audit can be carried out before the resource party's audit.
  • a feasible way may be that the blockchain network invokes the smart contract, and according to the second audit transaction, when it is determined that the warehousing party's audit result is passed, the warehouse receipt is replaced The application event is notified to the resource-side client.
  • the blockchain network calls the smart contract to first notify the warehouse receipt replacement application event to the warehousing client. After the warehouse has reviewed it, it will notify the resource client after the warehouse has passed the review, and the resource will then review it.
  • the resource party as the party with the right to possess the target warehouse receipt, is the final reviewer of the warehouse receipt replacement application event. After confirming that the warehousing party has passed the review, it will conduct further review. If the warehousing party fails to pass the review, no review is required. . This method saves system resources and improves audit efficiency.
  • the business information specified by the transaction submitted by the inventory party may also include replacement.
  • the quantity of goods that is, the quantity of goods that needs to be replaced from the physical goods corresponding to the target warehouse receipt using the replacement warehouse receipt.
  • the resource client can obtain the replacement from the blockchain network.
  • the quantity of goods is provided to the resource party, and the resource party can determine whether the value of the replacement goods in all the goods corresponding to the target warehouse receipt matches the value of the replacement warehouse receipt.
  • the matching principle can be that the value of the replacement warehouse receipt is greater than or equal to the value of the goods with the replacement quantity in all the goods corresponding to the target warehouse receipt, then it is matched, otherwise, it is not matched.
  • the blockchain network when the blockchain network receives the warehouse receipt replacement transaction submitted by the inventory client, it can convert the target warehouse receipt identifier and the replacement warehouse receipt identifier in the warehouse receipt replacement transaction to the target warehouse receipt and replacement respectively based on the smart contract.
  • the warehouse receipt is placed in a frozen state.
  • the blockchain network refuses to call the warehouse receipt replacement contract for other transactions of the target warehouse receipt, and the other transaction is an application for replacement with the warehouse receipt. Transactions unrelated to events. That is, when the smart contract executes the replacement transaction, it does not perform other processing on the target warehouse receipt or the replacement warehouse receipt at the same time, which avoids the problem of data confusion caused by multiple business processing on each warehouse receipt at the same time.
  • the target warehouse receipt can be released when the blockchain network receives the first audit result, that is, the resource party's audit result, and determines that the resource party's audit result is unacceptable based on the smart contract. frozen state. That is, in the case of failure to pass the review, it is determined that the replacement review process is over, so the frozen status of the target warehouse receipt can be lifted. In the case of approval, since the possession of the target warehouse receipt will be returned to the inventory party, the target warehouse receipt can be directly placed in an invalid state.
  • the frozen state of the replacement warehouse receipt can be released based on the smart contract, that is, when the replacement is determined to be successful or the replacement fails. Under all conditions, the frozen state of the target warehouse receipt is released. Because no matter whether it is approved or not, for the replacement warehouse receipt, it will still exist, but the owner may have replaced it.
  • the blockchain network can also record the agreed duration of resources occupied by each storage party by smart contracts, and record the duration of resources occupied by the storage party.
  • the two durations can be recorded when the target event is recorded.
  • the resource party refuses to use the right to replace the warehouse receipt to exchange at least part of the right to the matched target warehouse receipt.
  • the right to exchange the right of the replacement warehouse receipt for at least part of the matched target warehouse receipt is refused. That is, when the inventory party needs to return the resources to the resource party, the storage party is no longer allowed to replace the target warehouse receipt with the replacement warehouse receipt.
  • the processing result can be automatically generated, so that when the resource client and the stock client detect the processing result, the resource client and the stock client provide the processing result to the resource and stock, so that the The inventory party shall return the corresponding resources to the resource party as soon as possible in exchange for the right to the target warehouse receipt.
  • the stockholder when the current value of the physical goods corresponding to the warehouse receipt is significantly different from the value of the physical goods when the physical goods are exchanged for resources, the stockholder usually has the need to obtain the physical goods corresponding to the warehouse receipt again.
  • this embodiment proposes the following solution: in the warehouse receipt processing system, add a commodity price monitoring client, and the commodity price monitoring client may be a node on the blockchain network, or a district A user of a node on the blockchain network, that is, it can interact with the blockchain network.
  • the client terminal of the goods price monitoring party can submit a transaction for invoking the warehouse receipt replacement contract to the blockchain network whenever the condition of the goods price certificate corresponding to the physical goods corresponding to the target warehouse receipt is satisfied;
  • the business input information required when invoking the warehouse receipt replacement contract is specified in the transaction initiated by the warehouse receipt transaction: the current unit price of the physical goods corresponding to the target warehouse receipt; for example, the physical goods in storage are gold and silver.
  • the client terminal of the goods price monitoring party may be a device corresponding to a price monitoring institution such as an exchange. It can monitor the fluctuation of the value of each physical goods.
  • the monitored value is the unit price of each type of physical goods, and the unit price can be the price per unit weight, the price per unit quantity, etc.
  • the above-mentioned condition of inventory certificate of goods price can be the preset period of inventory certificate of goods price, such as the period of inventory certificate of goods price, which can be a period of one day, one week or one month.
  • the current unit price of the physical goods corresponding to the target warehouse receipt is submitted to the blockchain network.
  • the condition of the certificate of goods price can also be the change of the unit price of the physical goods, that is, once the unit price of the physical goods is changed, the unit price of the physical goods will be submitted to the blockchain network; the condition of the certificate of the goods price can also be that the physical goods are detected.
  • the unit price of the target warehouse has changed greatly, for example, when there is a big difference compared with the unit price uploaded to the blockchain network last time, the unit price of the physical goods corresponding to the target warehouse receipt is submitted to the blockchain network.
  • the way that the client of the commodity price monitoring party obtains the type of physical goods corresponding to the target warehouse receipt may be by obtaining the warehouse receipt transfer transaction stored on the blockchain network, so as to determine the identifier of each target warehouse receipt, and further The type of physical goods corresponding to each target warehouse receipt can be determined.
  • the client of the goods price monitoring party does not need to know the type of physical goods corresponding to the target warehouse receipt, and only needs to submit the current unit prices of all the monitored physical goods to the blockchain network.
  • the blockchain network executes the warehouse receipt replacement contract, compares the current unit price with the historical unit price, and obtains a comparison result;
  • the historical unit price is, when the warehouse receipt transfer application event occurs, the unit price of the physical goods corresponding to the target warehouse receipt; that is, when the inventory party transfers the rights of the target warehouse receipt to the resource party in exchange for the rights of resources with matching values, the target warehouse
  • the unit price of the physical goods corresponding to the order if the client of the stocker detects that the comparison result meets the preset condition from the blockchain network, it will ask the stocker whether to trigger the warehouse receipt replacement application event.
  • the above preset conditions may be that the comparison result shows that the current unit price of the physical goods is higher than the historical unit price, and the price difference is greater than the preset value; or the comparison result may be that the current unit price of the physical goods is lower than the historical unit price, and the price difference is greater than the preset value. value.
  • the client of the inventory side when the client of the inventory side asks, it can display the current unit price, historical unit price, the difference between the two unit prices, and the total difference calculated based on the total amount of the physical goods to the inventory side, and the inventory side can Decide whether to trigger the warehouse receipt replacement application event according to the information displayed on the client side of the inventory side.
  • the inventory party can trigger the warehouse receipt replacement application event, and can replace the target warehouse receipt with the replacement warehouse receipt of other physical goods with relatively stable value fluctuations.
  • the physical goods corresponding to the target warehouse receipts are obtained, so that the physical goods can be used to obtain more resources as soon as possible, such as selling the physical goods or exchanging the warehouse receipts with higher value.
  • the warehouse receipt replacement application event can also be triggered.
  • the stockist does not need to monitor the value fluctuation of the physical goods corresponding to each target warehouse receipt, but based on the unit price data submitted by the client of the goods price monitor to the blockchain network, and based on the blockchain network Viewing the processing results of the smart contract in the smart contract improves the overall intelligence.
  • the unit price data is submitted to the blockchain network, the reliability of the unit price of the physical goods can be further improved, and the inventory party can avoid untrustworthy goods due to unreliable goods.
  • the unit price triggers the warehouse receipt replacement application event.
  • resources may be resources such as funds and points, which are not limited in this specification.
  • the corresponding resource party can be various financial institutions, such as banks, third-party payment institutions, etc.
  • the corresponding inventory party can be the party that needs to borrow funds from the financial institution, and the corresponding inventory party can transfer physical goods.
  • Store in the warehouse and obtain funds provided by financial institutions that match the value of its physical goods.
  • the warehouse does not have sufficient funds to repay the financial institution, but needs to obtain the physical goods stored in the warehouse, the above method can be used.
  • Warehouse receipts and the data generated by the review process of warehouse receipt replacement warehouse receipts are all recorded on the blockchain network, which solves the problem of trust between stockers, warehousing parties, and financial institutions.
  • this specification also provides a warehouse receipt processing system, including a blockchain network 210 and a stock client client 220;
  • the blockchain network 210 is deployed with a warehouse receipt replacement contract, which is used to process transactions representing the warehouse receipt replacement application event, and the processing results are stored in the blockchain network;
  • the inventory client 220 is used for the district
  • the blockchain network submits a transaction for invoking the warehouse receipt replacement contract, and the transaction initiated by the inventory client side specifies the business input information required for invoking the warehouse receipt replacement contract: target warehouse receipt ID, replacement warehouse receipt ID ;
  • the blockchain network 210 is used to execute the warehouse receipt replacement contract, match the warehouse receipt information identified by the inventory party's target warehouse receipt, and use the right to replace the warehouse receipt to exchange at least part of the matched warehouse receipt. The right to the target warehouse order.
  • the warehouse receipt replacement contract is also used to process transactions representing the warehouse receipt transfer application event; the blockchain network 210 is specifically used to transfer the right of the target warehouse receipt of the stockist To the resource party; wherein the resource party transfers the right of the resource matching the value of the target warehouse receipt to the inventory party.
  • the system further includes: a resource-side client 230; the resource-side client 230 is further configured to: after monitoring the warehouse receipt replacement application event
  • the blockchain network obtains the identifier of the target warehouse receipt and the identifier of the replacement warehouse receipt, and provides it to the resource party to check whether the value of the target warehouse receipt and the replacement warehouse receipt match;
  • the blockchain network 210 submits a transaction that invokes the warehouse receipt replacement contract, and the first audit result of the resource party is specified in the transaction initiated by the resource client; the blockchain network 210 is also used for Based on the first review result of the resource party, at least part of the right of the matched target warehouse receipt is replaced with the right to replace the warehouse receipt.
  • the blockchain network 210 is specifically configured to release the association relationship between the inventory party and the target warehouse receipt, and establish an association relationship between the resource party and the target warehouse receipt;
  • the blockchain network 210 is specifically used to release the association relationship between the resource party and the target warehouse receipt, release the association relationship between the inventory party and the replacement warehouse receipt, and establish the resource party and the replacement warehouse.
  • the warehouse receipt processing system further includes a warehousing client 240; the warehousing client 240 is used for, after monitoring the warehouse receipt replacement application event,
  • the blockchain network obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier, and provides them to the warehousing party for review; the warehousing party's review includes at least one of the following: reviewing the target warehouse receipt and the replacement warehouse receipt.
  • the warehouse client 240 is also used to respond to the operation of the warehouse, Submit a transaction calling the warehouse receipt replacement contract to the blockchain network, and the transaction initiated by the resource client specifies the second audit result of the warehouse; the blockchain network 210 also uses Based on the first audit result of the resource side and the second audit result of the warehouse side, the right to replace at least part of the matched target warehouse receipt is replaced by the right to replace the warehouse receipt.
  • the resource side client 230 is specifically configured to provide the target warehouse receipt identifier and the replacement warehouse receipt identifier to the storage side when it is determined that the second audit result representation of the warehouse side is passed. resource side.
  • the blockchain network 210 is further configured to place the target warehouse receipt in a frozen state under the condition of matching the warehouse receipt information identified by the target warehouse receipt of the stockist; wherein, in When the target warehouse receipt is in a frozen state, the blockchain network refuses to call the warehouse receipt replacement contract for other transactions of the target warehouse receipt, and the other transaction is an application event for the replacement of the warehouse receipt with the warehouse receipt. unrelated transactions.
  • the blockchain network 210 is further configured to release the frozen state of the target warehouse receipt when it is determined that the replacement is successful or the replacement fails.
  • the blockchain network 210 is further configured to refuse to use the right of the replacement warehouse receipt in exchange for at least part of it when it is determined that the resource party's right to the target warehouse receipt expires The right of the matched target warehouse receipt.
  • the warehouse receipt processing system further includes: a commodity price monitoring client 250; the commodity price monitoring client 250 is configured to satisfy the commodity price inventory condition of the physical goods corresponding to the target warehouse receipt
  • the warehouse receipt replacement contract When the warehouse receipt replacement contract is invoked, the transaction of invoking the warehouse receipt replacement contract is submitted to the blockchain network; the business input information required for invoking the warehouse receipt replacement contract is specified in the transaction initiated by the price deposit certificate transaction: the The current unit price of the physical goods corresponding to the target warehouse receipt; the blockchain network 210 is used to execute the warehouse receipt replacement contract, compare the current unit price with the historical unit price, and obtain a comparison result; the historical unit price is, the When the warehouse receipt transfer application event occurs, the unit price of the physical goods corresponding to the target warehouse receipt; the stocker client 220 is configured to ask the stocker whether the trigger is triggered when monitoring that the comparison result meets the preset condition Warehouse receipt replacement application event.
  • the right to the target warehouse receipt includes: the right to possess the target warehouse receipt; and the right to the replacement warehouse receipt includes: the right to possess the replacement warehouse receipt.
  • Embodiments of the present specification further provide a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the foregoing method when executing the program.
  • the method includes at least: a method executed by the above-mentioned inventory-side client or the above-mentioned resource-side client.
  • FIG. 8 shows a schematic diagram of a more specific hardware structure of a computing device provided by an embodiment of this specification.
  • the device may include: a processor 1010 , a memory 1020 , an input/output interface 1030 , a communication interface 1040 and a bus 1050 .
  • the processor 1010 , the memory 1020 , the input/output interface 1030 and the communication interface 1040 realize the communication connection among each other within the device through the bus 1050 .
  • the processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. program to implement the technical solutions provided by the embodiments of this specification.
  • a general-purpose CPU Central Processing Unit, central processing unit
  • a microprocessor an application specific integrated circuit (Application Specific Integrated Circuit, ASIC)
  • ASIC Application Specific Integrated Circuit
  • the memory 1020 may be implemented in the form of a ROM (Read Only Memory, read-only memory), a RAM (Random Access Memory, random access memory), a static storage device, a dynamic storage device, and the like.
  • the memory 1020 may store an operating system and other application programs. When implementing the technical solutions provided by the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 1020 and invoked by the processor 1010 for execution.
  • the input/output interface 1030 is used to connect the input/output module to realize information input and output.
  • the input/output/module can be configured in the device as a component (not shown in the figure), or can be externally connected to the device to provide corresponding functions.
  • the input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc.
  • the output device may include a display, a speaker, a vibrator, an indicator light, and the like.
  • the communication interface 1040 is used to connect a communication module (not shown in the figure), so as to realize the communication interaction between the device and other devices.
  • the communication module may implement communication through wired means (eg, USB, network cable, etc.), or may implement communication through wireless means (eg, mobile network, WIFI, Bluetooth, etc.).
  • Bus 1050 includes a path to transfer information between the various components of the device (eg, processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
  • the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include necessary components for normal operation. other components.
  • the above-mentioned device may only include components necessary to implement the solutions of the embodiments of the present specification, rather than all the components shown in the figures.
  • Embodiments of the present specification further provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the foregoing method is implemented.
  • the method includes at least: a method executed by the above-mentioned inventory-side client or the above-mentioned resource-side client.
  • Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology.
  • Information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
  • a typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation device, e-mail device, game control desktop, tablet, wearable device, or a combination of any of these devices.
  • each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments.
  • the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts.
  • the device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated.
  • the functions of each module may be integrated into the same module. or multiple software and/or hardware implementations. Some or all of the modules may also be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Computing Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present description provides a warehouse receipt processing method based on a blockchain, and a warehouse receipt processing system. The warehouse receipt processing system comprises a blockchain network and a goods storage party client; a warehouse receipt swap contract is deployed on the blockchain network to process a transaction representing a warehouse receipt swap application event; the processing result is stored in the blockchain network. The goods storage party client submits, to the blockchain network, a transaction for invoking the warehouse receipt swap contract, wherein service input information required for invoking the warehouse receipt swap contract, i.e., a target warehouse receipt identifier and a swap warehouse receipt identifier, is specified in the transaction initiated by the goods storage party client; the blockchain network executes the warehouse receipt swap contract, matches warehouse receipt information of the target warehouse receipt identifier from the goods storage party, and uses the right of the swap warehouse receipt to exchange at least part of the right of the matched target warehouse receipt.

Description

基于区块链的仓单处理方法及仓单处理系统Warehouse receipt processing method and warehouse receipt processing system based on blockchain 技术领域technical field
本说明书涉及计算机技术领域,尤其涉及基于区块链的仓单处理方法及仓单处理系统。This specification relates to the field of computer technology, and in particular, to a warehouse receipt processing method and a warehouse receipt processing system based on blockchain.
背景技术Background technique
目前,可以将一些实体货物临时存储在仓储方的仓库中,并得到仓储方返回的存储凭证,存储凭证可以视为这些实体货物的代号。为了方便后续描述,将这样的存储凭证称为仓单,将存储实体货物在仓储方的机构或个人称为存货方。At present, some physical goods can be temporarily stored in the warehouse of the warehousing party, and the storage vouchers returned by the warehousing party can be obtained. The storage vouchers can be regarded as the codes of these physical goods. For the convenience of subsequent description, such a storage document is referred to as a warehouse receipt, and an institution or individual storing physical goods at the warehousing side is referred to as a stockholder.
存货方可以将仓单转移给资源方,换取与该仓单价值相匹配的资源,进而获取的资源进行一些业务处理。后续存货方需要按照与资源方之间的约定,将获取的资源归还给资源方,取回仓单。The inventory party can transfer the warehouse receipt to the resource party in exchange for resources matching the value of the warehouse receipt, and then perform some business processing on the acquired resources. The subsequent inventory party needs to return the acquired resources to the resource party according to the agreement with the resource party and retrieve the warehouse receipt.
发明内容SUMMARY OF THE INVENTION
针对上述技术问题,本说明书提供基于区块链的仓单处理方法及仓单处理系统,技术方案如下:In view of the above technical problems, this manual provides a warehouse receipt processing method and warehouse receipt processing system based on blockchain. The technical solutions are as follows:
根据本说明书的第一方面,提供一种基于区块链的仓单处理方法,应用于仓单处理系统,所述仓单处理系统包括区块链网络与存货方客户端,所述区块链网络部署有仓单置换合约,用于处理表征仓单置换申请事件的交易,所述处理结果存储于所述区块链网络中;所述方法包括:存货方客户端向所述区块链网络提交调用所述仓单置换合约的交易,所述存货方客户端发起的交易中指定了调用所述仓单置换合约时所需的业务输入信息:目标仓单标识、置换仓单标识;所述区块链网络执行所述仓单置换合约,匹配所述存货方目标仓单标识的仓单信息,并利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。According to a first aspect of the present specification, a method for processing warehouse receipts based on blockchain is provided, which is applied to a warehouse receipt processing system, wherein the warehouse receipt processing system includes a blockchain network and a stock client client, and the blockchain A warehouse receipt replacement contract is deployed on the network to process the transaction representing the warehouse receipt replacement application event, and the processing result is stored in the blockchain network; the method includes: the client side of the inventory side reports to the blockchain network Submit the transaction for invoking the warehouse receipt replacement contract, and the transaction initiated by the inventory client side specifies the business input information required for invoking the warehouse receipt replacement contract: target warehouse receipt identifier, replacement warehouse receipt identifier; the The blockchain network executes the warehouse receipt replacement contract, matches the warehouse receipt information identified by the stockist's target warehouse receipt, and uses the right to replace the warehouse receipt to exchange at least part of the right to the matched target warehouse receipt.
根据本说明书的第二方面,提供一种仓单处理系统,包括区块链网络、存货方客户端;所述区块链网络部署有仓单置换合约,用于处理表征仓单置换申请事件的交易,所述处理结果存储于所述区块链网络中;所述存货方客户端,用于所述区块链网络提交调用所述仓单置换合约的交易,所述存货方客户端发起的交易中指定了调用所述仓单置换合约时所需的业务输入信息:目标仓单标识、置换仓单标识;所述区块链网络,用于执行所述仓单置换合约,匹配所述存货方目标仓单标识的仓单信息,并利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。According to a second aspect of the present specification, a warehouse receipt processing system is provided, including a blockchain network and a stock client client; the blockchain network deploys a warehouse receipt replacement contract for processing a warehouse receipt replacement application event. transaction, the processing result is stored in the blockchain network; the inventory client is used by the blockchain network to submit a transaction that invokes the warehouse receipt replacement contract, and the inventory client initiates the transaction. The business input information required for invoking the warehouse receipt replacement contract is specified in the transaction: target warehouse receipt ID, replacement warehouse receipt ID; the blockchain network is used to execute the warehouse receipt replacement contract and match the inventory The warehouse receipt information identified by the target warehouse receipt, and the right to replace the warehouse receipt is exchanged for at least part of the right to the matched target warehouse receipt.
采用上述技术方案,区块链网络基于部署的智能合约处理表征仓单置换申请事件的交易,即将仓单置换的整个过程记录在区块链网络中,可以使存货方、仓储方以及资源方之间交互数据可信,进而解决了三方之间的信任问题;同时,由于存货方可以利用置换仓单的占有权换取目标仓单的占有权,因此可以使存货方可以利用其它实体货物换取目标仓单中的实体货物。With the above technical solution, the blockchain network processes transactions representing the application event for warehouse receipt replacement based on the deployed smart contract, that is, the entire process of warehouse receipt replacement is recorded in the blockchain network, which enables the inventory party, the warehousing party and the resource party to communicate with each other. The interactive data between the two parties is credible, which solves the problem of trust between the three parties; at the same time, since the inventory party can exchange the possession of the replacement warehouse receipt for the possession of the target warehouse receipt, the inventory party can use other physical goods in exchange for the target warehouse. Physical goods in the order.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本说明书。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
附图说明Description of drawings
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书实施例中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, the following briefly introduces the accompanying drawings required in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some of the embodiments described in the embodiments of the present specification. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings.
图1a是本说明书实施例的一种利用仓单换取资源的交互流程示意图;Fig. 1a is a schematic diagram of an interaction flow of using warehouse receipts to exchange resources according to an embodiment of this specification;
图1b是本说明书实施例的一种利用置换仓单换取目标仓单的交互流程示意图;Fig. 1b is a schematic diagram of an interaction flow of using a replacement warehouse receipt to exchange a target warehouse receipt according to an embodiment of the present specification;
图2是本说明书实施例的一种仓单处理系统框架示意图;2 is a schematic diagram of a warehouse receipt processing system framework according to an embodiment of the present specification;
图3是本说明书实施例的另一种仓单处理系统框架示意图;3 is a schematic diagram of another warehouse receipt processing system framework according to an embodiment of the present specification;
图4是本说明书实施例的一种基于区块链的仓单处理方法的交互流程示意图;4 is a schematic diagram of an interaction flow of a method for processing warehouse receipts based on blockchain according to an embodiment of this specification;
图5是本说明书实施例的另一种基于区块链的仓单处理方法的交互流程示意图;5 is a schematic diagram of an interaction flow of another blockchain-based warehouse receipt processing method according to an embodiment of this specification;
图6是本说明书实施例的又一种仓单处理系统框架示意图;6 is a schematic diagram of another warehouse receipt processing system framework according to an embodiment of the present specification;
图7是本说明书实施例的另一种基于区块链的仓单处理方法的交互流程示意图;7 is a schematic diagram of an interaction flow of another blockchain-based warehouse receipt processing method according to an embodiment of this specification;
图8是用于配置本说明书实施例装置的一种设备的结构示意图。FIG. 8 is a schematic structural diagram of a device for configuring an apparatus according to an embodiment of the present specification.
具体实施方式Detailed ways
为了使本领域技术人员更好地理解本说明书实施例中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行详细地描述,显然,所描述的实施例仅仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于保护的范围。In order for those skilled in the art to better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the accompanying drawings in the embodiments of the present specification. Obviously, the described implementation Examples are only some of the embodiments of the present specification, but not all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this specification should fall within the scope of protection.
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in this specification are for the purpose of describing particular embodiments only and are not intended to limit the specification. As used in this specification and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information, without departing from the scope of the present specification. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining."
目前,可以将一些实体货物临时存储在仓储方的仓库中,并得到仓储方返回的存储凭证,存储凭证可以视为这些实体货物的代号。为了方便后续描述,将这样的存储凭证称为仓单,将存储实体货物在仓储方的机构或个人称为存货方。其中,仓单中可以记录存货方标识、仓储方标识、存储的实体货物的种类、存储的实体货物的数量、价值等信息。At present, some physical goods can be temporarily stored in the warehouse of the warehousing party, and the storage vouchers returned by the warehousing party can be obtained. The storage vouchers can be regarded as the codes of these physical goods. For the convenience of subsequent description, such a storage document is referred to as a warehouse receipt, and an institution or individual storing physical goods at the warehousing side is referred to as a stockholder. Among them, the warehouse receipt can record information such as the identification of the inventory party, the identification of the warehouse party, the type of physical goods stored, the quantity and value of the physical goods stored.
存货方可以将仓单的转移给资源方,换取与该仓单价值相匹配的资源,可以理解的是,这里将仓单转移给资源方,换取与该仓单价值相匹配的资源,可以是将仓单的某种权利转移给资源方,获取与仓单价值相匹配的资源的某种权利。例如,占有权、拥有权等。存货方对于资源的权利只是临时拥有,并不是永久拥有,同时资源方对于仓单的权利也是临时拥有。在满足一定条件的情况下,需要将资源权利归还给资源方,同时会取回仓单的权利,例如在到达双方约定时长的情况下,存货方会将资源的权利归还给资源 方。The inventory party can transfer the warehouse receipt to the resource party in exchange for resources that match the value of the warehouse receipt. It is understandable that here, the warehouse receipt is transferred to the resource party in exchange for resources that match the value of the warehouse receipt, which can be Transfer a certain right of the warehouse receipt to the resource party, and obtain a certain right of the resource matching the value of the warehouse receipt. For example, possession, ownership, etc. The right of the inventory party to the resource is only temporarily owned, not permanently owned, and the right of the resource party to the warehouse receipt is also temporarily owned. If certain conditions are met, the resource rights need to be returned to the resource party, and the right to the warehouse receipt will be retrieved at the same time. For example, when the time agreed by both parties is reached, the inventory party will return the resource rights to the resource party.
通常情况下,存货方需要按照与资源方之间的约定,将获取的资源的权利归还给资源方,其中,约定中除了会约定归还时间、还会约定需要多归还的资源数量,即存货方在归还资源权利时,通常还需要多归还的一部分资源。在归还资源权利之后,存货方即可以取回仓单的权利,并利用仓单从仓储方获取存储在仓储方的实体货物。Under normal circumstances, the inventory party needs to return the rights of the acquired resources to the resource party according to the agreement with the resource party. When the resource rights are returned, it is usually necessary to return a part of the resources. After returning the resource rights, the inventory party can retrieve the right to the warehouse receipt, and use the warehouse receipt to obtain the physical goods stored in the warehouse party from the warehouse party.
如图1a所示,为上述三方之间的交互流程图,其中图中存货方利用仓单的权利换取资源的权利的过程也可以与图中所示略有不同,例如,仓储方在生成仓单之后,也直接将仓单的权利发送至资源方,资源方即将资源的权利提供给存货方,即将与该仓单价值相匹配的资源权利下发给该存货方。As shown in Figure 1a, it is a flow chart of the interaction between the above three parties, in which the process of exchanging the rights of the warehouse receipts for the rights of resources by the inventory party in the figure may also be slightly different from that shown in the figure. After the order is issued, the right of the warehouse receipt is also directly sent to the resource party, and the resource party will provide the right of the resource to the stocker, and will issue the resource right that matches the value of the warehouse receipt to the stocker.
其中,在上述过程中存在多个交互过程,如果任一方作恶,则对会整个的业务过程造成严重的影响,例如存货方在得到资源后,并不承认与资源方达成了交换共识,拒绝将仓单权利转交给资源方;又例如,资源方在得到存货方的仓单的权利后,拒绝将原本约定的资源的权利返回给存货方等等,仓储方在存储了存货方的实体货物之后,并未返回相应的仓单权利。即任一方都存在作恶的可能,且任一方之间都不能够完全信任彼此。Among them, there are multiple interactive processes in the above process. If any party commits evil, it will have a serious impact on the entire business process. For example, after the inventory party obtains the resources, it does not recognize that it has reached an exchange consensus with the resource party, and refuses to transfer The warehouse receipt rights are transferred to the resource party; for another example, the resource party refuses to return the originally agreed rights of resources to the inventory party after obtaining the warehouse receipt rights of the inventory party, etc. After the warehouse party stores the physical goods of the inventory party , the corresponding warehouse receipt rights are not returned. That is to say, there is the possibility of any party doing evil, and neither party can completely trust each other.
为了解决上述问题,可以将存货方利用仓单权利从资源方换取资源权利的事件存储在区块链网络中,这样就可以避免三方中任一方出现抵赖和作恶的问题。In order to solve the above problems, the event that the inventory party uses the warehouse receipt rights to exchange the resource rights from the resource party can be stored in the blockchain network, so as to avoid the problem of denial and malicious behavior by any of the three parties.
将上述事件进行记录,可以是将每一笔发生过占有方转换的仓单都在区块链网上进行记录。另外,也可以将每一笔仓单都进行记录,即不论是否发生占有方转换的仓单都在区块链上进行记录,例如可以是将用于表征每一笔仓单生成过程的事件也记录在区块链网络中。Recording the above events can be recorded on the blockchain network for each warehouse receipt that has been converted by the occupier. In addition, each warehouse receipt can also be recorded, that is, whether the warehouse receipt with the owner's conversion occurs or not, it can be recorded on the blockchain. For example, the event used to characterize the generation process of each warehouse receipt can also be recorded. Recorded in the blockchain network.
为了更加细致的管理每笔仓单,区块链网络还可以基于智能合约管理每笔仓单,例如,仓储方在生成一笔仓单时,仓储方还可以将向区块链网络发送请求,区块链网络即可以调用智能合约发行一笔仓单,发行的仓单即为区块链网络中的一种资产,发行的仓单中,可以包含该仓单的各种信息,例如,该仓单的占有方、当前状态、是否已经被换取资源等等信息。In order to manage each warehouse receipt in more detail, the blockchain network can also manage each warehouse receipt based on smart contracts. For example, when the warehousing party generates a warehouse receipt, the warehousing party can also send a request to the blockchain network, The blockchain network can call the smart contract to issue a warehouse receipt. The issued warehouse receipt is an asset in the blockchain network. The issued warehouse receipt can contain various information about the warehouse receipt. The owner of the warehouse receipt, the current status, whether it has been exchanged for resources, etc.
采用上述方式,可以解决存货方、仓储方、资源方三方之间的信任问题,即将三方之间的交互数据都记录在区块链网络上,可以避免任一方作恶或抵赖。The above method can solve the problem of trust among the three parties: the inventory party, the warehousing party, and the resource party. That is, the interaction data between the three parties is recorded on the blockchain network, which can prevent any party from doing evil or denying it.
在某些情况下,存货方会可能需要在约定归还资源的时间到来之前,使用仓单对应的实体货物,但是由于资源不足,无法将充足的资源归还给资源方。In some cases, the inventory party may need to use the physical goods corresponding to the warehouse receipt before the agreed time to return the resources, but due to insufficient resources, sufficient resources cannot be returned to the resource party.
例如,仓单对应的实体货物存在保质期,存货方需要尽快将仓单对应的实体货物从仓储方取出并进行处理,但是没有足够的资源返还给资源方,以换取该仓单的占有权。For example, the physical goods corresponding to the warehouse receipt have a shelf life, and the stockholder needs to take out the physical goods corresponding to the warehouse receipt from the warehouse and process them as soon as possible, but there are not enough resources to return to the resource side in exchange for the possession of the warehouse receipt.
又例如,仓单对应的实体货物的当前价值,与该实体货物换取资源时的价值差别较大的情况下,存货方通常希望尽快重新得到该仓单对应的实体货物。For another example, if the current value of the physical goods corresponding to the warehouse receipt is significantly different from the value of the physical goods when the goods are exchanged for resources, the stockist usually hopes to regain the physical goods corresponding to the warehouse receipt as soon as possible.
一方面,在实体货物当前的价值升高较多的情况下,对于存货方而言,其通常希望尽快将该仓单对应的实体货物换回,以尽快利用该实体货物得到更多的资源,例如将仓单对应的实体货物换回后可以进行出售、或换取价值更高的仓单。On the one hand, under the circumstance that the current value of the physical goods increases a lot, for the inventory party, they usually hope to exchange the physical goods corresponding to the warehouse receipt as soon as possible, so as to use the physical goods to obtain more resources as soon as possible. For example, after the physical goods corresponding to the warehouse receipts are exchanged, they can be sold or exchanged for higher-value warehouse receipts.
另一方面,在实体货物当前的价值降低较多,且具有持续下降趋势的情况下,对于存货方而言,其通常希望尽快将该仓单对应的实体货物换回,并进行出售,以尽快止损。On the other hand, when the current value of the physical goods has decreased a lot and has a continuous downward trend, for the stockist, they usually hope to exchange the physical goods corresponding to the warehouse receipt as soon as possible and sell them so that they can be sold as soon as possible. Stop loss.
在上述场景中,存货方均需要在约定归还资源的时间到来之前,就需要获取仓单对应的实体货物,但是在这些场景中,如果存货方没有足够的资源返还给资源方,则无法 换取仓单的权利,进而无法从仓储方获取仓单对应的实体货物。In the above scenarios, the inventory party needs to obtain the physical goods corresponding to the warehouse receipt before the agreed time to return the resources. However, in these scenarios, if the inventory party does not have enough resources to return to the resource party, the warehouse cannot be exchanged. Therefore, the physical goods corresponding to the warehouse receipt cannot be obtained from the warehousing party.
为了解决这个问题,目前提出了“以物换物”的方式,即允许存货方利用其它仓单的权利置换仓单的权利。例如,存货方在仓储方的仓库中,存储了某些实体货物,并得到了目标仓单,存货方利用该目标仓单从资源方换取了与该目标仓单价值相匹配的资源,并约定了归还资源的日期。In order to solve this problem, the method of "barter for goods" has been proposed, that is, the inventory party is allowed to use the rights of other warehouse receipts to replace the rights of warehouse receipts. For example, the inventory party stores some physical goods in the warehouse of the warehousing party, and obtains the target warehouse receipt. The inventory party uses the target warehouse receipt to exchange resources matching the value of the target warehouse receipt from the resource party, and agrees date to return the resource.
在预定的归还日期之前,存货方由于某些原因需要获取该目标仓单对应的实体货物,因此需要将资源归还给资源方。但是,由于存货方并没有足够的资源件归还,因此存货方可以再存储一些实体货物到仓储方,以得到新的仓单,为了方便描述,将这个新的仓单称为置换仓单。存货方,可以利用置换仓单置换目标仓单,即利用置换仓单对应的实体货物置换目标仓单中对应的实体货物,从而得到目标仓单的实体货物进行处理。Before the scheduled return date, the inventory party needs to obtain the physical goods corresponding to the target warehouse receipt for some reasons, so the resource needs to be returned to the resource party. However, since the inventory party does not have enough resource parts to return, the inventory party can store some more physical goods to the warehouse party to obtain a new warehouse receipt. For the convenience of description, this new warehouse receipt is called a replacement warehouse receipt. The inventory party can replace the target warehouse receipt with the replacement warehouse receipt, that is, replace the corresponding physical goods in the target warehouse receipt with the physical goods corresponding to the replacement warehouse receipt, so as to obtain the physical goods of the target warehouse receipt for processing.
具体的交互过程,可以如图1b所示,其中该存货方存储的第一实体货物的种类与第二实体货物的种类可以相同,也可以不同,本说明书对此不进行限定。其中,在利用置换仓单换取目标仓单的过程中,资源方还需要对置换仓单的价值是否与目标仓单的价值相匹配进行审核,可以理解的是相匹配是指置换仓单的价值要不低于目标仓单的价值,这样才允许存货方利用置换仓单的占有权置换目标仓单的占有权。The specific interaction process may be as shown in FIG. 1b, wherein the type of the first physical goods stored by the inventory party may be the same as or different from the type of the second physical goods, which is not limited in this specification. Among them, in the process of exchanging the replacement warehouse receipt for the target warehouse receipt, the resource side also needs to review whether the value of the replacement warehouse receipt matches the value of the target warehouse receipt. It is understandable that the matching refers to the value of the replacement warehouse receipt. The value of the target warehouse receipt should not be lower than the value of the target warehouse receipt, so that the inventory party is allowed to replace the possession right of the target warehouse receipt with the possession right of the replacement warehouse receipt.
在这个场景中,仍然存在上述所描述的存货方、仓储方、资源方之间的信任问题,因此,可以将使用置换仓单置换目标仓单的交互流程记录在区块链网站中,以避免任何一方作恶或抵赖。In this scenario, there is still the trust problem between the above-mentioned inventory party, warehousing party, and resource party. Therefore, the interactive process of using the replacement warehouse receipt to replace the target warehouse receipt can be recorded on the blockchain website to avoid Misbehavior or denial by either party.
基于上述说明,本说明书提出一种基于区块链的仓单处理方法,应用于仓单处理系统,如图2所示,该仓单处理系统至少包括区块链网络210、存货方客户端220。Based on the above description, this specification proposes a blockchain-based warehouse receipt processing method, which is applied to a warehouse receipt processing system. As shown in FIG. 2 , the warehouse receipt processing system at least includes a blockchain network 210 and an inventory client 220 .
其中区块链网络,是一个分布式的共享账本和数据库,具有去中心化、不可篡改、全程留痕、可以追溯、集体维护、公开透明等特点,因此将数据存储在区块链网络中,可以有效保证数据的安全性。具体可以是公有链网络、或联盟链网络,本说明书对此不进行限定。其中,在区块链网络为联盟链网络时,仓储方以及资源方,均可以为联盟链网络中的节点,也可以为其中节点的用户,本说明书对此不进行限定。Among them, the blockchain network is a distributed shared ledger and database, which has the characteristics of decentralization, non-tampering, full trace, traceability, collective maintenance, openness and transparency, etc. Therefore, the data is stored in the blockchain network. Data security can be effectively guaranteed. Specifically, it may be a public chain network or a consortium chain network, which is not limited in this specification. Among them, when the blockchain network is a consortium chain network, both the warehousing party and the resource party can be nodes in the consortium chain network, or users of the nodes, which are not limited in this specification.
该区块链网络部署有仓单置换合约,所述仓单置换合约用于处理表征仓单置换申请事件的交易,处理结果存储于所述区块链网络中;其中,上述仓单置换合约为执行上述交易的智能合约,智能合约可以理解为各方约定好的,可以执行某种事务的计算机程序,由于其存储部署在区块链网络中,因此该智能合约也为不可篡改、完全可信性的。The blockchain network is deployed with a warehouse receipt replacement contract, the warehouse receipt replacement contract is used to process the transaction representing the warehouse receipt replacement application event, and the processing result is stored in the blockchain network; wherein, the warehouse receipt replacement contract is: The smart contract that executes the above transaction can be understood as a computer program agreed upon by all parties that can execute a certain transaction. Since its storage is deployed in the blockchain network, the smart contract is also immutable and completely credible. sexual.
如图4所示,为本说明书提出的执行仓单置换时的交互流程图,具体包括以下流程步骤:S301,存货方客户端向所述区块链网络提交调用所述仓单置换合约的交易;其中,该交易中指定了调用所述仓单置换合约时所需的业务输入信息:目标仓单标识、置换仓单标识;在存货方需要申请以置换仓单的权利换取目标仓单权利时,可以向区块链网络提交上述交易。由于智能合约相当于一种可以根据输入信息进行执行的程序,因此,存货方可以在交易中添加目标仓单标识以及置换仓单标识,以调用智能合约对根据该输入信息进行处理。即存货方客户端,在每次需要进行仓单置换申请时,都将仓单置换申请事件构建为一笔交易提交至区块链网络以调用智能合约进行处理。As shown in Fig. 4, the interactive flow chart when executing warehouse receipt replacement proposed in this specification specifically includes the following process steps: S301, the client side of the inventory side submits a transaction calling the warehouse receipt replacement contract to the blockchain network ; Among them, the business input information required for invoking the warehouse receipt replacement contract is specified in the transaction: target warehouse receipt identifier, replacement warehouse receipt identifier; when the stockholder needs to apply for the right to replace the warehouse receipt for the right to the target warehouse receipt , the above transaction can be submitted to the blockchain network. Since the smart contract is equivalent to a program that can be executed according to the input information, the inventory party can add the target warehouse receipt identifier and the replacement warehouse receipt identifier in the transaction to call the smart contract to process according to the input information. That is, the client of the inventory side, every time a warehouse receipt replacement application is required, it constructs the warehouse receipt replacement application event as a transaction and submits it to the blockchain network to call the smart contract for processing.
另外,本说明书中仓储方在创建仓单时,会为每笔仓单分配一个唯一的标识,以标识和区分不同的仓单。举例而言,仓储方可以是按照每笔仓单的生成顺序,为每笔仓单生成一个仓单号,作为每笔仓单的标识,用于区分不同的仓单。即上述的置换仓单标识 为用于标识置换仓单的信息,上述目标仓单标识即为用于标识目标仓单的信息。In addition, when creating a warehouse receipt in this manual, the warehouse party will assign a unique identifier to each warehouse receipt to identify and distinguish different warehouse receipts. For example, the warehousing party can generate a warehouse order number for each warehouse order according to the order in which each warehouse order is generated, which is used as the identifier of each warehouse order to distinguish different warehouse orders. That is, the above-mentioned replacement warehouse receipt identifier is the information used to identify the replacement warehouse receipt, and the above-mentioned target warehouse receipt identifier is the information used to identify the target warehouse receipt.
当然,在区块链网络基于智能合约发行仓单的情况下,智能合约可以根据仓储方提供的仓单标识,在发行的仓单的信息中写入该仓单标识。Of course, in the case where the blockchain network issues warehouse receipts based on smart contracts, the smart contract can write the warehouse receipt identity in the information of the issued warehouse receipt according to the warehouse receipt identity provided by the warehousing party.
S303,所述区块链网络执行所述仓单置换合约,匹配所述存货方目标仓单标识的仓单信息,并利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利;本步骤中,区块链网络在接收到上述交易后,即执行仓单置换合约进行处理,上述匹配通常是指查找区块链网络中预先发布或存储的目标仓单,即根据目标仓单标识,查找预存存储的该目标仓单的仓单信息。进一步利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利,具体可以是解除所述资源方与所述目标仓单的关联关系,解除所述存货方与所述置换仓单的关联关系,建立所述资源方与所述置换仓单的关联关系;同时,在换取全部所述匹配到的目标仓单的权利的情况下,建立所述存货方与所述目标仓单的关联关系;在换取部分所述匹配到的目标仓单的权利的情况下,将所述目标仓单拆分成被换取部分仓单与未被换取部分仓单,建立所述存货方与所述被换取部分仓单的关联关系,建立所述资源方与所述未被换取部分仓单的关联关系。S303, the blockchain network executes the warehouse receipt replacement contract, matches the warehouse receipt information identified by the target warehouse receipt of the stockist, and uses the right to replace the warehouse receipt to exchange at least part of the matched target warehouse receipt In this step, after receiving the above-mentioned transaction, the blockchain network executes the warehouse receipt replacement contract for processing. The above-mentioned matching usually refers to finding the target warehouse receipts pre-released or stored in the blockchain network, that is, according to the target Warehouse receipt ID, find the warehouse receipt information of the target warehouse receipt stored in advance. Further use the right to replace the warehouse receipt to exchange at least part of the right to the matched target warehouse receipt, which may specifically be to release the associated relationship between the resource party and the target warehouse receipt, and release the inventory party from the replacement. The associated relationship between the warehouse receipts, establish the relationship between the resource party and the replacement warehouse receipts; at the same time, in the case of exchanging the rights to all the matched target warehouse receipts, establish the inventory party and the target warehouse. In the case of the right to exchange part of the matched target warehouse receipt, the target warehouse receipt is split into the exchanged part of the warehouse receipt and the unexchanged part of the warehouse receipt, and the inventory party and the unexchanged part of the warehouse receipt are established. The association relationship of the exchanged part of the warehouse receipts establishes the association relationship between the resource party and the unexchanged part of the warehouse receipts.
根据上述说明可知,在存货方提交调用所述仓单置换合约的交易时,通常是因为以及存货方已经将目标仓单的权利置换给资源方获取了相应的资源的权利。而为了使这个流程也可信,也可以将这个流程存储在区块链上,一种具体的方式可以是,仓单置换合约还用于处理表征仓单转移申请事件的交易,具体的处理方式可以是,存货方向区块链网络提交表征仓单转移申请事件的交易,该交易同样要调用仓单置换合约。该交易中可以包括目标仓单的标识。区块链网络,可以将所述存货方的目标仓单的权利转移给资源方;这里具体可以是解除所述存货方与所述目标仓单之间的关联关系,建立所述资源方与所述目标仓单的关联关系。同时,资源方可以将与所述目标仓单价值匹配的资源的权利转移给所述存货方,并将资源数量、和转移结果上传至区块链网络进行存储,相应的智能合约可以在该目标仓单中记录对应的资源和已换取状态。According to the above description, when the inventory party submits the transaction to invoke the warehouse receipt replacement contract, it is usually because the inventory party has replaced the rights of the target warehouse receipt with the resource party to obtain the corresponding resource rights. In order to make this process credible, this process can also be stored on the blockchain. A specific method can be that the warehouse receipt replacement contract is also used to process transactions representing the warehouse receipt transfer application event. The specific processing method It can be that the inventory party submits a transaction representing the warehouse receipt transfer application event to the blockchain network, and the transaction also calls the warehouse receipt replacement contract. The transaction may include the identification of the target warehouse receipt. The blockchain network can transfer the right of the stocker's target warehouse receipt to the resource side; specifically, it can be to release the association between the stocker and the target warehouse receipt, and establish the resource side and the resource side. Describe the relationship between the target warehouse receipts. At the same time, the resource party can transfer the rights of the resource matching the value of the target warehouse receipt to the inventory party, and upload the resource quantity and transfer result to the blockchain network for storage, and the corresponding smart contract can be stored in the target warehouse. The corresponding resource and exchanged status are recorded in the warehouse receipt.
上述过程中,可以理解为是存货方已经和资源方预先协商好,且资源方以及同意存货方可以使用置换仓单的权利换取目标仓单的权利,因此该区块链网络可以执行所述仓单置换合约,以实现上述过程,即直接利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。In the above process, it can be understood that the inventory party has negotiated with the resource party in advance, and the resource party and the agreed inventory party can exchange the right to replace the warehouse receipt for the right of the target warehouse receipt, so the blockchain network can execute the warehouse receipt. A single replacement contract is used to realize the above process, that is, directly use the right to replace the warehouse receipt to exchange at least part of the right to the matched target warehouse receipt.
但是,在存货方没有和资源方预先协商好的情况下,通常需要资源方进行审核,即需要其确定是否同意存货方可以使用置换仓单的权利换取目标仓单的权利。However, if the inventory party has not negotiated with the resource party in advance, the resource party usually needs to review, that is, it needs to determine whether it agrees that the inventory party can use the right to replace the warehouse receipt in exchange for the right of the target warehouse receipt.
因此,如图3所示,在该仓单处理系统中还可以包括资源方客户端230;如图5所示,在区块链网络执行所述智能合约的过程中,在换取至少部分所述匹配到的目标仓单的权利之前,还可以包括:S302a,资源方客户端在监测到所述仓单置换申请事件之后,从所述区块链网络获取所述目标仓单标识与所述置换仓单标识,并提供给所述资源方以审核所述目标仓单与置换仓单是否价值匹配;其中,可以是在区块链网络外,存货方主动联系资源方,以使资源方利用资源方客户端从区块链网络获取所述目标仓单标识与所述置换仓单标识。Therefore, as shown in Figure 3, the warehouse receipt processing system may also include a resource client 230; as shown in Figure 5, in the process of executing the smart contract on the blockchain network, in exchange for at least part of the Before the right of the matched target warehouse receipt, it may further include: S302a, after monitoring the warehouse receipt replacement application event, the resource client client obtains the target warehouse receipt identifier and the replacement from the blockchain network. Warehouse receipt identification, and provide it to the resource party to check whether the target warehouse receipt and the replacement warehouse receipt match the value; among them, it can be outside the blockchain network, the inventory party actively contacts the resource party, so that the resource party can use the resources The client side obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier from the blockchain network.
还可以是资源方客户端在监测到区块链网络执行仓单置换合约的情况下,即从区块链网络获取所述目标仓单标识与所述置换仓单标识。It can also be that the resource client client obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier from the blockchain network when monitoring the execution of the warehouse receipt replacement contract by the blockchain network.
资源方客户端在获得了目标仓单标识、置换仓单标识后,可以将获取的目标仓单标 识信息以及置换仓单标识信息,展示给资源方用户,由资源方用户根据获取的两个仓单的标识,获取相应的目标仓单以及置换仓单的信息,并进一步根据仓单置换申请事件、获取的目标仓单以及置换仓单的信息,审核该目标仓单与置换仓单是否价值匹配。在存货方需要使用置换仓单权利置换目标仓单的全部权利时,可以审核置换仓单的价值是否大于等于目标仓单价值,如果是,则审核结果为通过,如果否,则确定置换仓单的价值不足以置换目标仓单,则审核结果为不通过。After obtaining the target warehouse receipt identifier and replacement warehouse receipt identifier, the resource client client can display the obtained target warehouse receipt identifier information and replacement warehouse receipt identifier information to the resource user, and the resource user can obtain the two warehouse receipts according to the obtained information. The identification of the corresponding target warehouse receipt and the information of the replacement warehouse receipt, and further, according to the warehouse receipt replacement application event, the obtained target warehouse receipt and the information of the replacement warehouse receipt, to check whether the value of the target warehouse receipt and the replacement warehouse receipt match. . When the inventory party needs to replace all the rights of the target warehouse receipt with the right to replace the warehouse receipt, it can check whether the value of the replacement warehouse receipt is greater than or equal to the value of the target warehouse receipt. If the value is not enough to replace the target warehouse receipt, the audit result will be rejected.
如果存货方需要使用置换仓单置换目标仓单的部分占有权时,可以审核置换仓单的价值是否大于等于目标仓单的需要置换出的这部分占有权的价值,如果是,则审核结果为通过,如果否,则审核结果为不通过。If the inventory party needs to use the replacement warehouse receipt to replace part of the possession of the target warehouse receipt, it can check whether the value of the replacement warehouse receipt is greater than or equal to the value of the part of the possession right that needs to be replaced by the target warehouse receipt. If so, the review result is passed. , if not, the audit result is not passed.
当然,可以理解的是,存货方使用置换仓单权利置换目标仓单的全部占有权,还是部分占有权的信息,也可以在表征仓单置换申请事件的交易中进行记录。资源方在审核完成后,可以通过资源方的客户端输入审核结果,即资源方客户端可以接收到资源方输入的审核结果。Of course, it can be understood that the information on whether the inventory party uses the right to replace the warehouse receipt to replace all or part of the ownership of the target warehouse receipt can also be recorded in the transaction representing the warehouse receipt replacement application event. After the audit is completed, the resource side can input the audit result through the client side of the resource side, that is, the client side of the resource side can receive the audit result input by the resource side.
S302b,响应于资源方的操作,所述资源方客户端向所述区块链网络提交调用所述仓单置换合约的交易,所述资源方客户端发起的交易中指定了所述资源方的第一审核结果;资源方客户端在接收到资源方的审核结果后,可以将审核结果构造为第一审核交易,提交至区块链网络,进而可以在区块链网络中存储审核结果,避免资源方作恶,例如不承认审核结果。S302b, in response to the operation of the resource party, the resource party client submits a transaction for invoking the warehouse receipt replacement contract to the blockchain network, and the transaction initiated by the resource party client specifies the resource party's The first audit result; after receiving the audit result of the resource party, the client of the resource side can construct the audit result as the first audit transaction and submit it to the blockchain network, and then the audit result can be stored in the blockchain network to avoid The resource side does evil, such as not acknowledging the audit results.
相应的S303,可以为区块链网络基于所述资源方的第一审核结果,利用所述置换仓单的权利替换至少部分所述匹配到的目标仓单的权利。Correspondingly S303, the blockchain network may replace at least part of the right of the matched target warehouse receipt with the right to replace the warehouse receipt based on the first audit result of the resource party.
另外,在本步骤中可以是区块链网络调用所述智能合约,根据所述第一审核交易,在确定资源方审核结果表征通过的情况下,解除所述资源方与所述目标仓单的关联关系,解除所述存货方与所述置换仓单的关联关系,建立所述资源方与所述置换仓单的关联关系。另外,如果资源方审核结果表征不通过,则针对该目标仓单记录一次审核不通过的记录。In addition, in this step, the smart contract may be invoked by the blockchain network, and according to the first audit transaction, if it is determined that the resource party's audit result is passed, the relationship between the resource party and the target warehouse receipt is released. The association relationship is to release the association relationship between the inventory party and the replacement warehouse receipt, and establish the association relationship between the resource party and the replacement warehouse receipt. In addition, if the verification result of the resource side indicates that the verification fails, a record of failing the verification will be recorded for the target warehouse receipt.
在本实施例中,可以在存货方没有和资源方没有预先协商好的情况下,利用将审核和审核结果存入到区块链网络中,进一步提升了整体的可信性。In this embodiment, if the inventory party has not negotiated with the resource party in advance, the audit and audit results can be stored in the blockchain network, which further improves the overall credibility.
采用上述方式,区块链网络基于部署的智能合约处理表征仓单置换申请事件的交易,即将仓单置换的整个过程记录在区块链网络中,可以使存货方、仓储方以及资源方之间交互数据可信,进而解决了三方之间的信任问题;同时,由于存货方可以利用置换仓单的占有权换取目标仓单的占有权,因此可以使存货方可以利用其它实体货物换取目标仓单中的实体货物。In the above-mentioned way, the blockchain network processes the transactions representing the warehouse receipt replacement application event based on the deployed smart contract, that is, the entire process of the warehouse receipt replacement is recorded in the blockchain network, which can enable the inventory party, the warehousing party and the resource party to communicate with each other. The interactive data is credible, which solves the problem of trust between the three parties; at the same time, since the inventory party can exchange the possession of the replacement warehouse receipt for the possession of the target warehouse receipt, the inventory party can use other physical goods to exchange for the target warehouse receipt. physical goods in .
可以理解的是,区块链网络可能同时接收到用于表征仓单置换事件的交易,其中针对每一笔交易的处理流程都可以执行上述方式,另外为了区分表征不同仓单置换事件交易,可以是用相应的标识对不同交易进行区分,例如可以使用不同仓单置换事件对应的目标仓单和置换仓单的标识,作为不同交易的标识进行区分,也可以是使用预先规定的标识生成规则,生成各个交易的标识,用于区分不同的仓单置换交易,本说明书对于仓单置换交易的标识不进行限定。It can be understood that the blockchain network may simultaneously receive transactions representing warehouse receipt replacement events, and the above-mentioned method can be implemented for the processing flow of each transaction. Different transactions are distinguished by corresponding identifiers. For example, the identifiers of target warehouse receipts and replacement warrants corresponding to different warehouse receipt replacement events can be used as identifiers for different transactions, or pre-specified identifier generation rules can be used. The identification of each transaction is generated to distinguish different warehouse receipt replacement transactions. This manual does not limit the identification of warehouse receipt replacement transactions.
另外,系统中可能存在多个存货方以及多个仓储方,本说明书中对单个存货方和单个仓储方的业务处理过程进行描述,可以理解的是,其中的处理过程可以应用到系统中 的每一个存货方或仓储方。In addition, there may be multiple inventories and multiple warehousing parties in the system. The business processing procedures of a single inventory party and a single warehousing party are described in this specification. It is understood that the processing procedures can be applied to every single storage party in the system. An inventory party or warehouse party.
为了提升上述仓单置换流程过程中审核的严谨性,在审核过程中还可以加入仓储方的审核环节,即如图6所示,该仓单处理系统中还包括仓储方客户端240。In order to improve the rigor of the audit in the above warehouse receipt replacement process, an audit link of the warehousing side can also be added in the audit process, that is, as shown in Figure 6, the warehouse receipt processing system also includes the warehouse side client 240.
仓储方客户端在监测到所述仓单置换申请事件之后,从所述区块链网络获取所述目标仓单标识与所述置换仓单标识,并提供给所述仓储方进行审核,审核可以是多种方式。After monitoring the warehouse receipt replacement application event, the warehousing client obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier from the blockchain network, and provides them to the warehousing party for review. is a variety of ways.
其中,一种仓储方的审核方式可以为:仓储方客户端获取目标仓单标识与置换仓单标识,并提供给仓储方,以便所述仓储方审核所述目标仓单与置换仓单是否价值匹配;Among them, a warehouse party's auditing method may be: the client side of the warehouse party obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier, and provides them to the warehousing party, so that the warehousing party can verify whether the target warehouse receipt and the replacement warehouse receipt are valuable. match;
仓储方客户端向所述区块链网络提交第二审核结果;其中,第二审核结果包括仓储方审核结果。The client of the warehouse side submits the second audit result to the blockchain network; wherein, the second audit result includes the audit result of the warehouse side.
上述审核方式即具体的判断原则,可以参照上述资源方的审核过程,这里不再进行详述。这里仓储方客户端对于两个仓单的价值匹配也进行审核,可以让仓储方也参与到审核环节之中,同时其审核结果也可以给予资源方进行参考。The above-mentioned audit method is the specific judgment principle, which can be referred to the above-mentioned audit process of the resource side, and will not be described in detail here. Here, the warehousing client also reviews the value matching of the two warehouse receipts, which allows the warehousing to also participate in the review process, and the review results can also be given to the resource for reference.
另外仓储方作为存储存货方实体货物的一方,其可以随时查看仓单对应的实体货物的存储情况。因此,另一种仓储方的审核方式还可以为:仓储方客户端获取所述置换仓单标识,并提供给仓储方,以便所述仓储方审核置换仓单是否真实;仓储方客户端向所述区块链网络提交第二审核结果;所述第二审核结果包括仓储方审核结果。即仓储方客户端将仓单置换交易中的置换仓单标识提供给仓储方,由仓储方根据该标识,查看在仓库中是否存在该置换仓单对应的实体货物,如果存在则审核通过,如果不存在,则审核不通过。同时,仓储方客户端还可以将仓单置换交易中的目标仓单标识提供给仓储方,由仓储方根据该标识,查看在仓库中是否存在该目标仓单对应的实体货物,如果存在则审核通过,如果不存在,则审核不通过,即对目标仓单的真实性也进行审核。In addition, the warehousing party, as the party that stores the physical goods of the inventory party, can check the storage status of the physical goods corresponding to the warehouse receipt at any time. Therefore, another auditing method of the warehousing side can also be: the client side of the warehousing side obtains the identifier of the replacement warehouse receipt and provides it to the warehousing side, so that the warehousing side can verify whether the replacement warehouse receipt is genuine; The blockchain network submits the second audit result; the second audit result includes the audit result of the warehousing party. That is, the client of the warehousing side provides the replacement warehouse receipt identifier in the warehouse receipt replacement transaction to the warehousing side, and the warehousing side checks whether the physical goods corresponding to the replacement warehouse receipt exist in the warehouse according to the identifier. If it does not exist, the audit will not pass. At the same time, the warehousing client can also provide the target warehouse receipt identifier in the warehouse receipt replacement transaction to the warehousing side, and the warehousing side can check whether the physical goods corresponding to the target warehouse receipt exist in the warehouse according to the identifier, and check if it exists. Passed, if it does not exist, the review is not passed, that is, the authenticity of the target warehouse receipt is also reviewed.
另外,仓单置换交易中如果还存储有其他关于仓单的详细信息,例如置换仓单对应的实体货物的存储位置、存货量、价值、目标仓单对应的实体货物的存储位置、存货量、价值等信息,则本环节中,仓储方也可以根据实际情况对置换交易中存储的关于目标仓单、和置换仓单的详细信息进行真实性审核。In addition, if other detailed information about the warehouse receipt is stored in the warehouse receipt replacement transaction, such as the storage location, inventory quantity, value of the physical goods corresponding to the replacement warehouse receipt, the storage location, inventory quantity, and value of the physical goods corresponding to the target warehouse receipt Value and other information, in this link, the warehousing party can also verify the authenticity of the detailed information about the target warehouse receipt and the replacement warehouse receipt stored in the replacement transaction according to the actual situation.
加入上述仓储方对于仓单真实性审核的方式,可以进一步提升整体流程的安全性。Adding the above-mentioned method of warehousing to verify the authenticity of warehouse receipts can further improve the security of the overall process.
考虑到如果置换仓单置换目标仓单成功,则可能会涉及到将置换仓单对应的实体货物转移实际存储位置。例如,从某个仓库转移至其他仓库。这个过程中,由于需要转移存储位置,因此可能会出现额外的费用。而转移存储位置通常是由仓储方管理和处理。Considering that if the replacement warehouse receipt replaces the target warehouse receipt successfully, it may involve transferring the physical goods corresponding to the replacement warehouse receipt to the actual storage location. For example, transfer from one warehouse to another. During this process, additional charges may arise due to the need to transfer storage locations. The transfer storage location is usually managed and handled by the warehouse.
其中,可能会因为某些客观原因导致仓储方无法将置换仓单对应的实体货物转移实际存储位置,例如由于交通原因、天气原因等原因导致暂时无法将实体货物转移实际存储位置,又或者因为将实体货物转移实际存储位置会产生额外的费用,利用运输产生的费用,而仓储方无法负担这笔费用,则无法将实体货物转移实际存储位置。Among them, due to some objective reasons, the warehousing party may not be able to transfer the physical goods corresponding to the replacement warehouse receipts to the actual storage location, for example, due to traffic reasons, weather reasons, etc. The transfer of physical goods to the actual storage location will incur additional costs. Using the cost of transportation, and the warehousing party cannot afford this cost, the physical goods cannot be transferred to the actual storage location.
因此,一种仓储方的审核方式,还可以是加入仓储方对于是否允许置换仓单对应的实体货物更换存储位置进行审核。Therefore, an audit method for the warehousing party can also be added to the warehousing party to audit whether the physical goods corresponding to the replacement warehouse receipts are allowed to change the storage location.
具体可以是仓储方客户端在获取所述置换仓单标识,并提供给仓储方,以便仓储方审核是否允许转移所述置换仓单对应的实体货物的仓储位置;Specifically, the client of the warehousing side obtains the identifier of the replacement warehouse receipt and provides it to the warehousing side, so that the warehousing side can review whether to allow the transfer of the storage location of the physical goods corresponding to the replacement warehouse receipt;
仓储方客户端可以向所述区块链网络提交第二审核结果;第二审结果包括仓储方审核结果。The client of the warehouse side can submit the second audit result to the blockchain network; the second audit result includes the audit result of the warehouse side.
其中,仓储方在实际审核时,可以是判断目前的客观条件是否支持对置换仓单对应 的实体货物的仓储位置进行转移。Among them, the warehousing party can judge whether the current objective conditions support the transfer of the storage location of the physical goods corresponding to the replacement warehouse receipt during the actual review.
例如,可以是在确定存货方向自身支付了将置换仓单对应的实体货物转移实际存储位置所产生的费用时,且交通和天气等因素也允许的情况下确定审核通过,否则审核不通过。For example, when it is determined that the inventory direction has paid the cost of transferring the physical goods corresponding to the replacement warehouse receipt to the actual storage location, and the factors such as traffic and weather allow, it can be determined to pass the review, otherwise the review will fail.
又或者虽然产出了费用,但是仓储方可以根据实际费用的数量确定是否愿意自己支付这笔费用,如果愿意,且交通和天气等因素也允许的情况下,则审核通过,如果不愿意,且仓储方未支付这边费用的情况下,确定审核不通过等。本说明书对于审核是否允许转移仓储位置的审核条件并不进行限定。Or even though the cost is generated, the warehousing party can determine whether it is willing to pay the cost according to the actual cost. If it is willing, and the factors such as traffic and weather are also allowed, it will be approved. If it is not willing, and If the warehousing party does not pay the fee, it will be determined that the audit is not passed. This specification does not limit the review conditions for reviewing whether to allow the transfer of storage locations.
可以理解的是,仓储方可以执行上述全部或部分审核方式,并说明书对此不进行限定。It is understood that the warehousing party may perform all or part of the above-mentioned audit methods, and the instructions do not limit this.
仓储方客户端,可以响应于仓储方的操作,向所述区块链网络提交调用所述仓单置换合约的交易,所述资源方客户端发起的交易中指定了所述仓储方的第二审核结果。The warehousing client can, in response to the operation of the warehousing, submit to the blockchain network a transaction that invokes the warehouse receipt replacement contract, and the transaction initiated by the resource client specifies the warehousing's second Audit results.
相应的,区块链网络可以基于所述资源方的第一审核结果与所述仓储方的第二审核结果,利用所述置换仓单的权利替换至少部分所述匹配到的目标仓单的权利。Correspondingly, the blockchain network can use the right to replace the warehouse receipt to replace at least part of the right of the matched target warehouse receipt based on the first audit result of the resource party and the second audit result of the warehouse party. .
上述仓储方执行的审核,可以是在资源方的审核之前进行、可以在资源方审核之后进行、还可以是和资源方并行进行审核,即仓储方和资源方双方各自进行审核,并不互相影响。The above-mentioned audit performed by the warehousing party can be conducted before the audit by the resource party, after the audit by the resource party, or in parallel with the resource party, that is, the warehouse party and the resource party conduct audits independently without affecting each other. .
最终,可以是在仓储方和资源方任一方的审核不通过的情况下,则禁止本次存货方提出的仓单置换请求。In the end, if either the warehouse party or the resource party fails to pass the review, the warehouse receipt replacement request made by the warehouse party is prohibited.
另外,考虑到资源方是最终作为将资源的占有权移交给存货方的一方,因此,其审核结果可以作为最终的认定结果,即仓储方的审核可以在资源方审核之前进行。In addition, considering that the resource party is the party that finally transfers the possession of the resource to the inventory party, its audit result can be used as the final determination result, that is, the warehouse party's audit can be carried out before the resource party's audit.
如图7所示,一种可行的方式可以是,区块链网络调用所述智能合约,根据所述第二审核交易,在确定所述仓储方审核结果表征通过的情况下,将仓单置换申请事件通知给所述资源方客户端。As shown in Fig. 7, a feasible way may be that the blockchain network invokes the smart contract, and according to the second audit transaction, when it is determined that the warehousing party's audit result is passed, the warehouse receipt is replaced The application event is notified to the resource-side client.
即区块链网络调用智能合约先将仓单置换申请事件通知给仓储方客户端,有仓储方进行审核,确定仓储方审核通过后,才通知资源方客户端,由资源方再进行审核。That is, the blockchain network calls the smart contract to first notify the warehouse receipt replacement application event to the warehousing client. After the warehouse has reviewed it, it will notify the resource client after the warehouse has passed the review, and the resource will then review it.
资源方作为拥有目标仓单占有权的一方,其是仓单置换申请事件的最终的审核方,在确定仓储方审核通过之后,才进一步进行审核,如果仓储方审核不通过,则不需要进行审核。采用这种方式节约了系统资源,同时也提升了审核效率。The resource party, as the party with the right to possess the target warehouse receipt, is the final reviewer of the warehouse receipt replacement application event. After confirming that the warehousing party has passed the review, it will conduct further review. If the warehousing party fails to pass the review, no review is required. . This method saves system resources and improves audit efficiency.
在存货方并非想要使用置换仓单置换目标仓单对应的全部实体货物时,即并非想要置换目标仓单的全部占有权的情况下,存货方提交的交易指定的业务信息还可以包括置换货物量,即需要使用置换仓单从目标仓单对应的实体货物中,置换出的货物量。When the inventory party does not intend to use the replacement warehouse receipt to replace all the physical goods corresponding to the target warehouse receipt, that is, does not intend to replace all the possession rights of the target warehouse receipt, the business information specified by the transaction submitted by the inventory party may also include replacement. The quantity of goods, that is, the quantity of goods that needs to be replaced from the physical goods corresponding to the target warehouse receipt using the replacement warehouse receipt.
这样,在区块链网络调用所述智能合约,根据所述仓单置换交易,将仓单置换申请事件通知给所述资源方客户端后,资源方客户端在可以从区块链网络获取置换货物量并提供给资源方,资源方即可以判断目标仓单对应的全部货物中该置换货物量的货物,与置换仓单是否价值匹配,如果匹配则审核通过,如果不匹配则审核不通过,这里的匹配原则可以是置换仓单价值大于等于目标仓单对应的全部货物中该置换货物量的货物的价值,则匹配,否则,不匹配。In this way, after the blockchain network calls the smart contract and notifies the resource client of the warehouse receipt replacement application event according to the warehouse receipt replacement transaction, the resource client can obtain the replacement from the blockchain network. The quantity of goods is provided to the resource party, and the resource party can determine whether the value of the replacement goods in all the goods corresponding to the target warehouse receipt matches the value of the replacement warehouse receipt. The matching principle here can be that the value of the replacement warehouse receipt is greater than or equal to the value of the goods with the replacement quantity in all the goods corresponding to the target warehouse receipt, then it is matched, otherwise, it is not matched.
另外,为了避免在执行上述置换流程中,其他处理流程也会同时处理各个目标仓单和置换仓单,例如会同时处理将资源归还给资源方,以更改目标仓单占有权的处理流程。In addition, in order to avoid executing the above replacement process, other processing processes will also process each target warehouse order and replacement warehouse receipt at the same time, for example, the process of returning resources to the resource party to change the ownership of the target warehouse order will be processed at the same time.
因此,区块链网络在接收到存货方客户端向提交的仓单置换交易时,可以基于智能合约将仓单置换交易中的目标仓单标识、置换仓单标识分别对应的目标仓单和置换仓单置于冻结状态,在置于冻结状态的情况下,区块链网络拒绝针对所述目标仓单的其他交易调用所述仓单置换合约,所述其他交易为与所述仓单置换申请事件无关的交易。即智能合约在执行置换交易时,并不同时对目标仓单或者置换仓单执行其他处理,这样避免了对各仓单同时进行多种业务处理造成的数据混乱的问题。Therefore, when the blockchain network receives the warehouse receipt replacement transaction submitted by the inventory client, it can convert the target warehouse receipt identifier and the replacement warehouse receipt identifier in the warehouse receipt replacement transaction to the target warehouse receipt and replacement respectively based on the smart contract. The warehouse receipt is placed in a frozen state. In the case of being placed in a frozen state, the blockchain network refuses to call the warehouse receipt replacement contract for other transactions of the target warehouse receipt, and the other transaction is an application for replacement with the warehouse receipt. Transactions unrelated to events. That is, when the smart contract executes the replacement transaction, it does not perform other processing on the target warehouse receipt or the replacement warehouse receipt at the same time, which avoids the problem of data confusion caused by multiple business processing on each warehouse receipt at the same time.
在对目标仓单冻结之后,可以在区块链网络在接受到第一审核结果,即资源方审核结果,并基于智能合约确定该资源方审核结果表征不通过的情况下,可以解除目标仓单的冻结状态。即在审核不通过的情况下,确定本次置换审核流程结束,因此可以解除目标仓单的冻结状态。在审核通过的情况下,由于会将目标仓单的占有权返还给存货方,因此,可以直接将目标仓单置于失效状态。After the target warehouse receipt is frozen, the target warehouse receipt can be released when the blockchain network receives the first audit result, that is, the resource party's audit result, and determines that the resource party's audit result is unacceptable based on the smart contract. frozen state. That is, in the case of failure to pass the review, it is determined that the replacement review process is over, so the frozen status of the target warehouse receipt can be lifted. In the case of approval, since the possession of the target warehouse receipt will be returned to the inventory party, the target warehouse receipt can be directly placed in an invalid state.
而对于置换仓单而言,在区块链网络在接受到第一审核结果后,不论是否审核通过,都可以基于智能合约解除置换仓单的冻结状态,即在确定置换成功或置换失败的情况下,都解除所述目标仓单的冻结状态。因为不论是否审核通过,对于置换仓单而言,其都还会存在,只是占有方可能进行了更换。As for the replacement warehouse receipt, after the blockchain network receives the first audit result, regardless of whether it is approved or not, the frozen state of the replacement warehouse receipt can be released based on the smart contract, that is, when the replacement is determined to be successful or the replacement fails. Under all conditions, the frozen state of the target warehouse receipt is released. Because no matter whether it is approved or not, for the replacement warehouse receipt, it will still exist, but the owner may have replaced it.
另外,区块链网络还可以智能合约记录每个存储方对资源占用的约定时长,并记录存储方对资源已占用的时长,其中,可以是在记录目标事件时,即记录这两个时长,并且在确定所述资源方对于所述目标仓单的权利到期,则拒绝利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。在确定资源方对于目标仓单的权利到期,则拒绝利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。即在存货方需要将资源归还给资源方的情况下,不再允许存储方使用置换仓单置换该目标仓单。并且,可以自动生成处理结果,以使资源方客户端和存货方客户端检测到处理结果的情况下,资源方客户端和存货方客户端将该处理结果提供给资源方和存货方,以使存货方尽快将相应的资源归还给资源方,以换回目标仓单的权利。In addition, the blockchain network can also record the agreed duration of resources occupied by each storage party by smart contracts, and record the duration of resources occupied by the storage party. Among them, the two durations can be recorded when the target event is recorded. And when it is determined that the resource party's right to the target warehouse receipt has expired, the resource party refuses to use the right to replace the warehouse receipt to exchange at least part of the right to the matched target warehouse receipt. When it is determined that the right of the resource party to the target warehouse receipt has expired, the right to exchange the right of the replacement warehouse receipt for at least part of the matched target warehouse receipt is refused. That is, when the inventory party needs to return the resources to the resource party, the storage party is no longer allowed to replace the target warehouse receipt with the replacement warehouse receipt. In addition, the processing result can be automatically generated, so that when the resource client and the stock client detect the processing result, the resource client and the stock client provide the processing result to the resource and stock, so that the The inventory party shall return the corresponding resources to the resource party as soon as possible in exchange for the right to the target warehouse receipt.
如上述所描述场景内容可知,仓单对应的实体货物的当前价值与该实体货物换取资源时的价值差别较大的情况下,存货方通常具有重新得到该仓单对应的实体货物的需求。As can be seen from the scenarios described above, when the current value of the physical goods corresponding to the warehouse receipt is significantly different from the value of the physical goods when the physical goods are exchanged for resources, the stockholder usually has the need to obtain the physical goods corresponding to the warehouse receipt again.
而对于存货方而言,其并非时刻都在关注仓单对应的实体货物的价值变化,同时,对于一个存储方而言,其可能同时将多个仓单的占有权给资源方以换取资源,因此,对于这类存货方而言,其也不方便关注每个仓单对应的实体货物的价值。For the inventory party, it is not always concerned about the value changes of the physical goods corresponding to the warehouse receipts. At the same time, for a storage party, it may give the ownership of multiple warehouse receipts to the resource party at the same time in exchange for resources. Therefore, it is also inconvenient for such stockists to pay attention to the value of the physical goods corresponding to each warehouse receipt.
为了解决上述问题,本实施例提出以下方案:在仓单处理系统中,增加货价监控方客户端,该货价监控方客户端可以是区块链网络上的某一节点,也可以是区块链网络上的某一节点的用户,即其可以与区块链网络进行数据交互。In order to solve the above problem, this embodiment proposes the following solution: in the warehouse receipt processing system, add a commodity price monitoring client, and the commodity price monitoring client may be a node on the blockchain network, or a district A user of a node on the blockchain network, that is, it can interact with the blockchain network.
该货价监控方客户端,可以在每当满足所述目标仓单对应的实体货物的货价存证条件时,向所述区块链网络提交调用所述仓单置换合约的交易;所述货价存证交易发起的交易中指定了调用所述仓单置换合约时所需的业务输入信息:所述目标仓单对应的实体货物的当前单价;例如,在存储的实体货物为黄金、白银等具有价值波动属性的实体货物时,该货价监控方客户端,可以是交易所等价格监控机构对应的设备。其可以监控每个实体货物的价值波动情况,通常情况下,监控的价值为每类实体货物的单价,单价可以是单位重量的价格、单位数量的价格等。The client terminal of the goods price monitoring party can submit a transaction for invoking the warehouse receipt replacement contract to the blockchain network whenever the condition of the goods price certificate corresponding to the physical goods corresponding to the target warehouse receipt is satisfied; The business input information required when invoking the warehouse receipt replacement contract is specified in the transaction initiated by the warehouse receipt transaction: the current unit price of the physical goods corresponding to the target warehouse receipt; for example, the physical goods in storage are gold and silver. When waiting for physical goods with the property of value fluctuation, the client terminal of the goods price monitoring party may be a device corresponding to a price monitoring institution such as an exchange. It can monitor the fluctuation of the value of each physical goods. Usually, the monitored value is the unit price of each type of physical goods, and the unit price can be the price per unit weight, the price per unit quantity, etc.
其中,上述货价存证条件,可以是到达预设的货价存证周期,例如货价存证周期, 可以是一天、一周或一月为一个周期,例如,货价监控方客户端可以在每天上午9点,将目标仓单对应的实体货物的当前单价,提交到区块链网络。Wherein, the above-mentioned condition of inventory certificate of goods price can be the preset period of inventory certificate of goods price, such as the period of inventory certificate of goods price, which can be a period of one day, one week or one month. At 9:00 a.m. every day, the current unit price of the physical goods corresponding to the target warehouse receipt is submitted to the blockchain network.
货价存证条件还可以是实体货物的单价发送变化,即一旦实体货物的单价发送变化,即将该实体货物的单价提交到区块链网络;货价存证条件还可以是在检测到实体货物的单价变化较大,例如较上次上传至区块链网络的单价差异较大时,将目标仓单对应的实体货物的单价,提交到区块链网络。The condition of the certificate of goods price can also be the change of the unit price of the physical goods, that is, once the unit price of the physical goods is changed, the unit price of the physical goods will be submitted to the blockchain network; the condition of the certificate of the goods price can also be that the physical goods are detected. The unit price of the target warehouse has changed greatly, for example, when there is a big difference compared with the unit price uploaded to the blockchain network last time, the unit price of the physical goods corresponding to the target warehouse receipt is submitted to the blockchain network.
其中,该货价监控方客户端获取目标仓单对应的实体货物的种类的方式,可以是通过获取区块链网络上存储的仓单转移交易,即可以确定每笔目标仓单的标识,进一步即可以确定每笔目标仓单对应的实体货物的种类。Among them, the way that the client of the commodity price monitoring party obtains the type of physical goods corresponding to the target warehouse receipt may be by obtaining the warehouse receipt transfer transaction stored on the blockchain network, so as to determine the identifier of each target warehouse receipt, and further The type of physical goods corresponding to each target warehouse receipt can be determined.
另外,该货价监控方客户端还可以不需知晓目标仓单对应的实体货物种类,只需要将所有监控的实体货物的当前单价都提交至区块链网络即可。In addition, the client of the goods price monitoring party does not need to know the type of physical goods corresponding to the target warehouse receipt, and only needs to submit the current unit prices of all the monitored physical goods to the blockchain network.
在货价监控方客户端将货价存证交易提交至区块链网络后,区块链网络执行所述仓单置换合约,比较所述当前单价与历史单价,得到比较结果;所述历史单价为,所述仓单转移申请事件发生时,所述目标仓单对应的实体货物的单价;即存货方将目标仓单的权利转移给资源方以换取价值相匹配的资源的权利时,目标仓单对应的实体货物的单价;存货方客户端若从所述区块链网络监测到所述比较结果满足预设条件,则询问所述存货方是否触发仓单置换申请事件。After the client of the commodity price monitoring party submits the commodity price deposit certificate transaction to the blockchain network, the blockchain network executes the warehouse receipt replacement contract, compares the current unit price with the historical unit price, and obtains a comparison result; the historical unit price is, when the warehouse receipt transfer application event occurs, the unit price of the physical goods corresponding to the target warehouse receipt; that is, when the inventory party transfers the rights of the target warehouse receipt to the resource party in exchange for the rights of resources with matching values, the target warehouse The unit price of the physical goods corresponding to the order; if the client of the stocker detects that the comparison result meets the preset condition from the blockchain network, it will ask the stocker whether to trigger the warehouse receipt replacement application event.
上述预设条件,可以是比较结果表明,实体货物的当前单价高于历史单价,且差价大于预设值;也可以是比较结果表明,实体货物的当前单价低于历史单价,且差价大于预设值。The above preset conditions may be that the comparison result shows that the current unit price of the physical goods is higher than the historical unit price, and the price difference is greater than the preset value; or the comparison result may be that the current unit price of the physical goods is lower than the historical unit price, and the price difference is greater than the preset value. value.
其中,存货方客户端在询问时,可以是将实体货物的当前单价、历史单价、两个单价的差价、和基于实体货物总量计算出的总量差值展示给存货方,存货方即可根据存货方客户端展示的信息决定是否触发仓单置换申请事件。Among them, when the client of the inventory side asks, it can display the current unit price, historical unit price, the difference between the two unit prices, and the total difference calculated based on the total amount of the physical goods to the inventory side, and the inventory side can Decide whether to trigger the warehouse receipt replacement application event according to the information displayed on the client side of the inventory side.
例如,在确定目标仓单对应的实体货物价值升高较多时,存货方可以触发仓单置换申请事件,可以是以其他价值波动相对稳定的实体货物的置换仓单,对目标仓单进行置换,从而获取目标仓单对应的实体货物,以尽快利用该实体货物得到更多的资源,例如将该实体货物进行出售、或换取价值更高的仓单。For example, when it is determined that the value of the physical goods corresponding to the target warehouse receipt has increased significantly, the inventory party can trigger the warehouse receipt replacement application event, and can replace the target warehouse receipt with the replacement warehouse receipt of other physical goods with relatively stable value fluctuations. In this way, the physical goods corresponding to the target warehouse receipts are obtained, so that the physical goods can be used to obtain more resources as soon as possible, such as selling the physical goods or exchanging the warehouse receipts with higher value.
又例如,在价值降低较多,且具有持续下降趋势的情况下,存货方为了快速将该仓单对应的实体货物换回进行出售,以尽快止损,也可以触发仓单置换申请事件。For another example, when the value has decreased a lot and has a continuous downward trend, in order to quickly exchange the physical goods corresponding to the warehouse receipt for sale to stop the loss as soon as possible, the warehouse receipt replacement application event can also be triggered.
本实施例中,不需要存货方自行监控每笔目标仓单对应的实体货物的价值波动情况,而是基于货价监控方客户端向区块链网络提交的单价数据,并基于区块链网络中的智能合约处理结果进行查看,提升了整体的智能性,同时,由于单价数据是提交到区块链网络中,因此可以进一步提升实体货物单价的可信性,避免存货方由于不可信的货物单价触发仓单置换申请事件。In this embodiment, the stockist does not need to monitor the value fluctuation of the physical goods corresponding to each target warehouse receipt, but based on the unit price data submitted by the client of the goods price monitor to the blockchain network, and based on the blockchain network Viewing the processing results of the smart contract in the smart contract improves the overall intelligence. At the same time, since the unit price data is submitted to the blockchain network, the reliability of the unit price of the physical goods can be further improved, and the inventory party can avoid untrustworthy goods due to unreliable goods. The unit price triggers the warehouse receipt replacement application event.
可以理解的是,上述的资源可以是资金、积分等资源,本说明书对此不进行限定。It can be understood that the above-mentioned resources may be resources such as funds and points, which are not limited in this specification.
在资源为资金时,对应的资源方可以是各个金融机构,例如银行、第三方支付机构等,对应的存货方可以是有向金融机构进行借资金需求的一方,相应的存货方可以将实体货物存储在仓储方,并获得金融机构提供的与其实体货物价值相匹配的资金,在存货方没有充足资金偿还给金融机构,但是却需要获取存储在仓储方的实体货物时,可以采用上述方式,将仓单、以及仓单置换仓单的审核流程产生的数据都记录在区块链网络 上,解决了存货方、仓储方、金融机构之间的信任问题。When the resource is funds, the corresponding resource party can be various financial institutions, such as banks, third-party payment institutions, etc., and the corresponding inventory party can be the party that needs to borrow funds from the financial institution, and the corresponding inventory party can transfer physical goods. Store in the warehouse and obtain funds provided by financial institutions that match the value of its physical goods. When the warehouse does not have sufficient funds to repay the financial institution, but needs to obtain the physical goods stored in the warehouse, the above method can be used. Warehouse receipts and the data generated by the review process of warehouse receipt replacement warehouse receipts are all recorded on the blockchain network, which solves the problem of trust between stockers, warehousing parties, and financial institutions.
如图2所示,与前述一种基于区块链的仓单处理方法相对应,本说明书还提供了一种仓单处理系统,包括区块链网络210、存货方客户端220;所述区块链网络210部署有仓单置换合约,用于处理表征仓单置换申请事件的交易,所述处理结果存储于所述区块链网络中;所述存货方客户端220,用于所述区块链网络提交调用所述仓单置换合约的交易,所述存货方客户端发起的交易中指定了调用所述仓单置换合约时所需的业务输入信息:目标仓单标识、置换仓单标识;所述区块链网络210,用于执行所述仓单置换合约,匹配所述存货方目标仓单标识的仓单信息,并利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。As shown in Fig. 2, corresponding to the aforementioned method for processing warehouse receipts based on blockchain, this specification also provides a warehouse receipt processing system, including a blockchain network 210 and a stock client client 220; The blockchain network 210 is deployed with a warehouse receipt replacement contract, which is used to process transactions representing the warehouse receipt replacement application event, and the processing results are stored in the blockchain network; the inventory client 220 is used for the district The blockchain network submits a transaction for invoking the warehouse receipt replacement contract, and the transaction initiated by the inventory client side specifies the business input information required for invoking the warehouse receipt replacement contract: target warehouse receipt ID, replacement warehouse receipt ID ; the blockchain network 210 is used to execute the warehouse receipt replacement contract, match the warehouse receipt information identified by the inventory party's target warehouse receipt, and use the right to replace the warehouse receipt to exchange at least part of the matched warehouse receipt. The right to the target warehouse order.
在一个实施例中,所述仓单置换合约还用于处理表征仓单转移申请事件的交易;所述区块链网络210,具体用于将所述存货方的所述目标仓单的权利转移给资源方;其中,资源方将与所述目标仓单价值匹配的资源的权利转移给所述存货方。In one embodiment, the warehouse receipt replacement contract is also used to process transactions representing the warehouse receipt transfer application event; the blockchain network 210 is specifically used to transfer the right of the target warehouse receipt of the stockist To the resource party; wherein the resource party transfers the right of the resource matching the value of the target warehouse receipt to the inventory party.
如图3所示,在一个实施例中,所述系统还包括:资源方客户端230;所述资源方客户端230,还用于在监测到所述仓单置换申请事件之后,从所述区块链网络获取所述目标仓单标识与所述置换仓单标识,并提供给所述资源方以审核所述目标仓单与置换仓单是否价值匹配;响应于资源方的操作,向所述区块链网络210提交调用所述仓单置换合约的交易,所述资源方客户端发起的交易中指定了所述资源方的第一审核结果;所述区块链网络210,还用于基于所述资源方的第一审核结果,利用所述置换仓单的权利替换至少部分所述匹配到的目标仓单的权利。As shown in FIG. 3 , in one embodiment, the system further includes: a resource-side client 230; the resource-side client 230 is further configured to: after monitoring the warehouse receipt replacement application event The blockchain network obtains the identifier of the target warehouse receipt and the identifier of the replacement warehouse receipt, and provides it to the resource party to check whether the value of the target warehouse receipt and the replacement warehouse receipt match; The blockchain network 210 submits a transaction that invokes the warehouse receipt replacement contract, and the first audit result of the resource party is specified in the transaction initiated by the resource client; the blockchain network 210 is also used for Based on the first review result of the resource party, at least part of the right of the matched target warehouse receipt is replaced with the right to replace the warehouse receipt.
在一个实施例中,所述区块链网络210,具体用于解除所述存货方与所述目标仓单之间的关联关系,建立所述资源方与所述目标仓单的关联关系;所述区块链网络210,具体用于解除所述资源方与所述目标仓单的关联关系,解除所述存货方与所述置换仓单的关联关系,建立所述资源方与所述置换仓单的关联关系;在换取全部所述匹配到的目标仓单的权利的情况下,建立所述存货方与所述目标仓单的关联关系;在换取部分所述匹配到的目标仓单的权利的情况下,将所述目标仓单拆分成被换取部分仓单与未被换取部分仓单,建立所述存货方与所述被换取部分仓单的关联关系,建立所述资源方与所述未被换取部分仓单的关联关系。In one embodiment, the blockchain network 210 is specifically configured to release the association relationship between the inventory party and the target warehouse receipt, and establish an association relationship between the resource party and the target warehouse receipt; The blockchain network 210 is specifically used to release the association relationship between the resource party and the target warehouse receipt, release the association relationship between the inventory party and the replacement warehouse receipt, and establish the resource party and the replacement warehouse. In the case of exchanging the right to exchange all of the matched target warehouse receipts, establish the association relationship between the stockist and the target warehouse receipt; in exchange for the right to exchange some of the matched target warehouse receipts In this case, split the target warehouse receipt into the part of the warehouse receipt that is exchanged and the part that has not been exchanged, establish the association relationship between the inventory party and the part of the warehouse receipt to be exchanged, and establish the relationship between the resource party and the The relationship between the part of the warehouse receipt that has not been exchanged is described.
在一个实施例中,如图6所示,所述仓单处理系统还包括仓储方客户端240;所述仓储方客户端240,用于在监测到所述仓单置换申请事件之后,从所述区块链网络获取所述目标仓单标识与所述置换仓单标识,并提供给所述仓储方进行审核;所述仓储方的审核包括以下至少一种:审核所述目标仓单与置换仓单是否价值匹配;审核所述置换仓单是否真实;审核是否允许转移所述置换仓单对应的实体货物的仓储位置;所述仓储方客户端240,还用于响应于仓储方的操作,向所述区块链网络提交调用所述仓单置换合约的交易,所述资源方客户端发起的交易中指定了所述仓储方的第二审核结果;所述区块链网络210,还用于基于所述资源方的第一审核结果与所述仓储方的第二审核结果,利用所述置换仓单的权利替换至少部分所述匹配到的目标仓单的权利。In one embodiment, as shown in FIG. 6 , the warehouse receipt processing system further includes a warehousing client 240; the warehousing client 240 is used for, after monitoring the warehouse receipt replacement application event, The blockchain network obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier, and provides them to the warehousing party for review; the warehousing party's review includes at least one of the following: reviewing the target warehouse receipt and the replacement warehouse receipt. Whether the value of the warehouse receipt matches; checking whether the replacement warehouse receipt is genuine; checking whether the storage location of the physical goods corresponding to the replacement warehouse receipt is allowed to be transferred; the warehouse client 240 is also used to respond to the operation of the warehouse, Submit a transaction calling the warehouse receipt replacement contract to the blockchain network, and the transaction initiated by the resource client specifies the second audit result of the warehouse; the blockchain network 210 also uses Based on the first audit result of the resource side and the second audit result of the warehouse side, the right to replace at least part of the matched target warehouse receipt is replaced by the right to replace the warehouse receipt.
在一个实施例中,所述资源方客户端230,具体用于在确定所述仓储方的第二审核结果表征通过的情况下,将所述目标仓单标识与所述置换仓单标识提供给资源方。In one embodiment, the resource side client 230 is specifically configured to provide the target warehouse receipt identifier and the replacement warehouse receipt identifier to the storage side when it is determined that the second audit result representation of the warehouse side is passed. resource side.
在一个实施例中,所述区块链网络210,还用于在匹配到所述存货方目标仓单标识的仓单信息的情况下,将所述目标仓单置于冻结状态;其中,在所述目标仓单置于冻结 状态的情况下,所述区块链网络拒绝针对所述目标仓单的其他交易调用所述仓单置换合约,所述其他交易为与所述仓单置换申请事件无关的交易。In one embodiment, the blockchain network 210 is further configured to place the target warehouse receipt in a frozen state under the condition of matching the warehouse receipt information identified by the target warehouse receipt of the stockist; wherein, in When the target warehouse receipt is in a frozen state, the blockchain network refuses to call the warehouse receipt replacement contract for other transactions of the target warehouse receipt, and the other transaction is an application event for the replacement of the warehouse receipt with the warehouse receipt. unrelated transactions.
在一个实施例中,所述区块链网络210,还用于在确定置换成功或置换失败的情况下,解除所述目标仓单的冻结状态。In one embodiment, the blockchain network 210 is further configured to release the frozen state of the target warehouse receipt when it is determined that the replacement is successful or the replacement fails.
在一个实施例中,所述区块链网络210,还用于在确定所述资源方对于所述目标仓单的权利到期的情况下,则拒绝利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。In one embodiment, the blockchain network 210 is further configured to refuse to use the right of the replacement warehouse receipt in exchange for at least part of it when it is determined that the resource party's right to the target warehouse receipt expires The right of the matched target warehouse receipt.
在一个实施例中,所述仓单处理系统还包括:货价监控客户端250;所述货价监控客户端250,用于在满足所述目标仓单对应的实体货物的货价存证条件时,向所述区块链网络提交调用所述仓单置换合约的交易;所述货价存证交易发起的交易中指定了调用所述仓单置换合约时所需的业务输入信息:所述目标仓单对应的实体货物的当前单价;所述区块链网络210,用于执行所述仓单置换合约,比较所述当前单价与历史单价,得到比较结果;所述历史单价为,所述仓单转移申请事件发生时,所述目标仓单对应的实体货物的单价;所述存货方客户端220,用于在监测到所述比较结果满足预设条件,则询问所述存货方是否触发仓单置换申请事件。In one embodiment, the warehouse receipt processing system further includes: a commodity price monitoring client 250; the commodity price monitoring client 250 is configured to satisfy the commodity price inventory condition of the physical goods corresponding to the target warehouse receipt When the warehouse receipt replacement contract is invoked, the transaction of invoking the warehouse receipt replacement contract is submitted to the blockchain network; the business input information required for invoking the warehouse receipt replacement contract is specified in the transaction initiated by the price deposit certificate transaction: the The current unit price of the physical goods corresponding to the target warehouse receipt; the blockchain network 210 is used to execute the warehouse receipt replacement contract, compare the current unit price with the historical unit price, and obtain a comparison result; the historical unit price is, the When the warehouse receipt transfer application event occurs, the unit price of the physical goods corresponding to the target warehouse receipt; the stocker client 220 is configured to ask the stocker whether the trigger is triggered when monitoring that the comparison result meets the preset condition Warehouse receipt replacement application event.
在一个实施例中,所述目标仓单的权利,包括:所述目标仓单的占有权;所述置换仓单的权利,包括:所述置换仓单的占有权。In one embodiment, the right to the target warehouse receipt includes: the right to possess the target warehouse receipt; and the right to the replacement warehouse receipt includes: the right to possess the replacement warehouse receipt.
上述设备中各个部件的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For details of the implementation process of the functions and functions of each component in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the apparatus embodiments, since they basically correspond to the method embodiments, reference may be made to the partial descriptions of the method embodiments for related parts. The apparatus embodiments described above are merely illustrative. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement it without creative effort.
本说明书实施例还提供一种计算机设备,其至少包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,处理器执行所述程序时实现前述的方法。该方法至少包括:上述存货方客户端或上述资源方客户端所执行的方法。Embodiments of the present specification further provide a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the foregoing method when executing the program. The method includes at least: a method executed by the above-mentioned inventory-side client or the above-mentioned resource-side client.
图8示出了本说明书实施例所提供的一种更为具体的计算设备硬件结构示意图,该设备可以包括:处理器1010、存储器1020、输入/输出接口1030、通信接口1040和总线1050。其中处理器1010、存储器1020、输入/输出接口1030和通信接口1040通过总线1050实现彼此之间在设备内部的通信连接。FIG. 8 shows a schematic diagram of a more specific hardware structure of a computing device provided by an embodiment of this specification. The device may include: a processor 1010 , a memory 1020 , an input/output interface 1030 , a communication interface 1040 and a bus 1050 . The processor 1010 , the memory 1020 , the input/output interface 1030 and the communication interface 1040 realize the communication connection among each other within the device through the bus 1050 .
处理器1010可以采用通用的CPU(Central Processing Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本说明书实施例所提供的技术方案。The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. program to implement the technical solutions provided by the embodiments of this specification.
存储器1020可以采用ROM(Read Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器1020可以存储操作系统和其他应用程序,在通过软件或者固件来实现本说明书实施例所提供的技术方案时,相关的程序代码保存在存储器1020中,并由处理器1010来调用执行。The memory 1020 may be implemented in the form of a ROM (Read Only Memory, read-only memory), a RAM (Random Access Memory, random access memory), a static storage device, a dynamic storage device, and the like. The memory 1020 may store an operating system and other application programs. When implementing the technical solutions provided by the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 1020 and invoked by the processor 1010 for execution.
输入/输出接口1030用于连接输入/输出模块,以实现信息输入及输出。输入输出/ 模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。The input/output interface 1030 is used to connect the input/output module to realize information input and output. The input/output/module can be configured in the device as a component (not shown in the figure), or can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, and the like.
通信接口1040用于连接通信模块(图中未示出),以实现本设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。The communication interface 1040 is used to connect a communication module (not shown in the figure), so as to realize the communication interaction between the device and other devices. The communication module may implement communication through wired means (eg, USB, network cable, etc.), or may implement communication through wireless means (eg, mobile network, WIFI, Bluetooth, etc.).
总线1050包括一通路,在设备的各个组件(例如处理器1010、存储器1020、输入/输出接口1030和通信接口1040)之间传输信息。 Bus 1050 includes a path to transfer information between the various components of the device (eg, processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
需要说明的是,尽管上述设备仅示出了处理器1010、存储器1020、输入/输出接口1030、通信接口1040以及总线1050,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含实现本说明书实施例方案所必需的组件,而不必包含图中所示的全部组件。It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include necessary components for normal operation. other components. In addition, those skilled in the art can understand that, the above-mentioned device may only include components necessary to implement the solutions of the embodiments of the present specification, rather than all the components shown in the figures.
本说明书实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前述的方法。该方法至少包括:上述存货方客户端或上述资源方客户端所执行的方法。Embodiments of the present specification further provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the foregoing method is implemented. The method includes at least: a method executed by the above-mentioned inventory-side client or the above-mentioned resource-side client.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本说明书实施例可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本说明书实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本说明书实施例各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the embodiments of the present specification can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of this specification or the parts that make contributions to the prior art may be embodied in the form of software products, and the computer software products may be stored in storage media, such as ROM/RAM, A magnetic disk, an optical disk, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments in this specification.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The systems, devices, modules or units described in the above embodiments may be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation device, e-mail device, game control desktop, tablet, wearable device, or a combination of any of these devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,在实施本说明书实施例方案时 可以把各模块的功能在同一个或多个软件和/或硬件中实现。也可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts. The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated. When implementing the solutions of the embodiments of the present specification, the functions of each module may be integrated into the same module. or multiple software and/or hardware implementations. Some or all of the modules may also be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
以上所述仅是本说明书实施例的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本说明书实施例原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本说明书实施例的保护范围。The above are only specific implementations of the embodiments of the present specification. It should be pointed out that for those skilled in the art, without departing from the principles of the embodiments of the present specification, several improvements and modifications can be made. These Improvements and modifications should also be regarded as the protection scope of the embodiments of the present specification.

Claims (23)

  1. 一种基于区块链的仓单处理方法,应用于仓单处理系统,所述仓单处理系统包括区块链网络与存货方客户端,所述区块链网络部署有仓单置换合约,用于处理表征仓单置换申请事件的交易,所述处理结果存储于所述区块链网络中;所述方法包括:A warehouse receipt processing method based on blockchain, which is applied to a warehouse receipt processing system, the warehouse receipt processing system includes a blockchain network and a stock client client, the blockchain network deploys a warehouse receipt replacement contract, and uses a warehouse receipt replacement contract. For processing the transaction representing the warehouse receipt replacement application event, the processing result is stored in the blockchain network; the method includes:
    存货方客户端向所述区块链网络提交调用所述仓单置换合约的交易,所述存货方客户端发起的交易中指定了调用所述仓单置换合约时所需的业务输入信息:目标仓单标识、置换仓单标识;The stock client client submits a transaction for invoking the warehouse receipt replacement contract to the blockchain network, and the transaction initiated by the stock client client specifies the business input information required for invoking the warehouse receipt replacement contract: target Warehouse receipt identification, replacement warehouse receipt identification;
    所述区块链网络执行所述仓单置换合约,匹配所述存货方目标仓单标识的仓单信息,并利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。The blockchain network executes the warehouse receipt replacement contract, matches the warehouse receipt information identified by the target warehouse receipt of the stockist, and uses the right to replace the warehouse receipt to exchange at least part of the right to the matched target warehouse receipt. .
  2. 如权利要求1所述的方法,所述仓单置换合约还用于处理表征仓单转移申请事件的交易;The method of claim 1, wherein the warehouse receipt replacement contract is further used to process a transaction representing a warehouse receipt transfer application event;
    所述处理表征仓单转移申请事件的交易,包括:The processing represents the transaction of the warehouse receipt transfer application event, including:
    将所述存货方的所述目标仓单的权利转移给资源方;其中,资源方将与所述目标仓单价值匹配的资源的权利转移给所述存货方。Transfer the right of the target warehouse receipt of the inventory party to the resource party; wherein the resource party transfers the right of the resource matching the value of the target warehouse receipt to the inventory party.
  3. 如权利要求2所述的方法,所述区块链网络还包括资源方客户端;The method of claim 2, the blockchain network further comprising a resource-side client;
    所述区块链网络执行所述仓单置换合约的过程中,在换取至少部分所述匹配到的目标仓单的权利之前,还包括:In the process of executing the warehouse receipt replacement contract, the blockchain network further includes:
    所述资源方客户端在监测到所述仓单置换申请事件之后,从所述区块链网络获取所述目标仓单标识与所述置换仓单标识,并提供给所述资源方以审核所述目标仓单与置换仓单是否价值匹配;After monitoring the warehouse receipt replacement application event, the resource client obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier from the blockchain network, and provides them to the resource party for reviewing all Whether the value of the stated target warehouse receipt and the replacement warehouse receipt match;
    响应于资源方的操作,所述资源方客户端向所述区块链网络提交调用所述仓单置换合约的交易,所述资源方客户端发起的交易中指定了所述资源方的第一审核结果;In response to the operation of the resource side, the client side of the resource side submits to the blockchain network a transaction that invokes the warehouse receipt replacement contract, and the transaction initiated by the client side of the resource side specifies the first resource side of the resource side. Audit results;
    相应的,所述区块链网络基于所述资源方的第一审核结果,利用所述置换仓单的权利替换至少部分所述匹配到的目标仓单的权利。Correspondingly, the blockchain network replaces at least part of the right of the matched target warehouse receipt with the right to replace the warehouse receipt based on the first audit result of the resource party.
  4. 如权利要求3所述的方法,将所述存货方的所述目标仓单的权利转移给资源方,包括:The method of claim 3, transferring the right of the target warehouse order of the inventory party to the resource party, comprising:
    解除所述存货方与所述目标仓单之间的关联关系,建立所述资源方与所述目标仓单的关联关系;Release the association relationship between the inventory party and the target warehouse receipt, and establish an association relationship between the resource party and the target warehouse receipt;
    利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利,包括:The right to exchange at least part of the matched target warehouse receipt with the right to replace the warehouse receipt includes:
    解除所述资源方与所述目标仓单的关联关系,解除所述存货方与所述置换仓单的关联关系,建立所述资源方与所述置换仓单的关联关系;Release the association relationship between the resource party and the target warehouse receipt, release the association relationship between the inventory party and the replacement warehouse receipt, and establish an association relationship between the resource party and the replacement warehouse receipt;
    在换取全部所述匹配到的目标仓单的权利的情况下,建立所述存货方与所述目标仓单的关联关系;In the case of exchanging the right to all the matched target warehouse receipts, establish an association relationship between the stockist and the target warehouse receipt;
    在换取部分所述匹配到的目标仓单的权利的情况下,将所述目标仓单拆分成被换取部分仓单与未被换取部分仓单,建立所述存货方与所述被换取部分仓单的关联关系,建立所述资源方与所述未被换取部分仓单的关联关系。In the case of the right to exchange part of the matched target warehouse receipt, split the target warehouse receipt into the exchanged partial warehouse receipt and the non-exchanged partial warehouse receipt, and establish the inventory party and the exchanged part The associated relationship of the warehouse receipt, establishes the associated relationship between the resource party and the unexchanged part of the warehouse receipt.
  5. 如权利要求3所述的方法,所述仓单处理系统还包括仓储方客户端;The method of claim 3, wherein the warehouse receipt processing system further comprises a warehousing client;
    所述区块链网络执行所述仓单置换合约的过程中,在换取至少部分所述匹配到的目标仓单的权利之前,还包括:In the process of executing the warehouse receipt replacement contract, the blockchain network further includes:
    所述仓储方客户端在监测到所述仓单置换申请事件之后,从所述区块链网络获取所 述目标仓单标识与所述置换仓单标识,并提供给所述仓储方进行审核;所述仓储方的审核包括以下至少一种:审核所述目标仓单与置换仓单是否价值匹配;审核所述置换仓单是否真实;审核是否允许转移所述置换仓单对应的实体货物的仓储位置;After monitoring the warehouse receipt replacement application event, the warehouse client client obtains the target warehouse receipt identifier and the replacement warehouse receipt identifier from the blockchain network, and provides them to the warehouse receipt for review; The review by the warehousing party includes at least one of the following: reviewing whether the value of the target warehouse receipt matches the replacement warehouse receipt; reviewing whether the replacement warehouse receipt is genuine; reviewing whether the transfer of the storage of the physical goods corresponding to the replacement warehouse receipt is permitted. Location;
    响应于仓储方的操作,所述仓储方客户端向所述区块链网络提交调用所述仓单置换合约的交易,所述资源方客户端发起的交易中指定了所述仓储方的第二审核结果;In response to the operation of the warehouse, the client of the warehouse submits to the blockchain network a transaction that invokes the warehouse receipt replacement contract, and the transaction initiated by the client of the resource specifies the second of the warehouse. Audit results;
    相应的,所述区块链网络基于所述资源方的第一审核结果与所述仓储方的第二审核结果,利用所述置换仓单的权利替换至少部分所述匹配到的目标仓单的权利。Correspondingly, based on the first audit result of the resource party and the second audit result of the warehouse party, the blockchain network uses the right to replace the warehouse receipt to replace at least part of the matched target warehouse receipt. right.
  6. 如权利要求5所述的方法,所述资源方客户端将所述目标仓单标识与所述置换仓单标识提供给资源方,包括:The method according to claim 5, wherein the resource side client provides the target warehouse receipt identifier and the replacement warehouse receipt identifier to the resource side, comprising:
    所述资源方客户端在确定所述仓储方的第二审核结果表征通过的情况下,将所述目标仓单标识与所述置换仓单标识提供给资源方。The resource side client provides the target warehouse receipt identifier and the replacement warehouse receipt identifier to the resource side when it is determined that the warehousing side's second audit result representation is passed.
  7. 如权利要求1所述的方法,还包括:The method of claim 1, further comprising:
    所述区块链网络在匹配到所述存货方目标仓单标识的仓单信息的情况下,将所述目标仓单置于冻结状态;其中,在所述目标仓单置于冻结状态的情况下,所述区块链网络拒绝针对所述目标仓单的其他交易调用所述仓单置换合约,所述其他交易为与所述仓单置换申请事件无关的交易。The blockchain network places the target warehouse receipt in a frozen state when it matches the warehouse receipt information identified by the stockist's target warehouse receipt; wherein, in the case where the target warehouse receipt is placed in a frozen state Then, the blockchain network refuses to call the warehouse receipt replacement contract for other transactions of the target warehouse receipt, and the other transactions are transactions unrelated to the warehouse receipt replacement application event.
  8. 如权利要求7所述的方法,还包括:The method of claim 7, further comprising:
    所述区块链网络在确定置换成功或置换失败的情况下,解除所述目标仓单的冻结状态。The blockchain network releases the frozen state of the target warehouse receipt when it is determined that the replacement is successful or the replacement fails.
  9. 如权利要求2所述的方法,还包括:The method of claim 2, further comprising:
    所述区块链网络若确定所述资源方对于所述目标仓单的权利到期,则拒绝利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。If the blockchain network determines that the resource party's right to the target warehouse receipt has expired, it refuses to use the right to replace the warehouse receipt to exchange at least part of the right to the matched target warehouse receipt.
  10. 如权利要求2所述的方法,所述仓单处理系统还包括货价监控客户端;所述方法还包括:The method of claim 2, wherein the warehouse receipt processing system further comprises a commodity price monitoring client; the method further comprises:
    每当满足所述目标仓单对应的实体货物的货价存证条件时,所述货价监控客户端向所述区块链网络提交调用所述仓单置换合约的交易;所述货价存证交易发起的交易中指定了调用所述仓单置换合约时所需的业务输入信息:所述目标仓单对应的实体货物的当前单价;Whenever the conditions for the inventory certificate of the physical goods corresponding to the target warehouse receipt are met, the commodity price monitoring client submits to the blockchain network a transaction that invokes the warehouse receipt replacement contract; the commodity price inventory The business input information required when calling the warehouse receipt replacement contract is specified in the transaction initiated by the warrant transaction: the current unit price of the physical goods corresponding to the target warehouse receipt;
    所述区块链网络执行所述仓单置换合约,比较所述当前单价与历史单价,得到比较结果;所述历史单价为,所述仓单转移申请事件发生时,所述目标仓单对应的实体货物的单价;The blockchain network executes the warehouse receipt replacement contract, compares the current unit price and the historical unit price, and obtains a comparison result; the historical unit price is, when the warehouse receipt transfer application event occurs, the target warehouse receipt corresponds to. the unit price of the physical goods;
    所述存货方客户端若从所述区块链网络监测到所述比较结果满足预设条件,则询问所述存货方是否触发仓单置换申请事件。If the client of the stocker detects from the blockchain network that the comparison result satisfies the preset condition, it asks the stocker whether to trigger a warehouse receipt replacement application event.
  11. 如权利要求1所述方法,The method of claim 1,
    所述目标仓单的权利,包括:所述目标仓单的占有权;The right to the target warehouse receipt includes: the right to possess the target warehouse receipt;
    所述置换仓单的权利,包括:所述置换仓单的占有权。The right to replace the warehouse receipt includes: the right to possess the replacement warehouse receipt.
  12. 一种仓单处理系统,包括区块链网络、存货方客户端;所述区块链网络部署有仓单置换合约,用于处理表征仓单置换申请事件的交易,所述处理结果存储于所述区块链网络中;A warehouse receipt processing system, comprising a blockchain network and a stock client client; the blockchain network deploys a warehouse receipt replacement contract for processing transactions representing an application event for warehouse receipt replacement, and the processing results are stored in the warehouse receipt replacement contract. in the blockchain network described above;
    所述存货方客户端,用于所述区块链网络提交调用所述仓单置换合约的交易,所述 存货方客户端发起的交易中指定了调用所述仓单置换合约时所需的业务输入信息:目标仓单标识、置换仓单标识;The inventory client is used for the blockchain network to submit a transaction for invoking the warehouse receipt replacement contract, and the transaction initiated by the inventory client specifies the business required for invoking the warehouse receipt replacement contract Input information: target warehouse receipt ID, replacement warehouse receipt ID;
    所述区块链网络,用于执行所述仓单置换合约,匹配所述存货方目标仓单标识的仓单信息,并利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。The blockchain network is used to execute the warehouse receipt replacement contract, match the warehouse receipt information identified by the inventory party's target warehouse receipt, and use the right to replace the warehouse receipt to exchange at least part of the matched target warehouse single right.
  13. 如权利要求12所述的系统,所述仓单置换合约还用于处理表征仓单转移申请事件的交易;The system of claim 12, wherein the warehouse receipt replacement contract is further used to process transactions representing a warehouse receipt transfer application event;
    所述区块链网络,具体用于将所述存货方的所述目标仓单的权利转移给资源方;其中,资源方将与所述目标仓单价值匹配的资源的权利转移给所述存货方。The blockchain network is specifically used to transfer the right of the target warehouse receipt of the inventory party to the resource party; wherein, the resource party transfers the right of the resource matching the value of the target warehouse receipt to the inventory party square.
  14. 如权利要求13所述的系统,所述系统还包括资源方客户端;The system of claim 13, further comprising a resource-side client;
    所述资源方客户端,还用于在监测到所述仓单置换申请事件之后,从所述区块链网络获取所述目标仓单标识与所述置换仓单标识,并提供给所述资源方以审核所述目标仓单与置换仓单是否价值匹配;The resource-side client is further configured to obtain the target warehouse receipt identifier and the replacement warehouse receipt identifier from the blockchain network after monitoring the warehouse receipt replacement application event, and provide them to the resource party to review whether the target warehouse receipt and the replacement warehouse receipt match in value;
    响应于资源方的操作,向所述区块链网络提交调用所述仓单置换合约的交易,所述资源方客户端发起的交易中指定了所述资源方的第一审核结果;In response to the operation of the resource party, submit a transaction calling the warehouse receipt replacement contract to the blockchain network, and the first audit result of the resource party is specified in the transaction initiated by the resource party client;
    所述区块链网络,还用于基于所述资源方的第一审核结果,利用所述置换仓单的权利替换至少部分所述匹配到的目标仓单的权利。The blockchain network is further configured to replace at least part of the right of the matched target warehouse receipt with the right to replace the warehouse receipt based on the first review result of the resource party.
  15. 如权利要求14所述的系统,The system of claim 14,
    所述区块链网络,具体用于解除所述存货方与所述目标仓单之间的关联关系,建立所述资源方与所述目标仓单的关联关系;The blockchain network is specifically used to release the association relationship between the inventory party and the target warehouse receipt, and establish an association relationship between the resource party and the target warehouse receipt;
    所述区块链网络,具体用于解除所述资源方与所述目标仓单的关联关系,解除所述存货方与所述置换仓单的关联关系,建立所述资源方与所述置换仓单的关联关系;The blockchain network is specifically used to release the association relationship between the resource party and the target warehouse receipt, release the association relationship between the inventory party and the replacement warehouse receipt, and establish the resource party and the replacement warehouse. single association;
    在换取全部所述匹配到的目标仓单的权利的情况下,建立所述存货方与所述目标仓单的关联关系;In the case of exchanging the right to all the matched target warehouse receipts, establish an association relationship between the stockist and the target warehouse receipt;
    在换取部分所述匹配到的目标仓单的权利的情况下,将所述目标仓单拆分成被换取部分仓单与未被换取部分仓单,建立所述存货方与所述被换取部分仓单的关联关系,建立所述资源方与所述未被换取部分仓单的关联关系。In the case of the right to exchange part of the matched target warehouse receipt, split the target warehouse receipt into the exchanged partial warehouse receipt and the non-exchanged partial warehouse receipt, and establish the inventory party and the exchanged part The associated relationship of the warehouse receipt, establishes the associated relationship between the resource party and the unexchanged part of the warehouse receipt.
  16. 如权利要求14所述的系统,所述仓单处理系统还包括仓储方客户端;The system of claim 14, the warehouse receipt processing system further comprising a warehouse client;
    所述仓储方客户端,用于在监测到所述仓单置换申请事件之后,从所述区块链网络获取所述目标仓单标识与所述置换仓单标识,并提供给所述仓储方进行审核;所述仓储方的审核包括以下至少一种:审核所述目标仓单与置换仓单是否价值匹配;审核所述置换仓单是否真实;审核是否允许转移所述置换仓单对应的实体货物的仓储位置;The warehousing side client is used to obtain the target warehouse receipt identifier and the replacement warehouse receipt identifier from the blockchain network after monitoring the warehouse receipt replacement application event, and provide them to the warehousing side Review; the review by the warehousing party includes at least one of the following: reviewing whether the value of the target warehouse receipt matches the replacement warehouse receipt; reviewing whether the replacement warehouse receipt is genuine; reviewing whether the entity corresponding to the replacement warehouse receipt is allowed to be transferred the storage location of the goods;
    所述仓储方客户端,还用于响应于仓储方的操作,向所述区块链网络提交调用所述仓单置换合约的交易,所述资源方客户端发起的交易中指定了所述仓储方的第二审核结果;The warehousing client is further configured to submit a transaction calling the warehouse receipt replacement contract to the blockchain network in response to the warehousing operation, and the warehousing is specified in the transaction initiated by the resource client. Party's second audit result;
    所述区块链网络,还用于基于所述资源方的第一审核结果与所述仓储方的第二审核结果,利用所述置换仓单的权利替换至少部分所述匹配到的目标仓单的权利。The blockchain network is further configured to use the right to replace the warehouse receipt to replace at least part of the matched target warehouse receipt based on the first audit result of the resource party and the second audit result of the warehouse party s right.
  17. 如权利要求16所述的系统,The system of claim 16,
    所述资源方客户端,具体用于在确定所述仓储方的第二审核结果表征通过的情况下,将所述目标仓单标识与所述置换仓单标识提供给资源方。The resource side client is specifically configured to provide the resource side with the identifier of the target warehouse receipt and the identifier of the replacement warehouse receipt when it is determined that the second audit result of the warehouse side is passed.
  18. 如权利要求12所述的系统,The system of claim 12,
    所述区块链网络,还用于在匹配到所述存货方目标仓单标识的仓单信息的情况下,将所述目标仓单置于冻结状态;其中,在所述目标仓单置于冻结状态的情况下,所述区块链网络拒绝针对所述目标仓单的其他交易调用所述仓单置换合约,所述其他交易为与所述仓单置换申请事件无关的交易。The blockchain network is further configured to place the target warehouse receipt in a frozen state under the condition that the warehouse receipt information identified by the target warehouse receipt of the stockist is matched; In the frozen state, the blockchain network refuses to call the warehouse receipt replacement contract for other transactions of the target warehouse receipt, and the other transactions are transactions unrelated to the warehouse receipt replacement application event.
  19. 如权利要求18所述的系统,The system of claim 18,
    所述区块链网络,还用于在确定置换成功或置换失败的情况下,解除所述目标仓单的冻结状态。The blockchain network is further configured to release the frozen state of the target warehouse receipt when it is determined that the replacement is successful or the replacement fails.
  20. 如权利要求13所述的系统,The system of claim 13,
    所述区块链网络,还用于在确定所述资源方对于所述目标仓单的权利到期的情况下,则拒绝利用所述置换仓单的权利换取至少部分所述匹配到的目标仓单的权利。The blockchain network is further configured to refuse to use the right to replace the warehouse receipt to exchange at least part of the matched target warehouse when it is determined that the resource party's right to the target warehouse receipt expires. single right.
  21. 如权利要求13所述的系统,所述仓单处理系统还包括:货价监控客户端;The system of claim 13, wherein the warehouse receipt processing system further comprises: a commodity price monitoring client;
    所述货价监控客户端,用于在满足所述目标仓单对应的实体货物的货价存证条件时,向所述区块链网络提交调用所述仓单置换合约的交易;所述货价存证交易发起的交易中指定了调用所述仓单置换合约时所需的业务输入信息:所述目标仓单对应的实体货物的当前单价;The commodity price monitoring client is configured to submit a transaction for invoking the warehouse receipt replacement contract to the blockchain network when the commodity price certificate condition of the physical commodity corresponding to the target warehouse receipt is satisfied; The business input information required when invoking the warehouse receipt replacement contract is specified in the transaction initiated by the price deposit certificate transaction: the current unit price of the physical goods corresponding to the target warehouse receipt;
    所述区块链网络,用于执行所述仓单置换合约,比较所述当前单价与历史单价,得到比较结果;所述历史单价为,所述仓单转移申请事件发生时,所述目标仓单对应的实体货物的单价;The blockchain network is used to execute the warehouse receipt replacement contract, compare the current unit price with the historical unit price, and obtain a comparison result; the historical unit price is, when the warehouse receipt transfer application event occurs, the target warehouse The unit price of the physical goods corresponding to the order;
    所述存货方客户端,用于在监测到所述比较结果满足预设条件,则询问所述存货方是否触发仓单置换申请事件。The stocker client is configured to ask the stocker whether to trigger a warehouse receipt replacement application event after monitoring that the comparison result satisfies a preset condition.
  22. 如权利要求12所述系统,所述目标仓单的权利,包括:所述目标仓单的占有权;所述置换仓单的权利,包括:所述置换仓单的占有权。According to the system according to claim 12, the right of the target warehouse receipt includes: the possession right of the target warehouse receipt; the right of the replacement warehouse receipt includes: the possession right of the replacement warehouse receipt.
  23. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如权利要求1至11任一项中存货方客户端、或资源方客户端所执行的方法。A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, when the processor executes the program, the storage method according to any one of claims 1 to 11 is implemented. The method executed by the client, or resource-side client.
PCT/CN2022/071811 2021-02-05 2022-01-13 Warehouse receipt processing method based on blockchain, and warehouse receipt processing system WO2022166557A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110164586.5A CN112990811B (en) 2021-02-05 2021-02-05 Block chain-based warehouse receipt processing method and warehouse receipt processing system
CN202110164586.5 2021-02-05

Publications (1)

Publication Number Publication Date
WO2022166557A1 true WO2022166557A1 (en) 2022-08-11

Family

ID=76348441

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/071811 WO2022166557A1 (en) 2021-02-05 2022-01-13 Warehouse receipt processing method based on blockchain, and warehouse receipt processing system

Country Status (2)

Country Link
CN (1) CN112990811B (en)
WO (1) WO2022166557A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112990811B (en) * 2021-02-05 2022-05-31 支付宝(杭州)信息技术有限公司 Block chain-based warehouse receipt processing method and warehouse receipt processing system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844978A (en) * 2017-11-30 2018-03-27 中链科技有限公司 A kind of staple commodities transaction processing method and system based on block chain
CN110060056A (en) * 2019-03-18 2019-07-26 阿里巴巴集团控股有限公司 A kind of business confirmation method and system based on block chain intelligence contract
CN112990811A (en) * 2021-02-05 2021-06-18 支付宝(杭州)信息技术有限公司 Block chain-based warehouse receipt processing method and warehouse receipt processing system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107705203A (en) * 2017-08-08 2018-02-16 迅鳐成都科技有限公司 Financial Information sharing method in a kind of steel transaction based on block chain
US10936581B2 (en) * 2019-08-30 2021-03-02 Advanced New Technologies Co., Ltd. Blockchain transaction processing method and apparatus
CN111429057B (en) * 2020-03-19 2024-05-28 建信金融科技有限责任公司 Digital warehouse management method and device
CN111640002A (en) * 2020-05-12 2020-09-08 普洛斯科技(重庆)有限公司 Block chain-based mortgage loan method and device
CN111930754A (en) * 2020-09-15 2020-11-13 支付宝(杭州)信息技术有限公司 Method, device and equipment for generating and updating block chain warehouse list

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844978A (en) * 2017-11-30 2018-03-27 中链科技有限公司 A kind of staple commodities transaction processing method and system based on block chain
CN110060056A (en) * 2019-03-18 2019-07-26 阿里巴巴集团控股有限公司 A kind of business confirmation method and system based on block chain intelligence contract
CN112990811A (en) * 2021-02-05 2021-06-18 支付宝(杭州)信息技术有限公司 Block chain-based warehouse receipt processing method and warehouse receipt processing system

Also Published As

Publication number Publication date
CN112990811B (en) 2022-05-31
CN112990811A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
JP6852163B2 (en) Asset transfer reversal methods, equipment, and electronic devices
CN108876380B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
US11321783B2 (en) Method and device for data processing based on blockchain
CN109242453B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
CN109377216B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
KR102412444B1 (en) Money flow method and apparatus, and electronic device
TWI699726B (en) Block chain transaction reconciliation method and device, and electronic equipment
TWI733063B (en) Asset transfer method and device, electronic equipment
US11924352B2 (en) Systems, apparatus and methods for local state storage of distributed ledger data without cloning
JP2019537148A (en) System and method for reducing fraud in trade insurance and finance
TWI729494B (en) Collection record processing method and system based on blockchain smart contract
US20080162343A1 (en) Method and system for user payment account management
EP2702547A2 (en) Online payment method and device
CN113327165A (en) Transaction method based on block chain
TW202312068A (en) Systems and methods for blockchain network congestion-adaptive digital asset event handling
WO2020078095A1 (en) Method and apparatus for issuing digital assets, method and apparatus for transferring digital assets, and method and apparatus for realizing online financing
WO2022166557A1 (en) Warehouse receipt processing method based on blockchain, and warehouse receipt processing system
CN116051106A (en) Abnormal order processing method and device
CN112801557A (en) Risk evaluation method and device based on block chain
KR102680150B1 (en) Context-based filtering within a subset of network nodes implementing the trading system
JP7460348B2 (en) Transaction processing system and method enabling blockchain expansion
TWI696970B (en) Interbank transaction failure noticing system based on blockchain and method thereof
WO2014043389A2 (en) Data processing method and system
WO2022183913A1 (en) Blockchain-based real right interaction
CA3138130A1 (en) System and method for real-time processing of resource transfers

Legal Events

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

Ref document number: 22748836

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22748836

Country of ref document: EP

Kind code of ref document: A1