Intelligent travel data management method and system based on block chain
Through the blockchain-based intelligent travel data management method, through data aggregation and encryption processing, combined with the packaging and storage of signed data, the problems of data leakage and tampering in intelligent travel data management are solved, and the data is high integrity and confidentiality are achieved. sex.
Patent Information
- Application Number
- CN202410992598.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-08
- 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.
Adopt intelligent travel data management method based on blockchain, generate the first target data through data aggregation processing, and encrypt it to generate the second target data and signature data, determine the encryption location according to the data type, and combine the signature data and access permissions. Package and store to blockchain node.
Improve the integrity and confidentiality of data, prevent artificial modification, and realize the tamper-proof of smart travel data.
Smart Images

Figure CN118916912A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a blockchain-based smart travel data management method and system. Background Art
[0002] With the rapid development of the Internet of Things and travel tool technologies, users' smart travel data can be obtained on various platforms. Therefore, the security of users' smart travel data has become a mainstream issue.
[0003] In the existing smart travel data management, good research results have been achieved in the data collection, secure transmission and secure storage of smart travel data. However, in the end-to-end smart travel data management, there are still problems such as data leakage and tampering. How to further prevent data leakage and tampering, there is currently no good solution. Therefore, there is an urgent need for a blockchain-based smart travel data management method to solve the above problems. Summary of the invention
[0004] In view of the technical problems existing in the prior art, the present invention provides a blockchain-based intelligent travel data management method and system for.
[0005] In a first aspect, the present invention provides a blockchain-based smart travel data management method, which is applied to an upload node and includes: 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; The second target data and the access permission are packaged with the signature data, and the packaged travel service data is sent to the target blockchain node for storage.
[0006] According to a blockchain-based intelligent travel data management method provided by the present invention, the travel service data, the data summary and the data address are subjected to data aggregation processing to obtain the first target data of the travel service data, including: 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; The vehicle travel data and its corresponding data summary and data address are aggregated, the payment record data and its corresponding data summary and data address are aggregated, and the usage data and its corresponding data summary and data address are aggregated to obtain the first target data of the travel service data.
[0007] According to a blockchain-based smart travel data management method provided by the present invention, the first target data is encrypted to obtain the second target data and signature data of the travel service data, including: 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.
[0008] According to a blockchain-based smart travel data management method provided by the present invention, the second target data and the access authority are packaged with the signature data, including: 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.
[0009] According to a blockchain-based smart travel data management method provided by the present invention, 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.
[0010] According to a blockchain-based smart travel data management method provided by the present invention, 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. 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.
[0011] According to a blockchain-based smart travel data management method provided by the present invention, 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. 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.
[0012] 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: 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 is used to 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.
[0013] In a third aspect, the present invention also provides an electronic device, comprising: a memory for storing a computer software program; and a processor for reading and executing the computer software program, thereby implementing any of the blockchain-based smart travel data management methods described above.
[0014] In a fourth aspect, the present invention also 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, it implements any of the blockchain-based smart travel data management methods described above.
[0015] In a fifth aspect, the present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the blockchain-based smart travel data management methods described above.
[0016] The blockchain-based smart travel data management method provided by the present invention generates first target data of travel service data through data aggregation processing, and then encrypts the first target data of the travel service data to ensure higher integrity and confidentiality of the encrypted second target data, and signs the second target data and access rights through the signature data of the travel service data, and then stores the signed travel service data in the target blockchain node, so that the smart travel data cannot be modified artificially, thereby achieving tamper-proofness of the smart travel data. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flow chart of the smart travel data management method based on blockchain provided by the present invention; Figure 2 It is a structural diagram of the blockchain-based intelligent travel data management system provided by the present invention; Figure 3 A schematic diagram of an electronic device according to an embodiment of the present invention; Figure 4 A schematic diagram of an embodiment of a computer-readable storage medium provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0019] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0020] In the description of the present invention, the term "for example" is used to mean "used as an example, illustration or explanation". Any embodiment described as "for example" in the present invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated 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 consistent with the widest scope consistent with the principles and features disclosed in the present invention.
[0021] Reference Figure 1 , Figure 1 Flow chart of the blockchain-based smart travel data management method provided by the embodiment of the present invention. Figure 1 , the blockchain-based smart travel data management method provided by the embodiment of the present invention is applied to the uploading node and may include steps 10 to 50: Step 10: Obtain the travel service data uploaded by the target user and the access rights to the travel service data.
[0022] The travel service data in this embodiment includes vehicle travel data, payment record data, and usage data, wherein the vehicle travel data includes starting point and end point, travel distance, travel time, route information, etc., payment record data includes payment amount, payment time, payment method, account information, etc., and usage data includes usage frequency, usage time, service evaluation, etc. Access rights refer to which users or platforms can access travel service data.
[0023] Therefore, the uploading node can obtain the travel service data uploaded by the target user, determine which users or platforms can access the travel service data, and obtain access rights to the travel service data.
[0024] Step 20, 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.
[0025] Optionally, the data summary is obtained by processing the travel service data based on a data summary algorithm. Specifically, the uploading node can process the travel service data based on a data summary algorithm (such as the MD5 algorithm) to obtain the data summary of the travel service data, and then upload the travel service data and the data summary to the travel data management system. After uploading, the data address returned by the travel data management system can be received, and the data address can be used to extract the travel service data and the data summary from the travel data management system.
[0026] It is understandable that the data summary can be used to verify the travel service data (plain text data) during the data sharing process to ensure the authenticity of the data.
[0027] Step 30, 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.
[0028] Optionally, the uploading node performs 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, specifically: the uploading node obtains the data summary and data address corresponding to the vehicle travel data, the data summary and data address corresponding to the payment record data, and the data summary and data address corresponding to the usage data. Further, the uploading node performs data aggregation processing on each data and its corresponding data summary using the data address of each data as a pointer. Therefore, using the data address of the vehicle travel data as a pointer, the vehicle travel data and its corresponding data summary are aggregated, using the data address of the payment record data as a pointer, the payment record data and its corresponding data summary are aggregated, and using the data address of the usage data as a pointer, the usage data and its corresponding data summary are aggregated to obtain the first target data of the travel service data.
[0029] In one embodiment, the data summary of vehicle travel data A is TA, and the data address is PA. Therefore, the aggregated data of vehicle travel data A is PA->[A:TA], the data summary of payment record data B is TB, and the data address is PB. Therefore, the aggregated data of payment record data B is PB->[B:TB], the data summary of usage data C is TC, and the data address is PC. Therefore, the aggregated data of usage data C is PC->[C:TC], and the first target data of travel service data finally obtained is {PA->[A:TA], PB->[B:TB], PC->[C:TC]}.
[0030] Step 40: encrypt the first target data to obtain second target data and signature data of the travel service data.
[0031] Optionally, the uploading node encrypts the first target data to obtain the second target data and signature data of the travel service data, specifically: The uploading node obtains the hash value of the target blockchain node, and obtains the hash function Hash() of the target blockchain node according to the hash value, thereby obtaining 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.
[0032] Furthermore, the uploading node processes the first target data through a hash function to obtain a hash value K. Furthermore, the uploading node encrypts the hash value through a symmetric private key M1 and a symmetric public key Q1 to obtain signature data. Therefore, the signature data Sign can be expressed as .
[0033] Furthermore, the uploading node encrypts the first target data Data by using the asymmetric private key M2 and the asymmetric public key to obtain the second target data. Therefore, the second target data BData= .
[0034] Step 50: Package the second target data and access rights with signature data, and send the packaged travel service data to the target blockchain node for storage.
[0035] Optionally, the uploading node packages the second target data and access rights with signature data, and sends the packaged travel service data to the target blockchain node for storage, specifically: The uploading node obtains the data type of the travel service data, where the data type includes sharing type, privacy type and sensitive type. The data format of each data type after encryption is different.
[0036] Therefore, the uploading node determines the encryption location of the signature data according to the data type.
[0037] Furthermore, if the data type is a shared type, the uploading node determines that the encrypted location is the common location of the second target data and the access rights, that is, the second target data and the access rights are encrypted. In this case, the second target data and the access rights are packaged according to the signature data and its corresponding encrypted location, and the packaged travel service data is obtained as follows: the signature data is packaged with the common location, and the second target data and the access rights are packaged 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 rights, and Sign is the signature data.
[0038] Furthermore, if the data type is of privacy type, the uploading node determines that the encryption position is the first private position of the access right, that is, only the access right is encrypted. In this case, the second target data and the access right are packaged according to the signature data and its corresponding encryption position, and the packaged travel service data is obtained as follows: the signature data is packaged with the second target data and the access right in the first private position 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.
[0039] Furthermore, if the data type is a sensitive type, the uploading node determines that the encryption position is the second private position of the second target data, that is, only the second target data is encrypted. In this case, the second target data and the access rights are packaged according to the signature data and its corresponding encryption position, and the packaged travel service data is obtained as follows: the signature data is packaged with the second target data and the access rights in the second private position 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 rights, and Sign is the signature data.
[0040] The embodiment of the present invention generates the first target data of travel service data through data aggregation processing, and then encrypts the first target data of the travel service data, so that the integrity and confidentiality of the encrypted second target data are higher, and signs the second target data and access rights through the signature data of the travel service data, and then stores the signed travel service data in the target blockchain node, so that the smart travel data cannot be modified manually, thereby realizing the tamper-proof nature of the smart travel data.
[0041] The following is a description of the blockchain-based smart travel data management system provided by the present invention. The blockchain-based smart travel data management system described below and the blockchain-based smart travel data management method described above can refer to each other.
[0042] like Figure 2 As shown, Figure 2 It is a 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: The acquisition module 201 is 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 travel data, payment record data, and usage data; An uploading module 202, configured to upload the travel service data and its corresponding data summary to a travel data management system, so as to receive a 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 203 is used to perform 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 204, configured to encrypt the first target data to obtain second target data and signature data of the travel service data; The data management module 205 is used to 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.
[0043] In one embodiment, the data aggregation module 203 is further configured to: 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; The vehicle travel data and its corresponding data summary and data address are aggregated, the payment record data and its corresponding data summary and data address are aggregated, and the usage data and its corresponding data summary and data address are aggregated to obtain the first target data of the travel service data.
[0044] In one embodiment, the data encryption module 204 is further configured to: 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.
[0045] In one embodiment, the data management module 205 is further configured to: 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.
[0046] In one embodiment, the data management module 205 is further configured to: 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.
[0047] In one embodiment, the data management module 205 is further configured to: 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. 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.
[0048] In one embodiment, the data management module 205 is further configured to: 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. 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.
[0049] The embodiment of the present invention generates the first target data of travel service data through data aggregation processing, and then encrypts the first target data of the travel service data, so that the integrity and confidentiality of the encrypted second target data are higher, and signs the second target data and access rights through the signature data of the travel service data, and then stores the signed travel service data in the target blockchain node, so that the smart travel data cannot be modified manually, thereby realizing the tamper-proof nature of the smart travel data.
[0050] See also Figure 3 , Figure 3 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 3As shown, an embodiment of the present invention provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, the following steps are implemented: 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; The second target data and the access permission are packaged with the signature data, and the packaged travel service data is sent to the target blockchain node for storage.
[0051] See also Figure 4 , Figure 4 Schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 4 As 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: 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; The second target data and the access permission are packaged with the signature data, and the packaged travel service data is sent to the target blockchain node for storage.
[0052] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0053] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may 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.
[0054] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0055] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0056] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0057] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0058] 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 equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A smart travel data management method based on blockchain, It is 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; The second target data and the access permission are packaged with the signature data, and the packaged travel service data is sent to the target blockchain node for storage.
2. According to the blockchain-based smart travel data management method of claim 1, It is characterized in that 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; The vehicle travel data and its corresponding data summary and data address are aggregated, the payment record data and its corresponding data summary and data address are aggregated, and the usage data and its corresponding data summary and data address are aggregated to obtain the first target data of the travel service data.
3. According to the blockchain-based smart travel data management method of claim 1, It 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.
4. According to the blockchain-based smart travel data management method of claim 1, It is characterized in that 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.
5. According to the blockchain-based smart travel data management method of claim 4, It 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 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. According to the blockchain-based smart travel data management method of claim 4, It 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. 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.
7. According to the blockchain-based smart travel data management method of claim 4, It 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. 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.
8. A smart travel data management system based on blockchain, It is 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 is used to 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.
9. An electronic device, It is 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 7.
10. A non-transitory computer-readable storage medium, It is 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 7.
Citation Information
Patent Citations
Science and technology service transaction method based on blockchain smart contract
CN111899107A
Natural resource right confirmation registration data processing method and system based on block chain
CN115828321A
Fishery germplasm resource data sharing method and system based on block chain
CN116185974A
Interoperable rights management
US20090293101A1
