CN113220786B - Logistics certificate storage method, computer equipment and storage medium - Google Patents
Logistics certificate storage method, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113220786B CN113220786B CN202110568995.1A CN202110568995A CN113220786B CN 113220786 B CN113220786 B CN 113220786B CN 202110568995 A CN202110568995 A CN 202110568995A CN 113220786 B CN113220786 B CN 113220786B
- Authority
- CN
- China
- Prior art keywords
- utxo
- transaction
- commodity
- field
- receiving
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2365—Ensuring data consistency and integrity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
- G06Q10/0832—Special goods or special handling procedures, e.g. handling of hazardous or fragile goods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3823—Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- General Business, Economics & Management (AREA)
- General Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Data Mining & Analysis (AREA)
- Finance (AREA)
- Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Development Economics (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Bioethics (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Computing Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a logistics certificate storage method, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a registered commodity transaction; generating a commodity UTXO, and updating an administrator field of the commodity UTXO into a public key of a merchant; receiving a first authorized transaction; recording the corresponding relation between the reference right of the commodity UTXO and the delivery person on a block chain; receiving a purchase acquisition transaction; generating an express UTXO, updating a manager field of the express UTXO to a public key of a delivery person, and updating a position field of the express UTXO to position information of the delivery person; receiving a second authorization transaction; updating a signing field of the express UTXO into a public key of a user; receiving a first receiving transaction; and when the public key held by the user is the same as the public key of the signing field, updating the signed field of the express UTXO into a signed field, and updating the position field of the express UTXO into the delivery address of the commodity. The method and the device can effectively prevent conflicting logistics information from being recorded on the block chain.
Description
Technical Field
The application relates to the technical field of block chains, in particular to a logistics certificate storage method, computer equipment and a storage medium.
Background
At present, a logistics system on a block chain basically adopts a mode of evidence storage, namely, the whole logistics process is stored on the block chain, and therefore tampering is not achieved.
Assuming a scenario that a delivery person needs to transport an article A from Beijing to Guangzhou, and the delivery person assumes that the article A should pass through Hangzhou, a transaction tx1 is generated, which indicates that the article A is sent to Guangzhou by Hangzhou; in practice, the delivery person changes the route, so that the A route passes the combined fertilizer, and the delivery person does not remember that tx1 was generated and generates a transaction tx2, which indicates that the A route is sent to Guangzhou; because only evidence is stored on the block chain, the block chain records that A is sent to Guangzhou from Hangzhou and also records that A is sent to Guangzhou from combined fertilizer. The above mechanism has no constraint on conflicting logistics information.
Disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies of the prior art, it is desirable to provide a logistics verification method, a computer device, and a storage medium for preventing conflicting logistics information from being recorded on a block chain.
In a first aspect, the present invention provides a method for storing logistics certificates applicable to blockchain nodes, where the blockchain nodes are configured with a logistics contract, where the method includes:
receiving a first registered commodity transaction; wherein the first registered merchandise transaction is generated by a first merchant of the first merchant selling the first merchandise through the blockchain in response to a first merchant request;
generating a first commodity UTXO through a logistics contract, and updating an administrator field of the first commodity UTXO into a first public key of a first merchant;
receiving a first authorized transaction; wherein the first authorized transaction is generated by the first merchant in response to the first merchant authorizing the first item of merchandise UTXO to the first delivery person;
recording the reference right of the first commodity UTXO and the first corresponding relation of the first delivery person on the block chain through a logistics contract;
receiving a first package transaction; wherein the first package offer transaction is generated by the first terminal of the first delivery person in response to the package offering of the first item;
judging whether the first delivery person has the reference right of the first commodity UTXO through the logistics contract:
if so, generating a first express UTXO, updating a manager field of the first express UTXO to a second public key of the first delivery person, and updating a position field of the first express UTXO to position information of the first delivery person;
receiving a second authorization transaction; wherein the second authorization transaction is generated by the first terminal in response to a modification right authorizing the sign-in field of the first express UTXO to a first user subscribing to the first commodity;
updating the signing field of the first express UTXO into a third public key of the first user through a logistics contract;
receiving a first receiving transaction; wherein the first receiving transaction is generated by a first user of the first user in response to the first user signing for the first item;
and judging whether the public key held by the first user is the same as the third public key of the signing field through the logistics contract:
if yes, the signed field of the first express delivery UTXO is updated to be signed, and the position field of the first express delivery UTXO is updated to be the delivery address of the first commodity.
In a second aspect, the present invention also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a logistics verification method provided according to embodiments of the present invention.
In a third aspect, the present invention further provides a storage medium storing a computer program, where the computer program makes a computer execute the logistics certification method provided in accordance with the embodiments of the present invention.
The logistics certificate storing method, the computer equipment and the storage medium provided by the embodiments of the invention receive the transaction of the first registered commodity; generating a first commodity UTXO through a logistics contract, and updating an administrator field of the first commodity UTXO into a first public key of a first merchant; receiving a first authorized transaction; recording the reference right of the first commodity UTXO and the first corresponding relation of the first delivery person on the block chain through a logistics contract; receiving a first package transaction; judging whether the first delivery person has the reference right of the first commodity UTXO through the logistics contract: if yes, generating a first express UTXO, updating a manager field of the first express UTXO to be a second public key of the first delivery person, and updating a position field of the first express UTXO to be position information of the first delivery person; receiving a second authorized transaction; updating the signing field of the first express UTXO into a third public key of the first user through a logistics contract; receiving a first receiving transaction; and judging whether the public key held by the first user is the same as the third public key of the signing field through the logistics contract: and if so, updating the signed field of the first express UTXO into signed field, and updating the position field of the first express UTXO into the delivery address of the first commodity, so as to prevent conflicting logistics information from being recorded on the block chain.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a logistics verification method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a logistics verification method according to an embodiment of the present invention. As shown in fig. 1, in this embodiment, the present invention provides a logistics certification method applicable to a blockchain node, where the blockchain node is configured with a logistics contract, and a parent UTXO has a modification right of a child UTXO, where the method includes:
s10: receiving a first registered commodity transaction; wherein the first registered merchandise transaction is generated by a first merchant of the first merchant selling the first merchandise through the blockchain in response to a first merchant request;
s11: generating a first commodity UTXO through a logistics contract, and updating an administrator field of the first commodity UTXO into a first public key of a first merchant;
s12: receiving a first authorized transaction; wherein the first authorized transaction is generated by the first merchant in response to the first merchant authorizing the first item of merchandise UTXO to the first delivery person;
s13: recording the reference right of the first commodity UTXO and the first corresponding relation of the first delivery person on the block chain through a logistics contract;
s14: receiving a first package transaction; wherein the first package offer transaction is generated by the first terminal of the first delivery person in response to the package offering of the first item;
s151: judging whether the first delivery person has the reference right of the first commodity UTXO through the logistics contract:
if yes, go to step S152: generating a first express UTXO, updating a manager field of the first express UTXO to be a second public key of a first delivery person, and updating a position field of the first express UTXO to be position information of the first delivery person;
s16: receiving a second authorized transaction; wherein the second authorization transaction is generated by the first terminal in response to a modification right authorizing the sign-in field of the first express UTXO to a first user subscribing to the first commodity;
s17: updating the signing field of the first express UTXO into a third public key of the first user through a logistics contract;
s18: receiving a first receiving transaction; wherein the first receiving transaction is generated by a first user of the first user in response to the first user signing for the first item;
s191: and judging whether the public key held by the first user is the same as the third public key of the signing field through the logistics contract:
if yes, go to step S192: and updating the signed field of the first express UTXO to be signed, and updating the position field of the first express UTXO to be the delivery address of the first commodity.
Specifically, suppose that a merchant a requests to sell an article G through a blockchain, a user B purchases an article G through 1000 yuan online;
the merchant end of the merchant A responds to the request of the merchant A to sell the commodity G through the block chain, generates a commodity registration transaction tx1 and sends the commodity registration transaction tx1 to the block chain network;
the blockchain node performs step S10, receiving tx 1;
the block chain node executes step S11, generates UTXO1 by the logistics contract, and updates the administrator field of UTXO1 to public key pub (a) of merchant a; it should be noted that an administrator of the UTXO owns the UTXO and all the fields of the UTXO referring to the UTXO are modified, and those skilled in the art will understand that "generating the public key pub (a) of the UTXO1 … … by the logistics contract" here should be performed after tx1 has passed the necessary verification process, such as whether tx1 has sufficient commission and the like; if the above-described verification process is unsuccessful, tx1 execution fails; other transactions also pass through the verification process, and are not described in detail later;
a user B purchases a commodity G through 1000 yuan online, after a merchant A receives 1000 yuan of payment, a client of the merchant A responds to the reference right of UTXO1 authorized by the merchant A to a delivery person C, generates an authorized transaction tx2 and sends the transaction tx2 to a block chain network; those skilled in the art will appreciate that if merchant a is unsure which shipper will pick up item G, multiple shippers may be granted the reference to UTXO 1;
the blockchain node performs step S12, receiving tx 2;
the blockchain link point executes step S13, and records the correspondence between UTXO1 and carrier C on the blockchain by the logistics contract; namely, UTXO1, pub (C) is recorded on the block chain;
the terminal of the delivery person C responds to the acquisition commodity G, generates an acquisition transaction tx3 and sends the acquisition transaction tx3 to the block chain network;
the blockchain node performs step S14, receiving tx 3;
the block link point executes step S151 to determine whether the deliverer C has the reference right of UTXO1 by the logistics contract:
because the correspondence includes pub (C), the delivery person C has the right of reference of UTXO1, the block link point executes step S152 to generate UTXO2, update the administrator field of UTXO2 to pub (C), and update the location field of UTXO2 to the location information of the delivery person C, assuming beijing;
the terminal of the delivery person C generates an authorized transaction tx4 and transmits it to the blockchain network in response to authorizing the user B for the modification right of the sign-in field of the UTXO 2; it will be understood by those skilled in the art that courier C may obtain, i.e., user B's public key, through a variety of channels to authorize the sign-in field of UTXO2, e.g., merchant a may provide pub (B) to shipper C, or, without limitation, here;
the blockchain node performs step S16, receiving tx 4;
the block link point performs step S17 to update the signoff field of UTXO2 by a logistics contract to: pub (B);
the user side of the user B responds to the user B to sign for receiving the commodity G, generates a goods receiving transaction tx5 and sends the goods receiving transaction tx5 to the block chain network;
the blockchain node performs step S18, receiving tx 5;
the block chain node executes step S191 to determine whether the public key held by the user B is the same as the public key in the sign-in field of the UTXO2 by the logistics contract:
since the public key held by the user B is pub (B) and the public key in the sign-in field of the UTXO2 is pub (B), and the same is true, the block chain node executes step S192 to update the sign-in field of the UTXO2 to sign in and update the location field of the UTXO2 to the receiving address of the commodity G, assuming that it is hangzhou.
In further embodiments, the method for subscribing the commodity G is not necessarily offline, and may also be configured to subscribe through the blockchain network according to actual needs, that is, before the blockchain node receives the first authorized transaction, the method further includes: receiving a first subscription transaction; the first subscription transaction is generated by the first user terminal in response to the first user request for purchasing the first commodity, and comprises a receiving address; upon successful performance of the first subscription transaction, freezing assets for subscribing to the first commodity paid for the first subscription transaction;
after the "updating the location field of the first express UTXO to the shipping address of the first commodity" of the method, the method further includes: unfreezing the asset and transferring the asset to a first merchant account;
the method can realize commodity G subscription through the block chain network, and can also realize the same technical effect.
The above embodiment prevents conflicting logistics information from being recorded on the blockchain, and the full life cycle of each UTXO is recorded on the blockchain.
Preferably, before receiving the first authorized transaction, the method further comprises:
receiving a first subscription transaction; the first subscription transaction is generated by the first user terminal in response to the first user request for purchasing the first commodity, and comprises a receiving address;
upon successful performance of the first subscription transaction, freezing assets for subscribing to the first commodity paid for the first subscription transaction;
after the location field of the first express delivery UTXO is updated to the receiving address of the first commodity, the method further includes:
the asset is thawed and credited to a first merchant account.
The logistics evidence preservation principle of the above embodiment can refer to the method shown in fig. 1, and is not described herein again.
Preferably, the first express UTXO includes a first hash value of the first commodity UTXO; determining whether the first delivery person has the right to refer to the first item UTXO comprises:
finding a first commodity UTXO through the first hash value;
and inquiring the first corresponding relation on the block chain through the first commodity UTXO to judge whether the first delivery person has the reference right of the first commodity UTXO.
In the above embodiment, the block chain node finds the commodity UTXO quickly according to the hash value of the commodity UTXO to determine whether some characters (deliverers, etc.) have the right to refer to the first commodity UTXO; in more embodiments, the mapping relationship between the express UTXO and the commodity UTXO may be configured according to actual requirements, for example, if the express UTXO includes the UTXOID of the commodity UTXO, the block link points may quickly find the commodity UTXO according to the UTXOID of the commodity UTXO to determine whether some roles (delivery personnel, etc.) have the right to refer to the first commodity UTXO, so that the same technical effect may be achieved.
Preferably, before receiving the first registered commodity transaction, the method further comprises:
before receiving the first registered commodity transaction, the method further comprises the following steps:
receiving a first part production transaction; wherein the first part production transaction is generated by the second terminal of the first manufacturer in response to producing the first part for assembling the first commodity;
the first part UTXO is generated by the logistics contract and the administrator field of the first part UTXO is updated to the fourth public key of the first manufacturer.
Further preferably, after updating the administrator field of the first part UTXO to the fourth public key of the first manufacturer, the method further includes:
receiving a first administrator assignment transaction; wherein the first administrator assignment transaction is generated by the second terminal in response to the first manufacturer delivering the number of first parts to the first merchant;
the administrator field of the first part UTXO is updated to the first public key by means of a logistics contract.
It will be appreciated by those skilled in the art that when a part is delivered by a manufacturer to a merchant, which assembles the part into a commercial product, the part UTXO is now part of the commercial product UTXO and the part UTXO should be identical to the administrator of the commercial product UTXO so that the administrator field of the part UTXO should be updated with the first public key when the first manufacturer delivers the first part for assembly into the first commercial product.
It will also be appreciated by those skilled in the art that the shipper C may transfer the right to refer to the item UTXO to other shippers; for example, when the deliverer C hands over the article G with the deliverer D, the terminal of the deliverer C should generate a reference right transfer transaction and transmit it to the blockchain network, and the blockchain node updates the correspondence to "UTXO 1: pub (D)", through a logistics contract.
It should also be understood by those skilled in the art that, when the goods G are handed over between the deliverer C and the deliverer D, the generated quotation transfer transaction can also be configured as a multiple signature type transaction according to actual requirements, that is, when the signature information of the quotation transfer transaction is provided with the signature of the deliverer C and the signature of the deliverer D, the quotation transfer transaction can be correctly executed.
The above embodiment records the composition dependency relationship between the parts and the finished product on the blockchain.
Preferably, the logistics contract is configured with a destruction duration, and the method further comprises:
and destroying the first express UTXO when the fact that the signed field of the first express UTXO is updated to be signed and the destroying time length is passed is monitored.
It will be appreciated by those skilled in the art that the block link point may determine the specific destruction time according to actual requirements, for example, determine the destruction time according to the generation time and the destruction duration of the first block packaged with the first receiving transaction, or determine the destruction time according to the generation time and the destruction duration of the first receiving transaction, which may achieve the same technical effect.
In more embodiments, the destruction duration may be configured in the transaction according to actual requirements, for example, the destruction duration of the first express UTXO is configured in the first package transaction, and the same technical effect may be achieved.
In more embodiments, the destruction permission of the UTXO may also be configured according to actual requirements, for example, the first express UTXO is configured as a non-destructible UTXO, or the first express UTXO is configured as a destructible UTXO; when the first express delivery UTXO is a destroyable UTXO, a destruction right can be further specified, for example, a user configured with a signed commodity has the destruction right of the express delivery UTXO; the first merchant should also generate an authorized transaction of the destruction right, and the block chain node updates the destruction field of the first express UTXO to the third public key of the first user through a logistics contract; and after the position field of the first express UTXO is updated to the receiving address of the first commodity, the user side further needs to generate a destruction transaction and send the destruction transaction to the block chain, and the block chain node destroys (or after the destruction moment) the first express UTXO when the first user is judged to have the destruction right of the first express UTXO through a logistics contract.
Those skilled in the art should understand that not only the first express UTXO, but also the commodity UTXO and the component UTXO may be destroyed according to actual requirements.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
As shown in fig. 2, as another aspect, the present application also provides a computer apparatus including one or more Central Processing Units (CPUs) 201 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)202 or a program loaded from a storage section 208 into a Random Access Memory (RAM) 203. In the RAM203, various programs and data necessary for the operation of the computer apparatus are also stored. The CPU201, ROM202, and RAM203 are connected to each other via a bus 204. An input/output (I/O) interface 205 is also connected to bus 204.
The following components are connected to the I/O interface 205: an input portion 206 including a keyboard, a mouse, and the like; an output section 207 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 208 including a hard disk and the like; and a communication section 209 including a network interface card such as a LAN card, a modem, or the like. The communication section 209 performs communication processing via a network such as the internet. A drive 210 is also connected to the I/O interface 205 as needed. A removable medium 211 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 210 as necessary, so that a computer program read out therefrom is mounted into the storage section 208 as necessary.
In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 209 and/or installed from the removable medium 211.
As still another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above embodiment; or it may be a computer-readable storage medium that exists separately and is not assembled into a computer device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present application.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (8)
1. A logistics certificate storage method is characterized in that a logistics contract is configured on a block chain node, and the method comprises the following steps:
receiving a first registered commodity transaction; wherein the first registered merchandise transaction is generated by a first merchant terminal of a first merchant in response to the first merchant requesting to sell a first merchandise via a blockchain;
generating a first commodity UTXO through the logistics contract, and updating an administrator field of the first commodity UTXO into a first public key of the first merchant;
receiving a first authorized transaction; wherein the first authorized transaction is generated by the first merchant terminal in response to the first merchant authorizing a referral right of the first item of merchandise UTXO to a first delivery person;
recording the reference right of the first commodity UTXO and the first corresponding relation of the first delivery person on a block chain through the logistics contract;
receiving a first package transaction; wherein the first package pull transaction is generated by the first terminal of the first forwarder in response to the package pull of the first item;
determining, by the logistics contract, whether the first delivery person has the right to reference the first commodity UTXO:
if yes, generating a first express delivery UTXO, updating a manager field of the first express delivery UTXO to be a second public key of the first delivery person, and updating a position field of the first express delivery UTXO to be position information of the first delivery person;
receiving a second authorized transaction; wherein the second authorized transaction is generated by the first terminal in response to a modification right authorizing the sign-in field of the first express UTXO to a first user subscribing to the first commodity;
updating the signing field of the first express UTXO into a third public key of the first user through the logistics contract;
receiving a first receiving transaction; wherein the first shipment transaction is generated by a first user of the first user in response to the first user signing for the first item;
judging whether the public key held by the first user is the same as the third public key of the signing field through the logistics contract:
if yes, updating the signed field of the first express UTXO to be signed, and updating the position field of the first express UTXO to be the delivery address of the first commodity.
2. The method of claim 1, wherein prior to receiving the first authorized transaction, further comprising:
receiving a first subscription transaction; wherein the first subscription transaction is generated by the first user terminal in response to the first user requesting to purchase the first item, the first subscription transaction including the shipping address;
upon successful execution of the first subscription transaction, freezing assets for subscribing to the first commodity paid for by the first subscription transaction;
after the updating of the location field of the first express delivery UTXO to the shipping address of the first commodity, the method further includes:
defreezing and transferring the asset to the first merchant account.
3. The method of claim 1, wherein the first courier UTXO comprises a first hash value of the first commodity UTXO; the determining whether the first delivery person has the reference right of the first commodity UTXO comprises:
finding the first commodity UTXO through the first hash value;
and inquiring the first corresponding relation on a block chain through the first commodity UTXO to judge whether the first delivery person has the reference right of the first commodity UTXO.
4. The method of claim 1, wherein prior to receiving the first registered merchandise transaction, further comprising:
receiving a first part production transaction; wherein the first part production transaction is generated by a second terminal of a first manufacturer in response to producing a first part for assembling the first commodity;
a first part UTXO is generated by the logistics contract and an administrator field of the first part UTXO is updated to a fourth public key of the first manufacturer.
5. The method of claim 4, wherein updating the administrator field of the first part UTXO to the fourth public key of the first manufacturer further comprises:
receiving a first administrator assignment transaction; wherein the first administrator assignment transaction is generated by the second terminal in response to the first manufacturer delivering the first part to the first merchant;
updating an administrator field of the first part UTXO to the first public key via the logistics contract.
6. The method of claim 1, wherein the logistics contract is configured with a destruction duration, the method further comprising:
and destroying the first express UTXO when the fact that the signed field of the first express UTXO is updated to be signed and the destruction time length is passed is monitored.
7. A computer device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-6.
8. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110568995.1A CN113220786B (en) | 2021-05-25 | 2021-05-25 | Logistics certificate storage method, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110568995.1A CN113220786B (en) | 2021-05-25 | 2021-05-25 | Logistics certificate storage method, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113220786A CN113220786A (en) | 2021-08-06 |
CN113220786B true CN113220786B (en) | 2022-05-24 |
Family
ID=77098189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110568995.1A Active CN113220786B (en) | 2021-05-25 | 2021-05-25 | Logistics certificate storage method, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113220786B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3257191A1 (en) * | 2016-02-23 | 2017-12-20 | Nchain Holdings Limited | Registry and automated management method for blockchain-enforced smart contracts |
CN110335149A (en) * | 2019-06-19 | 2019-10-15 | 华中科技大学 | A kind of assets based on block chain really weigh transaction realization method and system |
CN110535639A (en) * | 2019-08-20 | 2019-12-03 | 深圳市网心科技有限公司 | Block chain assets disposition method and relevant device based on more asset models |
CN111967860A (en) * | 2019-05-20 | 2020-11-20 | 深圳市红砖坊技术有限公司 | Transaction system, method and node in transaction system |
CN112598411A (en) * | 2020-12-25 | 2021-04-02 | 杭州复杂美科技有限公司 | Retrievable privacy authorization transfer method, apparatus and storage medium |
CN112767163A (en) * | 2021-01-22 | 2021-05-07 | 支付宝(杭州)信息技术有限公司 | Block chain-based digital commodity transaction method and device |
-
2021
- 2021-05-25 CN CN202110568995.1A patent/CN113220786B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3257191A1 (en) * | 2016-02-23 | 2017-12-20 | Nchain Holdings Limited | Registry and automated management method for blockchain-enforced smart contracts |
CN111967860A (en) * | 2019-05-20 | 2020-11-20 | 深圳市红砖坊技术有限公司 | Transaction system, method and node in transaction system |
CN110335149A (en) * | 2019-06-19 | 2019-10-15 | 华中科技大学 | A kind of assets based on block chain really weigh transaction realization method and system |
CN110535639A (en) * | 2019-08-20 | 2019-12-03 | 深圳市网心科技有限公司 | Block chain assets disposition method and relevant device based on more asset models |
CN112598411A (en) * | 2020-12-25 | 2021-04-02 | 杭州复杂美科技有限公司 | Retrievable privacy authorization transfer method, apparatus and storage medium |
CN112767163A (en) * | 2021-01-22 | 2021-05-07 | 支付宝(杭州)信息技术有限公司 | Block chain-based digital commodity transaction method and device |
Also Published As
Publication number | Publication date |
---|---|
CN113220786A (en) | 2021-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170373849A1 (en) | Transaction agents and systems | |
US11880478B2 (en) | Distribution management apparatus, distribution management system, and distribution management method | |
CN112767163B (en) | Block chain-based digital commodity transaction method and device | |
KR20220008598A (en) | Method of dealing used goods therefor | |
Thakur et al. | Scalable and secure product serialization for multi-party perishable good supply chains using blockchain | |
US11888991B2 (en) | Universally trusted bridges for heterogenous blockchain networks | |
Duong-Trung et al. | Multi-sessions mechanism for decentralized cash on delivery system | |
US11645605B2 (en) | Contextual IoT with blockchain | |
CN112488725B (en) | Private authorized transfer method, device and storage medium | |
US11893598B1 (en) | On-chain loyalty program management | |
US9122733B2 (en) | Generation of electronic pedigree | |
CN112766854B (en) | Block chain-based digital commodity transaction method and device | |
US11516001B2 (en) | Method and system for generalized provenance solution for blockchain supply chain applications | |
CN111091399A (en) | Block chain-based fidelity traceability method and system for fast-selling goods | |
CN113269641B (en) | Transaction management method, device and system | |
Singh et al. | A framework for IoT and blockchain based smart food chain management system | |
CN113220786B (en) | Logistics certificate storage method, computer equipment and storage medium | |
CN112950117B (en) | Transaction method, computer device and storage medium | |
US20110302094A1 (en) | Manufacturing and distribution to avoid counterfeit products | |
WO2022183913A1 (en) | Blockchain-based real right interaction | |
US20220114266A1 (en) | Agents and systems for right?s management | |
CN114912930A (en) | Digital certificate authentication method, terminal, system and equipment for video and cargo stream | |
CN112598411B (en) | Method, apparatus and storage medium for revocable privacy-authorized transfer | |
Anderson et al. | The application of model checking for securing e-commerce transactions | |
CN113988982A (en) | Data transaction method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |