CN117745168A - Block chain-based import and export order tracking method and system - Google Patents

Block chain-based import and export order tracking method and system Download PDF

Info

Publication number
CN117745168A
CN117745168A CN202311806794.6A CN202311806794A CN117745168A CN 117745168 A CN117745168 A CN 117745168A CN 202311806794 A CN202311806794 A CN 202311806794A CN 117745168 A CN117745168 A CN 117745168A
Authority
CN
China
Prior art keywords
order
information
tracking
participant
public
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.)
Pending
Application number
CN202311806794.6A
Other languages
Chinese (zh)
Inventor
张浙榀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Huilian Technology Co ltd
Original Assignee
Hangzhou Huilian Technology Co ltd
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 Hangzhou Huilian Technology Co ltd filed Critical Hangzhou Huilian Technology Co ltd
Priority to CN202311806794.6A priority Critical patent/CN117745168A/en
Publication of CN117745168A publication Critical patent/CN117745168A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the specification discloses a block chain-based import and export order tracking method and a block chain-based import and export order tracking system, wherein the method comprises the following steps: receiving order initiating information submitted by an initiator; generating a corresponding number of public and private key pairs based on the number of the participating nodes, and distributing the private keys to corresponding participants; generating initial order information based on the order ID, the order information and the public key, encrypting the initial order information, and uploading the encrypted initial order information to a blockchain for storage; receiving a checking request submitted by a participant, querying a blockchain, and obtaining initial order information and all tracking information, wherein the tracking information comprises a state propulsion instruction signed by a private key of the participant; and generating current order tracking information based on the decrypted initial order information and all tracking information as a response to the viewing request. The system comprises: the system comprises an order initiating module, an order generating module and an order tracking module.

Description

