Port cargo traceability method and system based on big data

By encrypting the port cargo information big data and uploading it to the blockchain, the problem of poor credibility of port cargo traceability information is solved, efficient and secure traceability of information is achieved, and the reliability of port operations and trade is ensured.

CN118941308AActive Publication Date: 2024-11-12RIZHAO PORT GRP CO LTD +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411420087.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2024-11-12
Estimated Expiration
2044-10-12

AI Technical Summary

Technical Problem

Information related to port cargo is easily modified, resulting in poor credibility of traceability information, and there is a risk of data leakage and illegal modification, which affects port operation efficiency and trade security.

Method used

Using big data technology to encrypt port cargo information and upload the encrypted information to the blockchain network, using multiple encryption and immutability of blockchain to improve data traceability efficiency and security, and through the encryption of public and private keys The decryption process ensures the authenticity and credibility of the information.

Benefits of technology

It effectively improves the credibility and security of port cargo traceability information, ensures the authenticity and integrity of data, reduces the risk of information being modified, and improves port operation efficiency and trade security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118941308A_ABST
    Figure CN118941308A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of cargo information traceability, in particular to a port cargo traceability method and system based on big data. The method comprises the following steps: based on a big data technology, obtaining traceable information of port goods, encrypting the traceable information, and obtaining a traceable information ciphertext and a traceable information secret key; uploading the traceable information ciphertext to a block chain network to obtain a unique address of a block chain; generating a public key and a private key, and encrypting the block chain unique address and the traceable information secret key by using the public key to obtain a port cargo traceability ciphertext; and decrypting the port cargo traceability ciphertext through the private key to obtain a port cargo traceability plaintext, thereby obtaining the traceability information of the port cargo. According to the invention, the related information of the cargo is acquired through a big data technology and then is encrypted and stored in the block chain, and the problem of poor traceability information credibility caused by the fact that the related information of the port cargo is easily modified is solved through multiple encryption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cargo information tracing technology, and in particular to a port cargo tracing method and system based on big data. Background Art

[0002] As a link between the sea and the land, ports are key infrastructure for global trade and economic development. They play an irreplaceable role in promoting international trade, ensuring the stability of the supply chain, enhancing regional competitiveness and achieving sustainable development. With the increase in the volume of business at my country's ports, the throughput of goods is also increasing, and the pressure on cargo management is also increasing. Cargo traceability is an important technical means of port cargo management. It can monitor the location and status of goods in real time, help port operators better arrange cargo loading and unloading activities, reduce the possibility of cargo detention or loss, and thus improve the port's operational efficiency; it can also promptly discover and deal with potential safety hazards to ensure the safety and legality of goods, which is especially important for the transportation of high-risk goods such as dangerous goods; it can also trace the source and authenticity of goods to prevent counterfeit and shoddy products from entering the market, thereby ensuring trade security and safeguarding consumer rights.

[0003] However, the relevant data of port cargo is also private, and if data leakage occurs, it will cause huge losses; in addition, there may be criminals who modify the relevant data and affect the authenticity of the data. Therefore, the relevant information of port cargo is easily modified, resulting in poor credibility of traceability information, which is an urgent problem to be solved. Summary of the invention

[0004] In view of the shortcomings of existing methods and the needs of practical applications, in order to improve the operational efficiency of ports, ensure the safety and authenticity of port cargo, provide reliable protection for both parties to the trade, and solve the problem that the relevant information of port cargo is easily modified, resulting in poor credibility of traceability information. On the one hand, the present invention provides a port cargo traceability method based on big data, comprising the following steps: Based on big data technology, the traceability information of port cargo is obtained, the traceable information is encrypted, and the traceable information ciphertext and the traceable information secret key are obtained; the traceable information ciphertext is uploaded to the blockchain network to obtain a unique blockchain address; a public key and a private key are generated, and the unique blockchain address and the traceable information secret key are encrypted using the public key to obtain the port cargo traceability ciphertext; the port cargo traceability ciphertext is decrypted using the private key to obtain the port cargo traceability plaintext, and then the port cargo traceability information is obtained. The present invention obtains the relevant information of port cargo through big data technology, encrypts it, and then saves it in the blockchain. Multiple encryption is used to solve the problem that the relevant information of port cargo is easily modified, resulting in poor credibility of traceability information, and blockchain is used as a data storage site to improve data traceability efficiency.

[0005] Optionally, encrypting the traceable information to obtain the traceable information ciphertext and the traceable information key comprises the following steps: The traceable information is processed by a Hash function to obtain an information summary; the information summary is used as a secret key of a symmetric encryption algorithm to encrypt the traceable information to obtain the traceable information ciphertext; the information summary is encrypted by an asymmetric encryption algorithm to obtain the traceable information secret key. The present invention encrypts big data by a symmetric encryption algorithm and encrypts important data by an asymmetric encryption algorithm, which speeds up the encryption speed of the data and further improves the traceability efficiency and accuracy of the present invention.

[0006] Optionally, generating a public key and a private key comprises the following steps: A plurality of prime numbers are randomly selected, and a first modulus is obtained through the prime numbers; the prime numbers are adjusted according to the order of the first modulus and the prime numbers; a second modulus and the Euler function are obtained according to the adjusted prime numbers; a positive integer is randomly selected in combination with the second modulus and the Euler function; a third modulus is obtained in combination with the positive integer and the Euler function; a private key is generated in combination with the positive integer and the second modulus; a public key is generated in combination with the third modulus and the second modulus. The present invention generates a key pair suitable for the data to be encrypted by adaptively adjusting the number of prime numbers, which is further conducive to accelerating the efficiency of data encryption.

[0007] Optionally, the first modulus is obtained by using the prime number, satisfying the following formula: ,in, represents the first modulus, Indicates prime numbers, represents the number of prime numbers, represents the integer function; The prime numbers are adjusted according to the order of the first modulus and the prime numbers, so as to satisfy: ,in, Indicates the length of the first modulus. The present invention automatically adjusts the number of prime numbers according to the length of the first modulus, which is beneficial to balancing the encryption and decryption speeds.

[0008] Optionally, the second modulus and the Euler function are obtained according to the adjusted prime number, satisfying the following formula: ,in, represents the second modulus, Indicates Adjusted prime numbers, represents the number of prime numbers after adjustment, represents the integer function; ,in, The modulus and Euler function obtained after determining the prime number in the present invention are more suitable for the encryption requirements of current data.

[0009] Optionally, the second modulus and the Euler function are combined to randomly select a positive integer that satisfies the following formula: ,in, represents the second modulus, represents a positive integer, represents the Euler function, Represents the greatest common divisor function.

[0010] Optionally, the combining the positive integer and the Euler function to obtain a third modulus satisfies the following formula: ,in, represents the third modulus, represents a positive integer, represents the Euler function, Represents a new modulus that satisfies: , , represents the second modulus, Indicates The present invention further helps to optimize the reliability of port cargo traceability results by adjusting the constraints of the new modulus.

[0011] Optionally, the using of the public key to encrypt the blockchain unique address and the traceability information key to obtain the port cargo traceability ciphertext comprises the following steps: The unique blockchain address and the traceable information key are integrated; the fusion result is mapped using a chaotic mapping model to obtain a mapping result; the mapping result and the parameters of the chaotic mapping model are encrypted using the public key to obtain the port cargo traceability ciphertext. The present invention further ensures the security of port cargo related data through multiple encryption.

[0012] Optionally, the chaos mapping model satisfies the following formula: ,in, represents the parameters of the first chaotic map, represents the parameters of the second chaotic map, Indicates is the value iterated from the second chaotic map after the initial value, Indicates that the initial value passes through the first chaotic map values, and Indicates the parameter value that satisfies the chaotic mapping. The present invention further diverges the unique address of the blockchain and the traceable information key through chaotic mapping, which once again ensures the security of the traceability data.

[0013] In the second aspect, in order to efficiently execute the port cargo tracing method based on big data provided by the present invention, the present invention also provides a port cargo tracing system based on big data, including a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the port cargo tracing method based on big data as described in the first aspect of the present invention. The port cargo tracing system based on big data of the present invention has a compact structure and stable performance, and can stably execute the port cargo tracing method based on big data provided by the present invention, further improving the overall applicability and practical application ability of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A flow chart of a port cargo tracing method based on big data provided by an embodiment of the present invention; Figure 2 A framework diagram of a port cargo tracing system based on big data provided by an embodiment of the present invention; Figure 3 A schematic diagram of the structure of a port cargo tracing device based on big data provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0015] The specific embodiments of the present invention will be described in detail below. It should be noted that the embodiments described herein are only for illustration and are not intended to limit the present invention. In the following description, a large number of specific details are set forth in order to provide a thorough understanding of the present invention. However, it is obvious to those of ordinary skill in the art that these specific details do not need to be adopted to implement the present invention. In other examples, in order to avoid confusing the present invention, known circuits, software or methods are not specifically described.

[0016] Throughout the specification, references to "one embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment of the present invention. Therefore, the phrases "in one embodiment," "in an embodiment," "an example," or "an example" appearing in various places throughout the specification do not necessarily all refer to the same embodiment or example. In addition, particular features, structures, or characteristics may be combined in one or more embodiments or examples in any suitable combination and / or subcombination. In addition, it should be understood by those of ordinary skill in the art that the figures provided herein are for illustrative purposes and that the figures are not necessarily drawn to scale.

[0017] See also Figure 1 In order to improve the operational efficiency of the port, ensure the safety and authenticity of the port cargo, provide reliable protection for both parties of the trade, and solve the problem that the relevant information of the port cargo is easily modified, resulting in poor credibility of the traceability information, the present invention provides a port cargo traceability method based on big data, such as Figure 1 As shown, the method comprises the following steps: S1. Based on big data technology, the traceability information of port cargo is obtained, the traceability information is encrypted, and the traceability information ciphertext and traceability information key are obtained.

[0018] In the embodiment, based on big data technology, various traceability information of port cargo can be obtained, which is crucial for port operation management, cargo tracking, safety assurance and efficiency improvement, and is of great significance for improving port operation efficiency, ensuring cargo safety, optimizing logistics and transportation, and promoting port trade development. Specifically, big data technology can provide the following traceability information about port cargo: Basic cargo information, including cargo type and quantity, is used to understand the cargo type, quantity and distribution in different time periods; cargo source and destination, is used to trace the cargo source, transportation route and final destination, which helps to optimize route planning.

[0019] Cargo dynamic information, including cargo loading and unloading status, real-time monitoring of cargo loading and unloading progress, ensuring that cargo loading and unloading operations are completed on time and efficiently; cargo location tracking, real-time location tracking of cargo through Internet of Things technology (such as RFID, GPS, etc.), to understand the specific location of cargo in the port and its movement trajectory during transportation.

[0020] Cargo safety and risk information, including cargo safety monitoring, using big data analysis to monitor the safety of cargo during transportation, such as changes in environmental parameters such as temperature, humidity, and vibration, to promptly detect and warn of potential safety hazards; cargo risk assessment, combining historical data and real-time data to assess the transportation risks of cargo, including risks such as cargo damage, loss, and delays, to provide decision support for cargo owners and port managers.

[0021] Cargo warehousing and inventory information, including warehouse utilization, analysis of warehouse capacity, utilization rate and storage requirements of different goods, optimization of warehouse layout and cargo storage strategy; inventory management, real-time monitoring of inventory status, including information such as goods inbound, outbound, and inventory quantity, to ensure the accuracy and timeliness of inventory data.

[0022] Cargo logistics and transportation information, including logistics transportation routes, analysis of cargo transportation routes and transportation methods, optimization of transportation paths and transportation costs; transportation time prediction, using big data analysis to predict cargo transportation time, and provide reliable transportation time estimates for cargo owners and port managers.

[0023] Goods trade and market information, including goods trade data, collects and analyzes goods trade data, including trade volume, trade value, trading partners and other information, and provides trade statistics and analysis services for port managers and government departments; market demand forecasts, combining market trends and historical data to predict the market demand for different goods, and provide market reference information for port managers and cargo owners.

[0024] Furthermore, encrypting the traceable information to obtain the traceable information ciphertext and the traceable information secret key comprises the following steps: S11. Process the traceable information using a Hash function to obtain an information summary.

[0025] Hash functions can map input data of any length, i.e., traceability information, to output of fixed length, i.e., information summary, and have the following key features: Deterministic: The same input data always produces the same output summary; One-way: It is almost impossible to infer the original input data from the output summary (i.e., irreversibility); Fast calculation: For input data of any length, the hash function can quickly calculate its summary; Weak collision resistance: It is computationally difficult, but not impossible, to find two different input data that produce the same digest, depending on the specific hash function; Strong collision resistance: For any given digest, it is computationally extremely difficult to find input data that can produce that digest, which is usually the main goal of hash function design.

[0026] In port cargo traceability, traceable information may include the production date, batch number, manufacturer information, transportation route, inspection report, etc. This information is collected and integrated into one or more data fields and then used as input for the Hash function.

[0027] S12: Encrypt the traceable information by using the information summary as a secret key of a symmetric encryption algorithm to obtain a ciphertext of the traceable information.

[0028] Symmetric encryption algorithms, also known as symmetric key algorithms or single-key algorithms, have fast encryption and decryption speeds and are suitable for encryption of large amounts of data. Common symmetric encryption algorithms include DES, 3DES, AES, RC4, RC5, Blowfish, etc. Among them, AES (Advanced Encryption Standard) is a widely used symmetric encryption algorithm that provides three encryption strengths of 128 bits, 192 bits, and 256 bits. In the embodiment, one of DES, 3DES, AES, RC4, RC5, and Blowfish is used as the symmetric encryption algorithm.

[0029] S13. Encrypt the information summary using an asymmetric encryption algorithm to obtain the traceable information key.

[0030] Asymmetric encryption algorithm, also known as public key encryption algorithm, is an encryption method that uses different keys for encryption and decryption. The encryption and decryption speed is relatively slow and is only suitable for encrypting a small amount of data. The principle is to use a pair of keys, namely a public key and a private key. The public key can be made public to anyone, while the private key can only be accessed by the key holder. If the data is encrypted with the public key, it can only be decrypted with the corresponding private key. This encryption method provides higher security because the private key does not need to be shared with others. Only the person holding the private key can decrypt and sign.

[0031] The main algorithms of asymmetric encryption algorithms include: RSA algorithm, RSA is one of the earliest and most widely used asymmetric encryption algorithms. It is based on the factorization problem of large integers and achieves encryption and decryption by generating a pair of large prime numbers as private key and public key. The security of the RSA algorithm depends on the difficulty of factoring large integers. Therefore, with the improvement of computer computing power, the RSA algorithm may require a larger key length to ensure security.

[0032] ECC algorithm (Elliptic Curve Cryptography), ECC is an asymmetric encryption algorithm based on elliptic curve mathematical problems. Compared with RSA, ECC uses a shorter key length to provide the same security, so it is more suitable in resource-constrained environments. The ECC algorithm has higher efficiency and stronger security, so it has been widely used in modern communications and information security fields.

[0033] DSA algorithm (Digital Signature Algorithm), DSA is an asymmetric encryption algorithm for digital signatures. It generates a pair of keys, signs the message with the private key, and verifies the validity of the signature with the public key. The DSA algorithm is mainly used to ensure the integrity of data and the authenticity of the source.

[0034] In an embodiment, the RSA algorithm, the ECC algorithm or the DSA algorithm is adopted as the asymmetric encryption algorithm.

[0035] S2. Upload the traceable information ciphertext to the blockchain network to obtain a unique blockchain address.

[0036] Specifically, choose a suitable blockchain platform according to your needs, such as Bitcoin, Ethereum, etc. These platforms provide rich development tools and documentation to help achieve data uploading and storage.

[0037] Before using the blockchain platform, you need to create a wallet to store private and public keys. The wallet can be a software wallet or a hardware wallet, which is used to manage blockchain addresses and conduct transactions.

[0038] Create a smart contract according to the platform's rules. A smart contract is a self-executing code used to store and process data on the blockchain. Deploy the written smart contract to the blockchain platform, which usually involves uploading the smart contract code to the blockchain server and getting verified and confirmed on the network.

[0039] Use developer tools or APIs to connect to the blockchain server and write the code to upload data based on the selected blockchain platform and smart contract. The code needs to call the smart contract function to upload the encrypted data. After uploading the data, you need to wait for the blockchain network to confirm to ensure the validity and integrity of the transaction, which usually involves waiting for a certain number of blocks to be mined to confirm the validity of the transaction.

[0040] After the data is uploaded and the transaction is confirmed, the blockchain network will generate a unique blockchain address, which is associated with the uploaded ciphertext data and can be used for subsequent data retrieval and verification.

[0041] S3. Generate a public key and a private key, use the public key to encrypt the unique blockchain address and the traceability information key, and obtain the port cargo traceability ciphertext.

[0042] In an embodiment, generating a public key and a private key in step S3 includes the following steps: S31. Randomly select a plurality of prime numbers, and obtain a first modulus through the prime numbers.

[0043] The first modulus is obtained by using the prime number, satisfying the following formula: ,in, represents the first modulus, Indicates prime numbers, represents the number of prime numbers, Represents the integer function.

[0044] S32. Adjust the prime number according to the order of the first modulus and the prime number.

[0045] The prime numbers are adjusted according to the order of the first modulus and the prime numbers, so as to satisfy: ,in, Indicates the length of the first modulus.

[0046] S33. Obtain a second modulus and Euler function according to the adjusted prime number.

[0047] The second modulus and the Euler function are obtained based on the adjusted prime number, satisfying the following formula: ,in, represents the second modulus, Indicates Adjusted prime numbers, represents the number of prime numbers after adjustment, represents the integer function; ,in, represents the Euler function.

[0048] S34. Combining the second modulus and the Euler function, randomly select a positive integer.

[0049] The second modulus and the Euler function are combined to randomly select a positive integer that satisfies the following formula: ,in, represents the second modulus, represents a positive integer, represents the Euler function, Represents the greatest common divisor function.

[0050] S35. Combine the positive integer and the Euler function to obtain a third modulus.

[0051] The combination of the positive integer and the Euler function obtains a third modulus that satisfies the following formula: ,in, represents the third modulus, represents a positive integer, represents the Euler function, Represents a new modulus that satisfies: , , represents the second modulus, Indicates An adjusted prime number.

[0052] S36. Generate a private key by combining the positive integer and the second modulus.

[0053] In an embodiment, the private key is a combination or vector of the positive integer and the second modulus.

[0054] S37. Generate a public key by combining the third modulus and the second modulus.

[0055] In an embodiment, the public key is a combination or vector of the third modulus and the second modulus.

[0056] Furthermore, the use of the public key to encrypt the blockchain unique address and the traceability information key to obtain the port cargo traceability ciphertext includes the following steps: S38. Merge the unique blockchain address and the traceable information key.

[0057] The unique blockchain address and the traceable information key are merged in a preset manner. In an embodiment, the unique blockchain address and the traceable information key are cross-arranged to form new data as a fusion result.

[0058] S39, mapping the fusion result by using a chaotic mapping model to obtain a mapping result; Furthermore, the chaotic mapping model satisfies the following formula: ,in, represents the parameters of the first chaotic map, represents the parameters of the second chaotic map, Indicates is the value iterated from the second chaotic map after the initial value, Indicates that the initial value passes through the first chaotic map values, and Represents the parameter value that satisfies the chaotic mapping.

[0059] The first chaotic mapping and the second chaotic mapping are chaotic mapping functions with control parameters. The chaotic behavior of the system can be adjusted by modifying the introduced control parameters. The embodiment includes the following chaotic mapping functions: Logistic chaotic map, Tent chaotic map, Chebyshev chaotic map, Circle chaotic map, Henon chaotic map, Cubic chaotic map, Bernoulli chaotic map, Piecewise chaotic map and Sine chaotic map, the first chaotic map and the second chaotic map are one or both of them.

[0060] For example, the first chaotic map is a Logistic chaotic map, then The value of is the control parameter range of the Logistic chaotic mapping in (3.57, 4].

[0061] S310. Encrypt the mapping result and the parameters of the chaotic mapping model by using the public key to obtain the port cargo traceability ciphertext.

[0062] S310 encrypts the mapping result and the parameters of the chaotic mapping model by using the public key to obtain the port cargo traceability ciphertext, which satisfies the following formula: ,in, Indicates the port cargo traceability ciphertext, represents the mapping result and the parameters of the chaotic mapping model, Represents the third modulus in the public key, The new modulus in the representation.

[0063] S4. Decrypt the port cargo traceability ciphertext using the private key to obtain the port cargo traceability plaintext, and then obtain the port cargo traceability information.

[0064] In an embodiment, the port cargo traceability ciphertext is decrypted by the private key to obtain the port cargo traceability plaintext, which satisfies the following formula: , Represents a selected positive integer.

[0065] The mapping result and the parameters of the chaotic mapping model are obtained by decryption with a private key, and then an inverse mapping process is performed to obtain the unique blockchain address and the traceable information key, which is then decrypted again to obtain the port cargo traceability plaintext.

[0066] See also Figure 2In an embodiment, in order to efficiently execute the port cargo tracing method based on big data provided by the present invention, the present invention also provides a port cargo tracing system based on big data, including: an input device, an output device, a processor, and a memory, wherein the input device, the output device, the processor, and the memory are interconnected, and the memory contains program instructions, and the program instructions are used for the steps of the port cargo tracing method based on big data. The port cargo tracing system based on big data of the present invention has a compact structure and stable performance, and can stably execute the port cargo tracing method based on big data of the present invention, further improving the overall applicability and practical application ability of the present invention.

[0067] In an embodiment, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. An input device may be used to obtain data information. An output device may be used to output the results obtained by storing program instructions contained in a computer program in a memory provided by the present invention. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory.

[0068] In yet another alternative embodiment, see Figure 3 In order to efficiently execute the port cargo tracing method based on big data provided by the present invention, this embodiment also provides a port cargo tracing device based on big data, such as Figure 3 As shown, including: The memory 10 is used to store computer programs; the processor 20 is used to execute computer programs to implement the above-mentioned port cargo tracing method based on big data. The memory 10, the processor 20, the communication interface 31 and the communication bus 32. The memory 10, the processor 20 and the communication interface 31 all communicate with each other through the communication bus 32.

[0069] In an embodiment, the memory 10 is used to store one or more program instructions. The memory 10 may store program instructions for implementing the following functions: Based on big data technology, the traceability information of port cargo is obtained, the traceability information is encrypted, and the traceability information ciphertext and traceability information key are obtained; Upload the ciphertext of the traceable information to the blockchain network to obtain a unique blockchain address; Generate a public key and a private key, use the public key to encrypt the unique blockchain address and the traceability information key, and obtain the port cargo traceability ciphertext; The port cargo traceability ciphertext is decrypted by the private key to obtain the port cargo traceability plaintext, and then obtain the port cargo traceability information.

[0070] In one possible implementation, the memory 10 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, and at least one application required for a function, etc.; the data storage area may store data created during use. In addition, the memory 10 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and processing hardware-based tasks.

[0071] The processor 20 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, and the processor 20 may be a microprocessor or any conventional processor, etc. The processor 20 may call a program stored in the memory 10. The communication interface 31 may be an interface of a communication module, and is used to connect with other devices or systems.

[0072] Of course, it should be noted that Figure 3 The structure shown does not constitute a limitation on the port cargo tracing device based on big data in this embodiment. In actual applications, the port cargo tracing device based on big data may include Figure 3 More or fewer components than shown, or combinations of certain components.

[0073] An embodiment also provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the above-mentioned port cargo traceability method based on big data are implemented.

[0074] The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0075] In summary, the present invention obtains relevant information of port cargo through big data technology, encrypts it and then saves it in the blockchain. It uses multiple encryption to solve the problem that the relevant information of port cargo is easily modified, resulting in poor credibility of traceability information. It also uses blockchain as a data storage location to improve data traceability efficiency.

[0076] Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope recorded in the present invention.

Claims

1. A port cargo tracing method based on big data, characterized in that: The port cargo tracing method based on big data comprises the following steps: Based on big data technology, the traceability information of port cargo is obtained, the traceability information is encrypted, and the traceability information ciphertext and traceability information key are obtained; Upload the ciphertext of the traceable information to the blockchain network to obtain a unique blockchain address; Generate a public key and a private key, use the public key to encrypt the unique blockchain address and the traceability information key, and obtain the port cargo traceability ciphertext; The port cargo traceability ciphertext is decrypted by the private key to obtain the port cargo traceability plaintext, and then obtain the port cargo traceability information.

2. The port cargo tracing method based on big data according to claim 1 is characterized in that: The step of encrypting the traceable information to obtain the traceable information ciphertext and the traceable information secret key comprises the following steps: Processing the traceable information using a Hash function to obtain an information summary; Using the information summary as a secret key of a symmetric encryption algorithm to encrypt the traceable information, thereby obtaining a ciphertext of the traceable information; The information summary is encrypted using an asymmetric encryption algorithm to obtain the traceable information key.

3. The port cargo tracing method based on big data according to claim 1 is characterized in that: The generation of the public key and the private key comprises the following steps: Randomly select a plurality of prime numbers, and obtain a first modulus through the prime numbers; Adjust the prime number according to the order of the first modulus and the prime number; According to the adjusted prime number, the second modulus and Euler function are obtained; Combining the second modulus and the Euler function, randomly selecting a positive integer; Combining the positive integer and the Euler function to obtain a third modulus; Combining the positive integer and the second modulus to generate a private key; The third modulus and the second modulus are combined to generate a public key.

4. The port cargo tracing method based on big data according to claim 3 is characterized in that: The first modulus is obtained by using the prime number, satisfying the following formula: ,in, represents the first modulus, Indicates prime numbers, represents the number of prime numbers, represents the integer function; The prime numbers are adjusted according to the order of the first modulus and the prime numbers, so as to satisfy: ,in, Indicates the length of the first modulus.

5. The port cargo tracing method based on big data according to claim 3 is characterized in that: The second modulus and the Euler function are obtained based on the adjusted prime number, satisfying the following formula: ,in, represents the second modulus, Indicates Adjusted prime numbers, represents the number of prime numbers after adjustment, represents the integer function; ,in, represents the Euler function.

6. The port cargo tracing method based on big data according to claim 3 is characterized in that: The second modulus and the Euler function are combined to randomly select a positive integer that satisfies the following formula: ,in, represents the second modulus, represents a positive integer, represents the Euler function, Represents the greatest common divisor function.

7. The port cargo tracing method based on big data according to claim 3 is characterized in that: The combination of the positive integer and the Euler function obtains a third modulus that satisfies the following formula: ,in, represents the third modulus, represents a positive integer, represents the Euler function, Represents a new modulus that satisfies: , , represents the second modulus, Indicates An adjusted prime number.

8. The port cargo tracing method based on big data according to claim 1 is characterized in that: The method of using the public key to encrypt the unique blockchain address and the traceability information key to obtain the port cargo traceability ciphertext includes the following steps: Merging the unique blockchain address and the traceable information key; Mapping the fusion result by using the chaotic mapping model to obtain the mapping result; The mapping result and the parameters of the chaotic mapping model are encrypted by the public key to obtain the port cargo traceability ciphertext.

9. The port cargo tracing method based on big data according to claim 8 is characterized in that: The chaotic mapping model satisfies the following formula: ,in, represents the parameters of the first chaotic map, represents the parameters of the second chaotic map, Indicates is the value iterated from the second chaotic map after the initial value, Indicates that the initial value passes through the first chaotic map values, and Represents the parameter value that satisfies the chaotic mapping.

10. A port cargo tracing system based on big data, characterized in that: The port cargo traceability system based on big data includes: an input device, an output device, a processor, and a memory. The input device, the output device, the processor, and the memory are interconnected. The memory includes program instructions, and the program instructions are used to execute the port cargo traceability method based on big data according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Privacy protection bidding method based on blockchain

    CN108650073A

  • A product traceability method and system based on a block chain

    CN109598520A

  • Traceability method and traceability device based on block chain

    CN109934599A

  • Commodity tracing method and device based on block chain technology

    CN110232575A

  • Symmetrical encryption traceability transaction method and system based on block chain network, and storage medium

    CN112884485A