Method, apparatus, and device for generating and updating blockchain warehouse receipt
AssigneeAlipay (Hangzhou) Information Technology Co., Ltd.
InventorsWenhui Liu, Yujun Peng, Erfeng Yan
Life of this patent
Estimating the term…
Abstract
A method for generating a blockchain warehouse receipt includes: obtaining item registration information provided by a first user; generating a blockchain warehouse receipt including basic type fields according to the item registration information by invoking a first smart contract, the basic type fields including a warehouse receipt type field, a warehouse receipt ID field, a generation time field, a state field, a category field, a property owner field, a quantity field, and a weight field; and storing the blockchain warehouse receipt in a blockchain network.
Claims21
A method for generating a blockchain warehouse receipt, comprising:
- obtaining item registration information provided by a first user;
- generating, by invoking a first smart contract, a blockchain warehouse receipt comprising basic type fields according to the item registration information, the basic type fields comprising a warehouse receipt type field, a warehouse receipt ID field, a generation time field, a state field, a category field, a property owner field, a quantity field, and a weight field;
- storing the blockchain warehouse receipt in a blockchain network;
- obtaining a transfer application for the blockchain warehouse receipt;
- and
- invoking a second smart contract according to the transfer application to perform:
- determining a transfer warehouse receipt ID, information of the first user, and information of a second user;
- querying the blockchain network for property owner information corresponding to the transfer warehouse receipt ID;
- electronically sending the transfer application to the second user when the property owner information is consistent with the information of the first user;
- changing property owner information corresponding to the property owner field on the blockchain warehouse receipt to the information of the second user after confirmation information from the second user is received;
- and
- storing an updated blockchain warehouse receipt in the blockchain network.
A device, comprising:
- a processor;
- and
- a memory storing instructions executable by the processor,
- wherein the processor is configured to:
- obtain item registration information provided by a first user;
- generate, by invoking a first smart contract, a blockchain warehouse receipt comprising basic type fields according to the item registration information, the basic type fields comprising a warehouse receipt type field, a warehouse receipt ID field, a generation time field, a state field, a category field, a property owner field, a quantity field, and a weight field;
- store the blockchain warehouse receipt in a blockchain network;
- obtain a transfer application for the blockchain warehouse receipt;
- and
- invoke a second smart contract according to the transfer application to perform:
- determining a transfer warehouse receipt ID, information of the first user, and information of a second user;
- querying the blockchain network for property owner information corresponding to the transfer warehouse receipt ID;
- electronically sending the transfer application to the second user when the property owner information is consistent with the information of the first user;
- changing property owner information corresponding to the property owner field on the blockchain warehouse receipt to the information of the second user after confirmation information from the second user is received;
- and
- storing an updated blockchain warehouse receipt in the blockchain network.
Dependencies are inferred from the claim text.