Block chain-based import and export order tracking method and system
Technical Field
One or more embodiments of the present disclosure relate to the field of information technology, and in particular, to a blockchain-based import and export order tracking method and system.
Background
At present, paper receipts are managed and tracked for import and export orders. For example, paper-based notes may form or pay a liability, paper-based bill of lading or warehouse bill of lading. The paper bill has the possibility of forging, so that the risk of loss of rights and interests is brought to each participant in import and export trade. The technical proposal of the electronic import and export warehouse management is proposed in the industry, and the electronic data is easy to be tampered and forged due to the nature of the electronic data, so that the problems of low safety and low credibility of the existing import and export order information are not sufficiently solved.
A blockchain is a chain of blocks each holding certain information that are linked into a chain according to the respective time sequence of generation. This chain is stored in all servers. These servers, referred to as nodes in the blockchain system, provide storage space and computational support for the entire blockchain system. If the information in the blockchain is to be modified, it is necessary to sign consent of more than half of the nodes and modify the information in all the nodes, which are usually held in different subject hands, so it is an extremely difficult thing to tamper with the information in the blockchain. Compared with the traditional network, the blockchain has two main core characteristics: firstly, the data is difficult to tamper, and secondly, the data is decentralised. Based on the two characteristics, the information recorded by the blockchain is more real and reliable, and can help solve the problem that people are not trusted each other.
Disclosure of Invention
One or more embodiments of the present disclosure describe a method and a system for tracking import and export orders based on a blockchain, which can implement trusted transparent tracking of import and export orders by means of the blockchain, and help to ensure smooth completion of import and export orders.
In a first aspect, an embodiment of the present disclosure provides a blockchain-based import-export order tracking method, including the steps of:
receiving order initiating information submitted by an order initiator, wherein the order initiating information comprises an order ID, order information and participant information, and the participant information comprises a participant and an order state order of participation of the participant;
generating a corresponding number of public and private key pairs based on the number of the participating nodes, and distributing the private keys to corresponding participants;
generating initial order information based on the order ID, the order information and the public key, encrypting the initial order information, and uploading the encrypted initial order information to a blockchain for storage;
receiving a checking request submitted by a participant, wherein the checking request comprises an order ID, queries a blockchain, obtains initial order information and all tracking information, generates and encrypts the tracking information by the participant and then uploads the tracking information to the blockchain, and the tracking information comprises a state propulsion instruction signed by a private key of the participant;
and generating current order tracking information based on the decrypted initial order information and all tracking information as a response to the viewing request.
In a second aspect, embodiments of the present disclosure provide a blockchain-based import-export order tracking system, comprising:
the order initiating module is used for receiving order initiating information submitted by an order initiating party, wherein the order initiating information comprises an order ID, order information and participant information, and the participant information comprises a participant and an order state order of participation of the participant;
the order generation module is used for generating public and private key pairs with corresponding numbers based on the number of the participating nodes, distributing the private keys to corresponding participants, generating initial order information based on the order ID, the order information and the public keys, encrypting the initial order information and uploading the encrypted initial order information to the blockchain for storage;
the order tracking module is used for receiving a checking request submitted by a participant, wherein the checking request comprises an order ID, queries a blockchain, obtains initial order information and all tracking information, the tracking information is generated and encrypted by the participant and then is uploaded to the blockchain, the tracking information comprises a state pushing instruction signed by a private key of the participant, and current order tracking information is generated based on the decrypted initial order information and all tracking information and is used as a response of the checking request.
In a third aspect, embodiments of the present disclosure provide an electronic device comprising a processor and a memory;
the processor is connected with the memory;
the memory is used for storing executable program codes;
the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the method of any one of the above aspects.
In a fourth aspect, embodiments of the present description provide a computer-readable storage medium, on which is stored a computer program that, when executed by a processor, performs a method as described in one or more embodiments of the present description.
The technical scheme provided by some embodiments of the present specification has the following beneficial effects:
in one or more embodiments of the present disclosure, the method for tracking an import and export order stores order tracking data by means of a blockchain, so that order status pushing information of the import and export order is credible and transparent, that is, the order status change of the import and export order is guaranteed to be safer, and the import and export order is guaranteed to be more reliably pushed; by means of the improved tracking information generation and verification scheme, the change of the order state is strictly according to the pre-configured order state order, and the benefits of all the participants involved in import and export orders are guaranteed.
Other features and advantages of one or more embodiments of the present disclosure will be further disclosed in the following detailed description, the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present description, the drawings that are required in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present description, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of an import and export order tracking method according to an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of order status order of import and export orders according to an embodiment of the present disclosure.
FIG. 3 is a schematic diagram of a further order status sequence for import and export orders according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of an import-export order tracking method according to an embodiment of the present disclosure.
Fig. 5 is a schematic diagram of an implementation interface of the import and export order tracking method according to the embodiment of the present disclosure.
Fig. 6 is a flowchart of an import and export order tracking method according to an embodiment of the present disclosure.
Fig. 7 is a schematic flow chart of a private key distribution method according to an embodiment of the present disclosure.
Fig. 8 is a flowchart of a method for generating order tracking information according to an embodiment of the present disclosure.
Fig. 9 is a schematic diagram of effective tracking information provided in the embodiment of the present disclosure.
Fig. 10 is a flowchart of a verification status pushing instruction method according to an embodiment of the present disclosure.
Fig. 11 is a schematic diagram of an import-export order tracking system according to an embodiment of the present disclosure.
Fig. 12 is a schematic diagram of an electronic device according to an embodiment of the present disclosure.
Wherein: 11. an initiator, 12, a participant, 20, an order tracking system, 21, a self-tracking list, 22, a tracking list, 221, an agent purchase order list, 222, an autonomous purchase order list, 23, a to-do prompt, 24, a tracking order, 30, a blockchain, 100, an order initiating module, 200, an order generating module, 201, a key generating sub-module, 202, a substitute public key sub-module, 203, a key distributing sub-module, 204, an order information generating sub-module, 300, an order tracking module, 1100, an electronic device, 1101, a processor, 1102, a communication bus, 1103, a user interface, 1104, a network interface, 1105, and a memory.
Detailed Description
The technical solutions of the embodiments of the present specification are explained and illustrated below with reference to the drawings of the embodiments of the present specification, but the following embodiments are only preferred embodiments of the present specification, and not all the embodiments. Based on the examples in the implementation manner, those skilled in the art may obtain other examples without making any creative effort, which fall within the protection scope of the present specification.
The terms first, second, third and the like in the description and in the claims and in the above drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
In the following description, directional or positional relationships such as the terms "inner", "outer", "upper", "lower", "left", "right", etc., are presented merely to facilitate describing the embodiments and simplify the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operate in a particular orientation, and therefore should not be construed as limiting the description.
The data related to the application are information and data authorized by a user or fully authorized by all parties, and the collection of the related data complies with related laws and regulations and standards of related countries and regions.
Before introducing the technical scheme of the embodiments of the present specification, application scenarios of one or more embodiments of the present specification are described.
Noun interpretation
Initiator
The sponsor referred to in this specification relates to the subject who initiates the tracking of import and export orders by means of the blockchain 30. Initiator 11 may still act as a participant 12, participating in order tracking with the identity of participant 12 after initiating order tracking. The initiator 11 may be a benefit party involved in import and export orders, such as an industry party, a supply chain service party, or a third party, such as an import and export order management platform, a supervisor, an industry association, etc.
Participant(s)
The parties referred to in this specification are the subjects involved in the tracking process of import and export orders on blockchain 30. The party 12 may be a benefit party involved in import and export orders, such as an industry party, a supply chain service party, or a third party, such as an import and export order management platform, a supervisor, an industry association, etc. Where the party 12 is a benefit party involved in an import-export order, the progress of the import-export order can be driven by uploading tracking information including status-pushing instructions signed by the party 12 private key to the blockchain 30. If the receiving bank can upload corresponding tracking information, the import and export orders can be pushed to the receiving state from the state of the order with the credit card. The other participants 12 can view the state change. The initial order information and the tracking information are all in encrypted form on the blockchain 30, and the initiator 11 and the participant 12 also need to perform identity verification to view and decrypt the initial order information and the tracking information. Authentication of the initiator 11, the participant 12 may be performed using techniques disclosed in the art, and one or more embodiments described herein do not improve upon the authentication techniques.
State advance instruction
The state advance instructions referred to in this specification relate to an identification for characterizing the downward advance of the order state. Downward advancing refers to advancing from the current order state to the next order state in the order state order. For example, the specific identification form may be expressed by a dynamic instruction, such as order status, advancing one order down, or by a dynamic result instruction, such as order status, advancing to a redemption.
Public and private key pair
The public-private key pair referred to in this specification relates to public and private keys in an asymmetric encryption algorithm. An asymmetric encryption algorithm refers to an encryption algorithm in which the encryption key and decryption key of one encryption algorithm are different or in which one key cannot be derived from the other. Asymmetric keys, also known as public key cryptography, encode information with two mathematically related keys. In this system, one of the keys, called the public key, is optionally issued to the person desiring to communicate securely with the key holder. The public key is used to encrypt the information. The second key is a private key belonging to the key holder. The key holder decrypts the received information with the private key. Exemplary are RSA algorithm, DSA algorithm, ECC algorithm, DH algorithm.
Application scenario introduction
The execution of import and export orders involves multiple parties 12, such as the industry party acting as buyers, suppliers acting as sellers, supply chain servers receiving comprehensive services such as shipping, customs, payment for goods, etc., and banks or other financial institutions providing financing or vouchers, as well as warehousing parties providing warehousing during the process. Referring to fig. 1, each participant 12 has a cooperative relationship between them, and each participant 12 also needs to view the status of the order. For example, after the industry party has paid a settlement to a bank, the bank can allow the warehouse party to deliver goods to the industry party. If the warehouse party does not wait for the industry party to finish settlement with the bank, namely, goods are delivered with the industry party, the credited realization of the bank can be caused to face the dilemma of increasing difficulty, and even the fund loss is caused. For example, in the case where the industry provides counterfeit settlement certificates to the warehouse party and then delivers goods, this situation may result. For this reason, a technique of researching an order state advance voucher that cannot be forged is required. By adopting the import and export order tracking method described in one or more embodiments provided by the specification, the tracking of the order state is realized by means of the blockchain 30, so that the order state cannot be forged, and the record that the order state is changed cannot be tampered and erased can be effectively used for solving the problem of low reliability of import and export order tracking.
For example, referring to fig. 2, the order status order of the import and export order is < initiate, freight agent, credit card, acceptance, customs clearance, bill changing suitcase, unpacking and sampling, customs clearance, settlement billing, stock picking >, and the parties 12 include industry party, freight party, billing bank, acceptance bank, supply chain service party, settlement bank. It should be noted that the cargo party may be introduced by the supply chain service party or provided directly with the transport capabilities owned by the supply chain service party. The bank for making the bill and the bank for settling accounts can be the same bank or different banks. The issuing bank and the receiving bank can be different banks of the same bank in different areas, and can also be different banks. The issuing bank, the receiving bank and the settlement bank may be other types of financial institutions capable of providing corresponding services. The industry party is a buyer, the freight party interfaces with the seller, and the goods are received and carried when the seller delivers the goods.
Still another example, when the industry party does not need the participation of a bank, but directly completes the funds delivery with the seller, referring to fig. 3, the order status order of the import-export order is < initiate, freight agent, customs clearance, bill-changing and suitcase, unpack and sample, customs clearance, store and pick-up >, and the party 12 includes industry party, freight party, billing bank, acceptance bank, supply chain service party, settlement bank. It should be noted that the cargo party may be introduced by the supply chain service party or provided directly with the transport capabilities owned by the supply chain service party.
Referring to fig. 4, the implementation architecture of the method is that an order tracking system 20 is configured between an initiator 11, a participant 12 and a blockchain 30, the order tracking system 20 provides login service, and identity verification of the initiator 11 and the participant 12 is realized in the login service process. After logging, the order tracking system 20 receives the interaction of the initiator 11 and the participant 12 according to different identities of the logger, and based on the interaction, performs data interaction with the blockchain 30 system, and uploads corresponding data to the blockchain 30 to store or downloads corresponding data from the blockchain 30.
Referring to fig. 5, an exemplary operation interface diagram of the order tracking system 20 is provided. The top row is the self-tracking list 21, tracking list 22, and to-do cue 23, respectively. The self-tracking list 21 records import and export orders that do not require participation from other parties 12, and is used to facilitate self-order management. The tracking list 22 records the tracking of import and export orders with other participants. Import and export orders recorded by the tracking list 22 are classified into an agent purchase order list 221 and an autonomous purchase order list 222. The order status sequence for import and export orders in the proxy purchase order list 221 is shown in FIG. 2 and the order status sequence for import and export orders in the autonomous purchase order list 222 is shown in FIG. 3. Below is shown the track order 24 contained in the clicked list, clicking on the track order 24 can initiate a view request. Based on the response obtained by the viewing request, the information of the order is displayed, and an operation area for uploading the tracking information is provided when the order information is displayed. The to-do prompt 23 shows the current logger, a trace order 24 capable of generating valid state-advance instructions, and other to-do items. Each logger is able to track multiple import and export orders.
Referring to fig. 6, the import-export order tracking method based on blockchain 30 includes the steps of:
step 102) receiving order initiating information submitted by an initiator 11, wherein the order initiating information comprises an order ID, order information and participant 12 information, and the participant 12 information comprises a participant 12 and an order state order of participation of the participant 12;
step 104) generating a corresponding number of public-private key pairs based on the number of parties 12, distributing the private keys to the corresponding parties 12;
step 106) generating initial order information based on the order ID, the order information and the public key, encrypting the initial order information and uploading the encrypted initial order information to the blockchain 30 for storage;
step 108) receiving a view request submitted by a participant 12, wherein the view request comprises an order ID, queries a blockchain 30, obtains initial order information and all tracking information, wherein the tracking information is generated and encrypted by the participant 12 and then uploaded to the blockchain 30, and the tracking information comprises a state propulsion instruction signed by a private key of the participant 12;
step 110) generates current order tracking information based on the decrypted initial order information and all tracking information as a response to the view request.
The generation of the order ID is done using techniques known in the art, and the order ID should be unique. Each participant 12 will be assigned a list of public and private keys for each import-export order tracking. The order information includes buyer, seller, goods name, quantity, total price, shipping location, receiving location, insurance category. The initial order information includes an order ID, order information, public key. When the initial order information is encrypted, the encryption and decryption technology disclosed in the field is adopted. The signature means encrypted using a private key, and the corresponding public key can be decrypted. Since the private key is only available to the corresponding party 12, the signature can be used to indicate the identity.
On the other hand, in another embodiment, a method for generating a corresponding number of public-private key pairs based on the number of parties 12 and distributing the private keys to the corresponding parties 12, please refer to fig. 7, includes the steps of:
step 202) generating a corresponding number of public-private key pairs, and assigning a public-private key pair to each participant 12;
step 204) sorting the public and private key pairs according to the order status order of the parties 12;
step 206) starting from the second public-private key pair, calculating the quotient of each public key and the previous public key respectively, and recording as a substitute public key;
step 208) distributing the first public-private key pair to the first participant 12 in the order status order, and transmitting the substitute public key and the corresponding private key to the subsequent corresponding participant 12;
step 210) incorporates the public key of the first participant 12 in the order status order into the initial order information.
The private key and the public key of the asymmetric encryption algorithm are integers, and the secp256k1 algorithm in the ECC algorithm generates a private key with a length of 256 bits and a public key with a length of 512 bits. The public key is divided to produce a quotient having a decimal place, i.e., the alternate public key has a decimal place. The substitute public key is reserved with enough decimal places, so that the product of the substitute public key and the previous public key can be just obtained after rounding the decimal part.
When the present embodiment is adopted, when the previous order status is not pushed, the corresponding substitute public key is not disclosed, so that the public key corresponding to the next order status cannot be calculated, and even if the corresponding participant 12 signs the status pushing instruction, the corresponding participant cannot be verified due to the lack of the public key. Thus, jump changes in order status are technically prevented. That is, when one of the participants 12 does not sign a state advance instruction, the subsequent participant 12 in the order state order is technically unable to sign a valid state advance instruction. In another aspect, in a further embodiment, the tracking information includes the alternate public key.
In another aspect, referring to fig. 8, a method for generating current order tracking information based on decrypted initial order information and all tracking information includes the steps of:
step 302) sorting the decrypted initial order information and all tracking information according to the time sequence of uploading the blockchain 30, and recording as a tracking sequence;
step 304) sequentially verifying the state pushing instructions of the tracking information contained in the tracking sequence, wherein the tracking information passing verification is recorded as effective tracking information;
step 306) generates current order tracking information based on the decrypted initial order information and all valid tracking information.
Referring to fig. 9, when the party signs the tracking information with the status pushing instruction for receiving the freight, the order status is changed from the origination to the proxy status. After that, when the industry signs the tracking information with the status pushing instruction of the pick-up and uploads the tracking information to the blockchain 30 for storage, the status pushing instruction cannot be decrypted and verified because the correct public key cannot be calculated, and thus the status of the order will not change due to the invalid tracking information. At this time, the order status is advanced only if the issuing bank signs the tracking information with the status advance instruction for approval of the issuing.
In another embodiment, referring to fig. 10, the method for verifying the state propulsion instruction included in the tracking information includes the steps of:
step 402) traversing each trace information starting from a first trace information of the trace sequence, the following steps being performed for each trace information:
step 404) after merging the same substitute public key, calculating the product of the substitute public key contained in the current tracking information and the substitute public key of the tracking information sequenced in front, multiplying the product by the public key contained in the initial order information, and recording the product as the current public key;
step 406) decrypting the state promotion instruction contained in the current trace information using the current public key, when the decryption can be successfully performed, determining that the state promotion instruction contained in the current trace information is verified, and when the decryption cannot be successfully performed, removing the current trace information from the trace sequence.
In further embodiments, on the other hand, the tracking information includes remark information signed by the participant 12 private key;
the method for generating current order tracking information based on the decrypted initial order information and all tracking information comprises the steps of:
obtaining a current order state according to all the tracking information;
current order tracking information is generated based on the current order status, the initial order information, and the total remark information.
In another aspect, the present disclosure provides a blockchain 30-based import-export order tracking system 20, see fig. 11, comprising:
an order initiating module 100, configured to receive order initiating information submitted by an initiator 11, where the order initiating information includes an order ID, order information, and participant 12 information, and the participant 12 information includes a participant 12 and an order status order of participation thereof;
the order generation module 200 is configured to generate a corresponding number of public-private key pairs based on the number of the participants 12, distribute the private keys to the corresponding participants 12, generate initial order information based on the order ID, the order information and the public key, encrypt the initial order information, and upload the encrypted initial order information to the blockchain 30 for storage;
the order tracking module 300 is configured to receive a view request submitted by the participant 12, where the view request includes an order ID, query the blockchain 30, obtain initial order information and all tracking information, generate and encrypt the tracking information by the participant 12, upload the blockchain 30, and generate current order tracking information based on the decrypted initial order information and all tracking information, where the tracking information includes a status pushing instruction signed by a private key of the participant 12, as a response to the view request.
On the other hand, in further embodiments, the order generation module 200 includes:
a key generation sub-module 201, configured to generate a corresponding number of public and private key pairs, allocate a public and private key pair to each participant 12, and order the public and private key pairs according to the order status order of the participants 12;
a substitute public key sub-module 202, configured to calculate, starting from the second public-private key pair, a quotient of each public key and the previous public key, respectively, and record the quotient as a substitute public key;
a key distribution sub-module 203, configured to distribute a first public-private key pair to a first participant 12 in an order status order, and send the substitute public key and a corresponding private key to a subsequent corresponding participant 12;
the order information generating sub-module 204 is configured to incorporate the public key of the first participant 12 in the order status order into the initial order information, generate the initial order information based on the order ID, the order information and the public key, encrypt the initial order information, and upload the encrypted initial order information to the blockchain 30 for storage.
Please refer to fig. 12, which is a schematic diagram illustrating a structure of an electronic device according to an embodiment of the present disclosure.
As shown in fig. 12, the electronic device 1100 may include at least one processor 1101, at least one network interface 1104, a user interface 1103, a memory 1105, and at least one communication bus 1102. Wherein communication bus 1102 is operable to facilitate connection communications among the various components described above. The user interface 1103 may comprise keys and the optional user interface may also comprise a standard wired interface, a wireless interface. The network interface 1104 may include, but is not limited to, a bluetooth module, an NFC module, a Wi-Fi module, and the like. Wherein the processor 1101 may comprise one or more processing cores. The processor 1101 connects various portions of the overall electronic device 1100 using various interfaces and lines, performs various functions of the routing device 1100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1105, and invoking data stored in the memory 1105. Alternatively, the processor 1101 may be implemented in at least one hardware form of DSP, FPGA, PLA. The processor 1101 may integrate one or a combination of several of a CPU, GPU, modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications.
It will be appreciated that the modem may not be integrated into the processor 1101 and may be implemented by a single chip.
The memory 1105 may include RAM or ROM. Optionally, the memory 1105 includes a non-transitory computer readable medium. Memory 1105 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1105 may include a stored program area that may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, etc., and a stored data area; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 1105 may also optionally be at least one storage device located remotely from the processor 1101. The memory 1105, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and application programs. The processor 1101 may be configured to invoke the applications stored in the memory 1105 and perform the methods of one or more of the embodiments described above.
The present description also provides a computer-readable storage medium having instructions stored therein, which when executed on a computer or processor, cause the computer or processor to perform one or more steps of the above embodiments. The above-described constituent modules of the electronic apparatus may be stored in the computer-readable storage medium if implemented in the form of software functional units and sold or used as independent products.
The technical features in the present examples and embodiments may be arbitrarily combined without conflict.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present description, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a digital versatile Disk (Digital Versatile Disc, DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
When the method is realized by hardware and firmware, the method flow is programmed into a hardware circuit to obtain a corresponding hardware circuit structure, so as to realize corresponding functions. For example, a programmable logic device (Programmable Logic Device, PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose logic function is determined by the user programming the device. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented with "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before being compiled is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but also HDL is not just one, but a plurality of. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The above-described embodiments are merely preferred embodiments of the present disclosure, and do not limit the scope of the disclosure, and various modifications and improvements made by those skilled in the art to the technical solutions of the disclosure should fall within the protection scope defined by the claims of the disclosure without departing from the design spirit of the disclosure.

Claims (10)

1. The import and export order tracking method based on the block chain is characterized by comprising the following steps:
receiving order initiating information submitted by an initiator, wherein the order initiating information comprises an order ID, order information and participant information, and the participant information comprises a participant and an order state order of participation of the participant;
generating a corresponding number of public and private key pairs based on the number of the participants, and distributing the private keys to the corresponding participants;
generating initial order information based on the order ID, the order information and the public key, encrypting the initial order information, and uploading the encrypted initial order information to a blockchain for storage;
receiving a checking request submitted by a participant, wherein the checking request comprises an order ID, queries a blockchain, obtains initial order information and all tracking information, generates and encrypts the tracking information by the participant and then uploads the tracking information to the blockchain, and the tracking information comprises a state propulsion instruction signed by a private key of the participant;
and generating current order tracking information based on the decrypted initial order information and all tracking information as a response to the viewing request.
2. The blockchain-based import-export order tracking method of claim 1, wherein,
the method for distributing the private key to the corresponding participants comprises the steps of:
generating a corresponding number of public and private key pairs, and distributing a public and private key pair for each participant;
ordering the public and private key pairs according to the order state order of the participants;
calculating the quotient of each public key and the previous public key from the second public-private key pair respectively, and recording the quotient as a substitute public key;
distributing the first public-private key pair to a first participant in an order state sequence, and transmitting the substitute public key and the corresponding private key to a subsequent corresponding participant;
the public key of the first participant in the order status order is included in the initial order information.
3. The blockchain-based import-export order tracking method of claim 2, wherein,
the tracking information includes the alternate public key.
4. The blockchain-based import-export order tracking method of claim 3, wherein,
the method for generating current order tracking information based on the decrypted initial order information and all tracking information comprises the steps of:
ordering the decrypted initial order information and all tracking information according to the time sequence of uploading the block chain, and recording the order information and all tracking information as a tracking sequence;
sequentially verifying the state pushing instructions of the tracking information contained in the tracking sequence, and marking the tracking information passing verification as effective tracking information;
generating current order tracking information based on the decrypted initial order information and all valid tracking information.
5. The blockchain-based import-export order tracking method of claim 4, wherein,
the method for verifying the state pushing instruction contained in the tracking information comprises the following steps:
traversing each trace information from a first trace information of the trace sequence, performing the following steps for each trace information:
after the same substitute public keys are combined, calculating the product of the substitute public key contained in the current tracking information and the substitute public key of the tracking information sequenced in the front, multiplying the product by the public key contained in the initial order information, and recording the product as the current public key;
and decrypting the state propulsion instructions contained in the current tracking information by using the current public key, judging that the state propulsion instructions contained in the current tracking information pass verification when the current tracking information can be successfully decrypted, and eliminating the current tracking information from the tracking sequence when the current tracking information cannot be successfully decrypted.
6. The blockchain-based import-export order tracking method of any of claims 1 to 5, wherein,
the tracking information includes remark information signed by the participant private key;
the method for generating current order tracking information based on the decrypted initial order information and all tracking information comprises the steps of:
obtaining a current order state according to all the tracking information;
current order tracking information is generated based on the current order status, the initial order information, and the total remark information.
7. A blockchain-based import-export order tracking system, characterized in that,
comprising the following steps:
the order initiating module is used for receiving order initiating information submitted by an initiator, wherein the order initiating information comprises an order ID, order information and participant information, and the participant information comprises a participant and an order state order of participation of the participant;
the order generation module is used for generating public and private key pairs with corresponding numbers based on the number of the participants, distributing the private keys to the corresponding participants, generating initial order information based on the order ID, the order information and the public keys, encrypting the initial order information and uploading the encrypted initial order information to the blockchain for storage;
the order tracking module is used for receiving a checking request submitted by a participant, wherein the checking request comprises an order ID, queries a blockchain, obtains initial order information and all tracking information, the tracking information is generated and encrypted by the participant and then is uploaded to the blockchain, the tracking information comprises a state pushing instruction signed by a private key of the participant, and current order tracking information is generated based on the decrypted initial order information and all tracking information and is used as a response of the checking request.
8. The blockchain-based import-export order tracking system of claim 7, wherein,
the order generation module comprises:
the secret key generation sub-module is used for generating a corresponding number of public and private secret key pairs, distributing a public and private secret key pair for each participant, and sequencing the public and private secret key pairs according to the order state sequence of the participants;
the public key substituting sub-module is used for calculating the quotient of each public key and the previous public key from the second public-private key pair respectively and marking the quotient as a public key substituting;
the secret key distribution sub-module is used for distributing a first public and private secret key pair to a first participant in the order state sequence and sending the substitute public key and the corresponding private key to a subsequent corresponding participant;
and the order information generation sub-module is used for taking the public key of the first participant in the order state order into initial order information, generating the initial order information based on the order ID, the order information and the public key, encrypting the initial order information and uploading the encrypted initial order information to the blockchain for storage.
9. An electronic device including a processor and a memory;
the processor is connected with the memory;
the memory is used for storing executable program codes;
the processor runs a program corresponding to executable program code stored in the memory by reading the executable program code for performing the method according to any one of claims 1-6.
10. A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1-6.
CN202311806794.6A 2023-12-26 2023-12-26 Block chain-based import and export order tracking method and system Pending CN117745168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311806794.6A CN117745168A (en) 2023-12-26 2023-12-26 Block chain-based import and export order tracking method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311806794.6A CN117745168A (en) 2023-12-26 2023-12-26 Block chain-based import and export order tracking method and system

Publications (1)

Publication Number Publication Date
CN117745168A true CN117745168A (en) 2024-03-22

Family

ID=90256586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311806794.6A Pending CN117745168A (en) 2023-12-26 2023-12-26 Block chain-based import and export order tracking method and system

Country Status (1)

Country Link
CN (1) CN117745168A (en)

Similar Documents

Publication Publication Date Title
US11847621B2 (en) Systems and methods for math-based currency escrow transactions
CN109214792B (en) Method and system for electronic vouchers via a blockchain
JP6603765B2 (en) Method and system for securely transmitting a remote notification service message to a mobile device without using a secure element
CN108701296B (en) Method and system for offline blockchain swapping
JP6703510B2 (en) Method and system for generating an advanced storage key without a secure element in a mobile device
CN109949155B (en) Method and system for trust-based payment via blockchain
CN108353084B (en) Method and system for verifying scattered data by accepting frames
KR102100457B1 (en) Method and apparatus for servicing gift of event based block-chain
CN107209891A (en) The equity forwarding of digital request is authorized
CN109804401A (en) For the method and system via block chain certification discount coupon
US11888995B1 (en) Systems and methods for value transfers using signcryption
CN109478282A (en) Digital asset distribution is carried out by the transaction device
CN102982441A (en) Dynamic electronic money
JP2001509630A (en) Symmetric secure electronic communication system
US11710122B2 (en) Using a nested random number-based security ecosystem for block chains for electronic cash tokens and other embodiments
CN107852333A (en) System and method for the mandate of sharable content object
US20230259919A1 (en) Review engine verification with non-fungible authentication tokens
KR102117063B1 (en) System for attracting funding using star-marketing system sharing profit and method thereof
CN112970234B (en) Account assertion
US20230071913A1 (en) Service providing method performed by server of music platform using blockchain-based nft
WO2021060340A1 (en) Transaction information processing system
CN117745168A (en) Block chain-based import and export order tracking method and system
CA2986832C (en) System and method for dynamic processing and verifying of product data information
CN114140251B (en) Electronic ticket pledge method and system based on proxy re-encryption
US20220198442A1 (en) Secure communications for mobile wallet applications

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