A Blockchain-Based Intelligent Travel Data Management Method and System
Through the blockchain-based intelligent travel data management method, through data aggregation, encryption and signature processing, the problems of data leakage and tampering in intelligent travel data management are solved, and the secure transmission and storage of data are realized.
Patent Information
- Application Number
- CN202410992598.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2044-07-23
AI Technical Summary
There are problems of data leakage and tampering in existing intelligent travel data management, and there is a lack of effective protective measures.
The intelligent travel data management method based on blockchain is adopted to generate encrypted target data of travel service data through data aggregation, encryption and signature processing, and store it in the blockchain node to ensure the integrity and confidentiality of the data.
It realizes the tamper-proof of intelligent travel data, ensuring the security and integrity of data during transmission and storage.
Smart Images

Figure CN118916912B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of blockchain, and in particular, to a method and system for managing intelligent travel data based on blockchain. Background Art
[0002] With the rapid development of the Internet of Things and travel tool technologies, users' intelligent travel data can be obtained on various platforms. Therefore, the security of users' intelligent travel data has become a mainstream issue.
[0003] In the existing management of intelligent travel data, good research results have been achieved in aspects such as data collection of intelligent travel data, secure transmission, and secure storage of intelligent travel data. However, in end-to-end intelligent travel data management, there are still problems such as data leakage and tampering. How to further prevent data leakage and tampering currently has no good solution. Therefore, there is an urgent need for a method for managing intelligent travel data based on blockchain to solve the above problems. Summary of the Invention
[0004] The present invention provides a method and system for managing intelligent travel data based on blockchain to address the technical problems existing in the prior art.
[0005] In a first aspect, the present invention provides a method for managing intelligent travel data based on blockchain, which is applied to an upload node and includes:
[0006] Obtain the travel service data uploaded by a target user and the access right to the travel service data; the travel service data includes vehicle trip data, payment record data, and usage data;
[0007] Upload the travel service data and its corresponding data digest to a travel data management system to receive the data address returned by the travel data management system, where the data digest is obtained by processing the travel service data based on a data digest algorithm;
[0008] Perform data aggregation processing on the travel service data, the data digest, and the data address to obtain a first target data of the travel service data;
[0009] Perform encryption processing on the first target data to obtain a second target data of the travel service data and signature data;
[0010] Package the second target data and the access right with the signature data and send the packaged travel service data to a target blockchain node for storage.
[0011] According to an intelligent travel data management method based on blockchain provided by the present invention, the data aggregation process of the travel service data, the data digest, and the data address to obtain the first target data of the travel service data includes:
[0012] Obtain the data digest and data address corresponding to the vehicle travel data, the data digest and data address corresponding to the payment record data, and the data digest and data address corresponding to the usage data;
[0013] Perform data aggregation processing on the vehicle travel data and its corresponding data digest and data address, perform data aggregation processing on the payment record data and its corresponding data digest and data address, and perform data aggregation processing on the usage data and its corresponding data digest and data address to obtain the first target data of the travel service data.
[0014] According to an intelligent travel data management method based on blockchain provided by the present invention, the encryption process of the first target data to obtain the second target data and signature data of the travel service data includes:
[0015] Obtain the hash function, private key, and public key of the target blockchain node; the private key includes a symmetric private key and an asymmetric private key, and the public key includes a symmetric public key and an asymmetric public key;
[0016] Process the first target data through the hash function to obtain a hash value;
[0017] Encrypt the hash value through the symmetric private key and the symmetric public key to obtain the signature data;
[0018] Encrypt the first target data through the asymmetric private key and the asymmetric public key to obtain the second target data.
[0019] According to an intelligent travel data management method based on blockchain provided by the present invention, the process of packaging the second target data and the access permission with the signature data includes:
[0020] Obtain the data type of the travel service data; the data type includes a shared type, a privacy type, and a sensitive type;
[0021] Determine the encryption position of the signature data based on the data type;
[0022] Based on the signature data and its corresponding encryption position, package the second target data and the access permission to obtain the packaged travel service data.
[0023] A method for managing intelligent travel data based on blockchain according to the present invention, determining the encryption location of the signature data based on the data type, includes:
[0024] If the data type is a shared type, determine that the encryption location is the common location of the second target data and the access permission;
[0025] Correspondingly, based on the signature data and its corresponding encryption location, packing the second target data and the access permission to obtain the packed travel service data, includes:
[0026] Pack the second target data and the access permission with the signature data at the common location to obtain the packed travel service data, and the packed travel service data is:
[0027] FData = {BData, Access}Sign, where FData is the packed travel service data, BData is the second target data, Access is the access permission, and Sign is the signature data.
[0028] A method for managing intelligent travel data based on blockchain according to the present invention, determining the encryption location of the signature data based on the data type, includes:
[0029] If the data type is a privacy type, determine that the encryption location is the first private location of the access permission;
[0030] Correspondingly, based on the signature data and its corresponding encryption location, packing the second target data and the access permission to obtain the packed travel service data. Includes:
[0031] Pack the second target data and the access permission with the signature data at the first private location to obtain the packed travel service data, and the packed travel service data is:
[0032] FData = {BData, (Access)Sign}, where FData is the packed travel service data, BData is the second target data, Access is the access permission, and Sign is the signature data.
[0033] A method for managing intelligent travel data based on blockchain according to the present invention, determining the encryption location of the signature data based on the data type, includes:
[0034] If the data type is a sensitive type, determine that the encryption location is the second private location of the second target data;
[0035] Correspondingly, based on the signature data and its corresponding encrypted location, the second target data and the access permission are packaged to obtain the packaged travel service data, including:
[0036] Using the signature data at the second private location to package the second target data and the access permission to obtain the packaged travel service data, where the packaged travel service data is:
[0037] FData = {(BData)Sign, Access}, where FData is the packaged travel service data, BData is the second target data, Access is the access permission, and Sign is the signature data.
[0038] In a second aspect, the present invention further provides a blockchain-based intelligent travel data management system, which is applied to an upload node and includes:
[0039] An acquisition module, configured to acquire the travel service data uploaded by a target user and the access permission for the travel service data; the travel service data includes vehicle trip data, payment record data, and usage data;
[0040] An upload module, configured to upload the travel service data and its corresponding data digest to a travel data management system to receive a data address returned by the travel data management system, where the data digest is obtained by processing the travel service data based on a data digest algorithm;
[0041] A data aggregation module, configured to perform data aggregation processing on the travel service data, the data digest, and the data address to obtain the first target data of the travel service data;
[0042] A data encryption module, configured to encrypt the first target data to obtain the second target data and signature data of the travel service data;
[0043] A data management module, configured to package the second target data and the access permission with the signature data, and send the packaged travel service data to a target blockchain node for storage.
[0044] In a third aspect, the present invention further provides an electronic device, including: a memory, configured to store a computer software program; a processor, configured to read and execute the computer software program, and further implement the blockchain-based intelligent travel data management method as described in any one of the above.
[0045] Fourthly, the present invention further provides a non-transitory computer-readable storage medium, characterized in that a computer software program is stored in the storage medium, and when the computer software program is executed by a processor, the method for managing intelligent travel data based on blockchain as described in any one of the above is implemented.
[0046] Fifthly, the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method for managing intelligent travel data based on blockchain as described in any one of the above is implemented.
[0047] The method for managing intelligent travel data based on blockchain provided by the present invention generates first target data of travel service data through data aggregation processing, and then performs encryption processing on the first target data of travel service data, so that the integrity and confidentiality of the encrypted second target data are higher, and the second target data and access rights are signed through the signature data of travel service data, and then the signed travel service data is stored in the target blockchain node, so that the intelligent travel data cannot be modified artificially, and the anti-tampering property of the intelligent travel data is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flowchart of the method for managing intelligent travel data based on blockchain provided by the present invention;
[0049] Figure 2 is a structural diagram of the system for managing intelligent travel data based on blockchain provided by the present invention;
[0050] Figure 3 is a schematic diagram of an embodiment of an electronic device provided by an embodiment of the present invention;
[0051] Figure 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0052] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
[0053] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of the said features. In the description of the present invention, "a plurality of" means two or more unless otherwise specifically defined.
[0054] In the description of the present invention, the term "for example" is used to mean "serving as an example, illustration, or explanation". Any embodiment described as "for example" in the present invention is not necessarily construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to implement and use the present invention. In the following description, details are set forth for purposes of explanation. It should be understood that those of ordinary skill in the art can recognize that the present invention can be implemented without the use of these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
[0055] Refer to Figure 1 , Figure 1 is a flowchart of the blockchain-based intelligent travel data management method provided by an embodiment of the present invention. Refer to Figure 1 The blockchain-based intelligent travel data management method provided by an embodiment of the present invention, which is applied to an upload node, may include steps 10 to 50:
[0056] Step 10, obtain the travel service data uploaded by the target user and the access permission of the travel service data.
[0057] Among them, the travel service data in this embodiment includes vehicle trip data, payment record data, and usage data. Among them, the vehicle trip data such as the starting point and ending point, trip distance, trip time, route information, etc., the payment record data such as the payment amount, payment time, payment method, account information, etc., and the usage data such as the usage frequency, usage period, service evaluation, etc. The access permission refers to which users or which platforms can access the travel service data.
[0058] Therefore, the upload node can obtain the travel service data uploaded by the target user and determine which users or platforms can access the travel service data, and obtain the access permission of the travel service data.
[0059] Step 20, upload the travel service data and its corresponding data digest to the travel data management system to receive the data address returned by the travel data management system.
[0060] Optionally, the data digest is obtained by processing the travel service data based on a data digest algorithm. Specifically, the uploading node can process the travel service data based on a data digest algorithm (such as the MD5 algorithm) to obtain the data digest of the travel service data, and then upload the travel service data and the data digest to the travel data management system. After uploading, it can receive the data address returned by the travel data management system, and this data address can be used to extract the travel service data and the data digest from the travel data management system.
[0061] It can be understood that the data digest can be used to verify and check the travel service data (data in plaintext) during the data sharing process to ensure the authenticity of the data.
[0062] Step 30: Aggregate the travel service data, the data digest, and the data address to obtain the first target data of the travel service data.
[0063] Optionally, the uploading node aggregates the travel service data, the data digest, and the data address to obtain the first target data of the travel service data, specifically as follows: The uploading node obtains the data digest and data address corresponding to the vehicle trip data, the data digest and data address corresponding to the payment record data, and the data digest and data address corresponding to the usage data. Further, the uploading node performs data aggregation processing on each data and its corresponding data digest with the data address of each data as a pointer. Therefore, with the data address of the vehicle trip data as a pointer, the vehicle trip data and its corresponding data digest are aggregated, with the data address of the payment record data as a pointer, the payment record data and its corresponding data digest are aggregated, and with the data address of the usage data as a pointer, the usage data and its corresponding data digest are aggregated to obtain the first target data of the travel service data.
[0064] In an embodiment, the data digest of the vehicle trip data A is TA, and the data address is PA. Therefore, the aggregated data of the vehicle trip data A is PA->[A:TA]. The data digest of the payment record data B is TB, and the data address is PB. Therefore, the aggregated data of the payment record data B is PB->[B:TB]. The data digest of the usage data C is TC, and the data address is PC. Therefore, the aggregated data of the usage data C is PC->[C:TC]. The finally obtained first target data of the travel service data is {PA->[A:TA], PB->[B:TB], PC->[C:TC]}.
[0065] Step 40: Encrypt the first target data to obtain the second target data of the travel service data and the signature data.
[0066] Optionally, the uploading node encrypts the first target data to obtain the second target data and signature data of the travel service data, specifically:
[0067] The uploading node obtains the hash value of the target blockchain node and the hash function Hash() of the target blockchain node based on the hash value, so as to obtain the hash function of the target blockchain node. At the same time, the uploading node obtains the private key and public key of the target blockchain node, where the private key includes a symmetric private key and an asymmetric private key, and the public key includes a symmetric public key and an asymmetric public key.
[0068] Further, the uploading node processes the first target data through the hash function to obtain a hash value K. Further, the uploading node encrypts the hash value through the symmetric private key M1 and the symmetric public key Q1 to obtain the signature data. Therefore, the signature data Sign can be expressed as .
[0069] Further, the uploading node encrypts the first target data Data through the asymmetric private key M2 and the asymmetric public key to obtain the second target data. Therefore, the second target data BData = .
[0070] Step 50: Package the second target data and the access right with the signature data, and send the packaged travel service data to the target blockchain node for storage.
[0071] Optionally, the uploading node packages the second target data and the access right with the signature data, and sends the packaged travel service data to the target blockchain node for storage, specifically:
[0072] The uploading node obtains the data type of the travel service data, where the data type includes a shared type, a privacy type, and a sensitive type, and the encrypted data formats of each data type are different.
[0073] Therefore, the uploading node determines the encryption position of the signature data according to the data type.
[0074] Further, if the data type is a shared type, the uploading node determines that the encryption location is the common location of the second target data and the access right, that is, both the second target data and the access right are encrypted. In this case, according to the signature data and its corresponding encryption location, the second target data and the access right are packaged to obtain the packaged travel service data, specifically: the signature data is used at the common location to package the second target data and the access right to obtain the packaged travel service data. The packaged travel service data is: FData = {BData, Access}Sign, where FData is the packaged travel service data, BData is the second target data, Access is the access right, and Sign is the signature data.
[0075] Further, if the data type is a privacy type, the uploading node determines that the encryption location is the first private location of the access right, that is, only the access right is encrypted. In this case, according to the signature data and its corresponding encryption location, the second target data and the access right are packaged to obtain the packaged travel service data, specifically: the signature data is used at the first private location to package the second target data and the access right to obtain the packaged travel service data. The packaged travel service data is: FData = {BData, (Access)Sign}, where FData is the packaged travel service data, BData is the second target data, Access is the access right, and Sign is the signature data.
[0076] Further, if the data type is a sensitive type, the uploading node determines that the encryption location is the second private location of the second target data, that is, only the second target data is encrypted. In this case, according to the signature data and its corresponding encryption location, the second target data and the access right are packaged to obtain the packaged travel service data, specifically: the signature data is used at the second private location to package the second target data and the access right to obtain the packaged travel service data. The packaged travel service data is: FData = {(BData)Sign, Access}, where FData is the packaged travel service data, BData is the second target data, Access is the access right, and Sign is the signature data.
[0077] In the embodiment of the present invention, the first target data of the travel service data is generated through data aggregation processing, and then the first target data of the travel service data is encrypted, so that the integrity and confidentiality of the encrypted second target data are higher. The second target data and the access right are signed through the signature data of the travel service data, and then the signed travel service data is stored in the target blockchain node, so that the intelligent travel data cannot be modified artificially, and the anti-tampering property of the intelligent travel data is realized.
[0078] The following describes the blockchain-based intelligent travel data management system provided by the present invention. The blockchain-based intelligent travel data management system described below can be correspondingly referred to the blockchain-based intelligent travel data management method described above.
[0079] As Figure 2 shown, Figure 2 is the structural diagram of the blockchain-based intelligent travel data management system provided by the present invention. The blockchain-based intelligent travel data management system includes:
[0080] An acquisition module 201, configured to acquire travel service data uploaded by a target user and the access right to the travel service data; the travel service data includes vehicle travel data, payment record data, and usage data;
[0081] An upload module 202, configured to upload the travel service data and its corresponding data digest to a travel data management system to receive a data address returned by the travel data management system, where the data digest is obtained by processing the travel service data based on a data digest algorithm;
[0082] A data aggregation module 203, configured to perform data aggregation processing on the travel service data, the data digest, and the data address to obtain a first target data of the travel service data;
[0083] A data encryption module 204, configured to perform encryption processing on the first target data to obtain a second target data of the travel service data and signature data;
[0084] A data management module 205, configured to package the second target data and the access right with the signature data, and send the packaged travel service data to a target blockchain node for storage.
[0085] In one embodiment, the data aggregation module 203 is further configured to:
[0086] Acquire the data digest and data address corresponding to the vehicle travel data, the data digest and data address corresponding to the payment record data, and the data digest and data address corresponding to the usage data;
[0087] Perform data aggregation processing on the vehicle travel data and its corresponding data digest and data address, perform data aggregation processing on the payment record data and its corresponding data digest and data address, and perform data aggregation processing on the usage data and its corresponding data digest and data address to obtain a first target data of the travel service data.
[0088] In one embodiment, the data encryption module 204 is further configured to:
[0089] Obtain the hash function, private key, and public key of the target blockchain node; the private key includes a symmetric private key and an asymmetric private key, and the public key includes a symmetric public key and an asymmetric public key;
[0090] Process the first target data through the hash function to obtain a hash value;
[0091] Encrypt the hash value through the symmetric private key and the symmetric public key to obtain the signature data;
[0092] Encrypt the first target data through the asymmetric private key and the asymmetric public key to obtain the second target data.
[0093] In one embodiment, the data management module 205 is further configured to:
[0094] Obtain the data type of the travel service data; the data type includes a shared type, a privacy type, and a sensitive type;
[0095] Determine the encryption location of the signature data based on the data type;
[0096] Based on the signature data and its corresponding encryption location, package the second target data and the access permission to obtain the packaged travel service data.
[0097] In one embodiment, the data management module 205 is further configured to:
[0098] If the data type is a shared type, determine that the encryption location is the common location of the second target data and the access permission;
[0099] Correspondingly, the step of packaging the second target data and the access permission based on the signature data and its corresponding encryption location to obtain the packaged travel service data includes:
[0100] Package the second target data and the access permission with the signature data at the common location to obtain the packaged travel service data, and the packaged travel service data is:
[0101] FData = {BData, Access}Sign, where FData is the packaged travel service data, BData is the second target data, Access is the access permission, and Sign is the signature data.
[0102] In one embodiment, the data management module 205 is further configured to:
[0103] If the data type is a privacy type, determine that the encryption location is the first private location of the access right;
[0104] Correspondingly, based on the signature data and its corresponding encryption location, pack the second target data and the access right to obtain the packed travel service data. The process includes:
[0105] Pack the second target data and the access right with the signature data at the first private location to obtain the packed travel service data, and the packed travel service data is:
[0106] FData = {BData, (Access)Sign}, where FData is the packed travel service data, BData is the second target data, Access is the access right, and Sign is the signature data.
[0107] In an embodiment, the data management module 205 is further configured to:
[0108] If the data type is a sensitive type, determine that the encryption location is the second private location of the second target data;
[0109] Correspondingly, based on the signature data and its corresponding encryption location, pack the second target data and the access right to obtain the packed travel service data. The process includes:
[0110] Pack the second target data and the access right with the signature data at the second private location to obtain the packed travel service data, and the packed travel service data is:
[0111] FData = {(BData)Sign, Access}, where FData is the packed travel service data, BData is the second target data, Access is the access right, and Sign is the signature data.
[0112] In the embodiment of the present invention, the first target data of the travel service data is generated through data aggregation processing, and then the first target data of the travel service data is encrypted, so that the integrity and confidentiality of the encrypted second target data are higher. The second target data and the access right are signed by the signature data of the travel service data, and then the signed travel service data is stored in the target blockchain node, so that the intelligent travel data cannot be modified artificially, realizing the anti-tampering property of the intelligent travel data.
[0113] Please refer to Figure 3 , Figure 3 which is the schematic diagram of the embodiment of the electronic device provided by the embodiment of the present invention. AsFigure 3 As shown in the figure, an embodiment of the present invention provides an electronic device 300, which includes a memory 310, a processor 320, and a computer program 311 stored on the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, the following steps are implemented:
[0114] Obtain the travel service data uploaded by the target user and the access right to the travel service data; the travel service data includes vehicle itinerary data, payment record data, and usage data;
[0115] Upload the travel service data and its corresponding data digest to the travel data management system to receive the data address returned by the travel data management system, where the data digest is obtained by processing the travel service data based on a data digest algorithm;
[0116] Perform data aggregation processing on the travel service data, the data digest, and the data address to obtain the first target data of the travel service data;
[0117] Perform encryption processing on the first target data to obtain the second target data and signature data of the travel service data;
[0118] Package the second target data and the access right with the signature data, and send the packaged travel service data to the target blockchain node for storage.
[0119] Please refer to Figure 4 , Figure 4 which is a schematic diagram of an embodiment of a computer-readable storage medium provided by an embodiment of the present invention. As Figure 4 shown, this embodiment provides a computer-readable storage medium 400, on which a computer program 411 is stored. When the computer program 411 is executed by a processor, the following steps are implemented:
[0120] Obtain the travel service data uploaded by the target user and the access right to the travel service data; the travel service data includes vehicle itinerary data, payment record data, and usage data;
[0121] Upload the travel service data and its corresponding data digest to the travel data management system to receive the data address returned by the travel data management system, where the data digest is obtained by processing the travel service data based on a data digest algorithm;
[0122] Perform data aggregation processing on the travel service data, the data digest, and the data address to obtain the first target data of the travel service data;
[0123] Encrypt the first target data to obtain the second target data and signature data of the travel service data;
[0124] Package the second target data and the access permission with the signature data, and send the packaged travel service data to the target blockchain node for storage.
[0125] It should be noted that in the above embodiments, the descriptions of the respective embodiments have their own emphases. For parts not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0126] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0127] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the processes and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the specified functions in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0128] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the specified functions in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide means for implementing the specified functions in Figure 1 one process or multiple processes and / or blocksFigure 1 Steps of the functions specified in one or more boxes.
[0130] Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic inventive concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications falling within the scope of the present invention.
[0131] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.
Claims
1. A blockchain-based intelligent travel data management method, characterized in that: Applicable to upload nodes, including: Obtaining travel service data uploaded by the target user and access rights to the travel service data; the travel service data includes vehicle trip data, payment record data, and usage data; Uploading the travel service data and its corresponding data summary to the travel data management system to receive the data address returned by the travel data management system, wherein the data summary is obtained by processing the travel service data based on a data summary algorithm; Performing data aggregation processing on the travel service data, the data summary and the data address to obtain first target data of the travel service data; Encrypting the first target data to obtain second target data and signature data of the travel service data; Packaging the second target data and the access permission with the signature data, and sending the packaged travel service data to the target blockchain node for storage; The step of performing data aggregation processing on the travel service data, the data summary, and the data address to obtain the first target data of the travel service data includes: Obtaining a data summary and a data address corresponding to the vehicle travel data, a data summary and a data address corresponding to the payment record data, and a data summary and a data address corresponding to the usage data; Aggregate the vehicle trip data and its corresponding data summary and data address, aggregate the payment record data and its corresponding data summary and data address, and aggregate the usage data and its corresponding data summary and data address to obtain first target data of the travel service data; The step of packaging the second target data and the access permission with the signature data includes: Acquire the data type of the travel service data; the data type includes a sharing type, a privacy type, and a sensitive type; Determining an encryption position of the signature data based on the data type; Based on the signature data and its corresponding encrypted position, the second target data and the access permission are packaged to obtain the packaged travel service data; The step of determining the encryption position of the signature data based on the data type includes: If the data type is a shared type, determining the encryption location to be a common location of the second target data and the access permission; Correspondingly, based on the signature data and its corresponding encrypted position, the second target data and the access permission are packaged to obtain the packaged travel service data, including: The signature data is used to package the second target data and the access authority in the shared location to obtain the packaged travel service data, where the packaged travel service data is: FData={BData, Access} Sign , where FData is the packaged travel service data, BData is the second target data, Access is the access permission, and Sign is the signature data.
2. The blockchain-based smart travel data management method according to claim 1 is characterized in that: The encrypting the first target data to obtain the second target data and signature data of the travel service data includes: Obtaining a hash function, a private key, and a public key of the target blockchain node; the private key includes a symmetric private key and an asymmetric private key, and the public key includes a symmetric public key and an asymmetric public key; Processing the first target data by using the hash function to obtain a hash value; Encrypting the hash value by using the symmetric private key and the symmetric public key to obtain the signature data; The first target data is encrypted by using the asymmetric private key and the asymmetric public key to obtain the second target data.
3. The blockchain-based smart travel data management method according to claim 1 is characterized in that: The step of determining the encryption position of the signature data based on the data type includes: If the data type is a privacy type, determining the encryption position as a first private position of the access right; Correspondingly, based on the signature data and its corresponding encrypted position, the second target data and the access permission are packaged to obtain the packaged travel service data, including: The signature data is used in the first private location to package the second target data and the access permission to obtain the packaged travel service data, where the packaged travel service data is: FData={BData, (Access) Sign }, where FData is the packaged travel service data, BData is the second target data, Access is the access permission, and Sign is the signature data.
4. The blockchain-based smart travel data management method according to claim 1 is characterized in that: The step of determining the encryption position of the signature data based on the data type includes: If the data type is a sensitive type, determining the encryption location to be a second private location of the second target data; Correspondingly, based on the signature data and its corresponding encrypted position, the second target data and the access permission are packaged to obtain the packaged travel service data, including: The signature data is used in the second private location to package the second target data and the access permission to obtain the packaged travel service data, where the packaged travel service data is: FData={(BData) Sign , Access}, where FData is the packaged travel service data, BData is the second target data, Access is the access permission, and Sign is the signature data.
5. A blockchain-based intelligent travel data management system, characterized in that: Applicable to upload nodes, including: An acquisition module, used to acquire the travel service data uploaded by the target user and the access rights to the travel service data; the travel service data includes vehicle trip data, payment record data, and usage data; An uploading module, used for uploading the travel service data and its corresponding data summary to the travel data management system, so as to receive the data address returned by the travel data management system, wherein the data summary is obtained by processing the travel service data based on a data summary algorithm; A data aggregation module, used for performing data aggregation processing on the travel service data, the data summary and the data address to obtain first target data of the travel service data; A data encryption module, used for encrypting the first target data to obtain second target data and signature data of the travel service data; A data management module, configured to package the second target data and the access permission with the signature data, and send the packaged travel service data to a target blockchain node for storage; The step of performing data aggregation processing on the travel service data, the data summary, and the data address to obtain the first target data of the travel service data includes: Obtaining a data summary and a data address corresponding to the vehicle travel data, a data summary and a data address corresponding to the payment record data, and a data summary and a data address corresponding to the usage data; Aggregate the vehicle trip data and its corresponding data summary and data address, aggregate the payment record data and its corresponding data summary and data address, and aggregate the usage data and its corresponding data summary and data address to obtain first target data of the travel service data; The step of packaging the second target data and the access permission with the signature data includes: Acquire the data type of the travel service data; the data type includes a sharing type, a privacy type, and a sensitive type; Determining an encryption position of the signature data based on the data type; Based on the signature data and its corresponding encrypted position, the second target data and the access permission are packaged to obtain the packaged travel service data; The step of determining the encryption position of the signature data based on the data type includes: If the data type is a shared type, determining the encryption location to be a common location of the second target data and the access permission; Correspondingly, based on the signature data and its corresponding encrypted position, the second target data and the access permission are packaged to obtain the packaged travel service data, including: The signature data is used to package the second target data and the access authority in the shared location to obtain the packaged travel service data, where the packaged travel service data is: FData={BData, Access} Sign , where FData is the packaged travel service data, BData is the second target data, Access is the access permission, and Sign is the signature data.
6. An electronic device, characterized in that: include: Memory for storing computer software programs; A processor is used to read and execute the computer software program, thereby implementing the blockchain-based smart travel data management method described in any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium, characterized in that: The storage medium stores a computer software program, which, when executed by a processor, implements the blockchain-based smart travel data management method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Fishery germplasm resource data sharing method and system based on block chain
CN116185974A
Interoperable rights management
US20090293101A1