ETC data rights confirmation method and device based on blockchain technology

By using blockchain technology to encrypt and sign in ETC transaction flow data and uploading it to the blockchain platform, the problem of difficulty in confirming the right of ETC transaction flow data is solved, the clear ownership of data and the confidentiality of data is achieved, and the cost of rights protection is reduced.

CN113988853BActive Publication Date: 2025-03-11BEIJING CCCC GUOTONG INTELLIGENT TRANSPORTATION SYST TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111292726.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-03
Publication Date
2025-03-11
Estimated Expiration
2041-11-03

AI Technical Summary

Technical Problem

The existing technology lacks a plan to confirm the rights of ETC transaction data, resulting in the data ownership being unclear, which is prone to copying and forging, and the rights and interests of road owners cannot be protected.

Method used

Using a blockchain technology method, by obtaining the transaction flow data of ETC transactions, encrypting the data using the encryption key of the owner of the road section, and signing the encrypted data using an identity certificate, uploading the signed data to the blockchain platform, packaging it into data blocks and adding it to the blockchain.

Benefits of technology

Through the non-tampering and non-forgery characteristics of blockchain technology, it is clear that the ownership of transaction flow data belongs to the owner of the road section, ensuring the confidentiality and rights of the data, and reducing the cost of rights protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113988853B_ABST
    Figure CN113988853B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method and device for confirming the rights of ETC data based on blockchain technology, the method comprising: obtaining transaction flow data of ETC transactions; encrypting the transaction flow data using the encryption key corresponding to the road section owner; signing the encrypted transaction flow data using the identity certificate corresponding to the road section owner; uploading the signed transaction flow data to the blockchain platform, so that the blockchain platform packages the signed transaction flow data into data blocks and adds the data blocks to the blockchain after consensus among the blockchain nodes. The present invention solves the technical problem of the prior art that it is difficult to confirm the rights of ETC transaction flow data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ETC technology, and in particular to a method and device for confirming ETC data rights based on blockchain technology. Background Art

[0002] When an ETC vehicle passes through a toll lane on a highway or parking lot, the host computer reads the vehicle's entrance and path information, calculates the toll amount, and deducts the fee from the OBU on the vehicle through the ETC antenna. If the deduction is successful, the vehicle information and deduction transaction information are packaged into transaction flow data in a certain format and uploaded to the ETC settlement center for subsequent fund settlement procedures.

[0003] With the development of the ETC industry, more and more toll deductions or path information are generated when ETC vehicles pass through highways. These transaction flow data can be used to analyze traffic volume and vehicle behavior habits, which is an important part of traffic big data. At present, the ownership of these transaction flow data has not been clearly defined. Generally, the ETC settlement center plays the role of data aggregator and user, and enjoys the benefits of data exchange exclusively. In principle, these data are generated and collected by toll stations or ETC gantries where ETC antennas are deployed, and the ownership of the data should belong to the corresponding road section owners. However, due to the lack of technical means to confirm the data rights of these data, the rights and interests of road section owners cannot be maintained in subsequent data applications and transactions. In addition, the current ETC transaction flow data only has transaction content, without the identity identification content of ETC antennas or road section owners, which is easy to be copied and forged and cannot be used as a certificate for data confirmation.

[0004] This shows that the existing technology lacks a solution for confirming the ownership of ETC transaction flow data. Summary of the invention

[0005] In order to solve the technical problem that it is difficult to confirm the ownership of ETC transaction flow data in the prior art, the present invention proposes an ETC data ownership confirmation method and device based on blockchain technology.

[0006] In order to achieve the above object, according to one aspect of the present invention, a method for confirming the ownership of ETC data based on blockchain technology is provided, the method comprising:

[0007] Obtain transaction flow data of ETC transactions;

[0008] Encrypting the transaction flow data using an encryption key corresponding to the road section owner;

[0009] Use the identity certificate corresponding to the road section owner to sign the encrypted transaction flow data;

[0010] The signed transaction flow data is uploaded to the blockchain platform, so that the blockchain platform packages the signed transaction flow data into data blocks and adds the data blocks to the blockchain after consensus among the blockchain nodes.

[0011] Optionally, the ETC data rights confirmation method based on blockchain technology also includes:

[0012] Generate an encryption key corresponding to the owner of the road section on the current date;

[0013] The encryption key corresponding to the road section owner is used to encrypt the transaction flow data, specifically including:

[0014] The transaction flow data is encrypted using the encryption key corresponding to the current date of the road section owner.

[0015] Optionally, generating the encryption key corresponding to the road section owner on the current date specifically includes:

[0016] The encryption key corresponding to the owner of the road section on the current date is calculated using an elliptic encryption algorithm according to the current date and the identification code of the owner of the road section.

[0017] Optionally, generating the encryption key corresponding to the road section owner on the current date specifically includes:

[0018] Generate time factor based on current date;

[0019] Performing SM3 digest calculation according to the time factor, the identification code of the key management unit, the identification code of the road section owner, and the public key coordinates of the key management unit to obtain a digest value;

[0020] Using a preset key, the digest value is decrypted and encrypted by SM4 to obtain a first parameter and a second parameter;

[0021] Multiplying the first parameter and the second parameter by the road section public key coordinates to obtain the first coordinate and the second coordinate;

[0022] An encryption key corresponding to the road section owner on the current date is calculated according to the first coordinate and the second coordinate.

[0023] Optionally, the ETC data rights confirmation method based on blockchain technology also includes:

[0024] The data transaction party obtains the signed transaction flow data from the blockchain, and uses the TOKEN file issued by the road section owner to decrypt the signed transaction flow data to obtain the plain text of the transaction flow data, wherein the TOKEN file contains: the encryption keys corresponding to the road section owner on multiple dates.

[0025] Optionally, the blockchain platform packages the signed transaction flow data into data blocks and adds the data blocks to the blockchain after consensus among the blockchain nodes, specifically including:

[0026] The blockchain platform verifies the legitimacy of the transaction based on the digital signature on the signed transaction flow data, broadcasts the verified legal transaction flow data to each blockchain node, and then each blockchain node verifies the transaction flow data based on the smart contract. After the verification is passed, the transaction flow data is packaged into a data block, and the data block is added to the blockchain after successful consensus among the blockchain nodes.

[0027] In order to achieve the above object, according to another aspect of the present invention, a device for confirming the rights of ETC data based on blockchain technology is provided, the device comprising:

[0028] The transaction flow data acquisition module is used to obtain the transaction flow data of ETC transactions;

[0029] An encryption module, used to encrypt the transaction flow data using an encryption key corresponding to the road section owner;

[0030] Signature module, used to sign the encrypted transaction flow data using the identity certificate corresponding to the road section owner;

[0031] The on-chain module is used to upload the signed transaction flow data to the blockchain platform, so that the blockchain platform packages the signed transaction flow data into data blocks and adds the data blocks to the blockchain after consensus among the blockchain nodes.

[0032] Optionally, the ETC data rights confirmation device based on blockchain technology also includes:

[0033] A dynamic password generation module, used to generate an encryption key corresponding to the owner of the road section on the current date;

[0034] The encryption module is specifically used to encrypt the transaction flow data using the encryption key corresponding to the road section owner on the current date.

[0035] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a computer device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the above-mentioned ETC data confirmation method based on blockchain technology when executing the computer program.

[0036] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed in a computer processor, the steps in the above-mentioned ETC data confirmation method based on blockchain technology are implemented.

[0037] The beneficial effects of the present invention are:

[0038] The present invention uses the encryption key corresponding to the road section owner to encrypt the transaction flow data of the ETC transaction, uses the identity certificate corresponding to the road section owner to sign the encrypted transaction flow data, and uploads the signed transaction flow data to the blockchain platform to package the signed transaction flow data into data blocks and add them to the blockchain. The present invention utilizes the characteristics of blockchain data that cannot be tampered with or forged, thereby clarifying that the ownership of the transaction flow data belongs only to the road section owner. The transaction flow data of the present invention is encrypted before being uploaded to the chain, which ensures the confidentiality of the data and prevents third parties from arbitrarily copying the data plaintext. Even if the data plaintext is spread, it is easy to trace back to the source of the spread. When a dispute occurs over the rights and interests of transaction flow data, the owner of the data can be confirmed by verifying the legitimacy of the flow signature, which facilitates data rights protection and reduces the cost of rights protection. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0040] Figure 1 This is the first flow chart of the ETC data rights confirmation method based on blockchain technology in an embodiment of the present invention;

[0041] Figure 2 This is a second flow chart of the ETC data rights confirmation method based on blockchain technology in an embodiment of the present invention;

[0042] Figure 3 is a first flow chart of generating an encryption key according to an embodiment of the present invention;

[0043] Figure 4 is an application scenario diagram of the present invention;

[0044] Figure 5 This is a structural block diagram of an ETC data rights confirmation device based on blockchain technology according to an embodiment of the present invention;

[0045] Figure 6 is a second flow chart of generating an encryption key according to an embodiment of the present invention;

[0046] Figure 7 It is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0048] Those skilled in the art will appreciate that embodiments of the present invention may be provided as 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. Moreover, 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 codes.

[0049] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.

[0050] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0051] In the existing toll station system, when a vehicle passes through a toll lane or ETC gantry, the host computer controls the ETC antenna to deduct fees from the OBU. After the deduction transaction is completed, the host computer will compile transaction flow data with information such as license plate, vehicle model, transaction amount, transaction time, OBU contract serial number, PSAM card number, section number, TAC code, etc., and directly send it to the provincial ETC operation platform for settlement processing. These transaction flow data only contain transaction content, without the identity authentication content of the ETC antenna or section owner, and are easy to be copied and forged, and cannot be used as proof of data rights. The current data collection method has the following disadvantages:

[0052] 1. Transaction flow data can be easily copied. Once the data is copied, the copier also owns the data, and the ownership of the data cannot be confirmed.

[0053] 2. Transaction flow data is not encrypted, and any party can obtain the plain text data, so data confidentiality cannot be guaranteed.

[0054] 3. There is no way to confirm the ownership of transaction flow data, and it is impossible to clarify the right to use and ownership of the data.

[0055] In view of the shortcomings of the above-mentioned prior arts, the present invention utilizes the smart contracts, digital traceability and distributed ledger technologies of blockchain to transform the ETC transaction records of toll stations and ETC gantries into a distributed ledger that is cryptographically guaranteed to be tamper-proof and unforgeable, solidifying it into electronic evidence in the legal sense, proving the data ownership and ownership rights of road section owners and achieving the goal of data confirmation.

[0056] Figure 4 It is an application scenario diagram of the present invention, such as Figure 4 As shown, the application scenario of the embodiment of the present invention includes: a toll station system, a blockchain platform and a data trading party. After completing the ETC transaction, the toll station system uses the encryption key corresponding to the road section owner to encrypt the transaction flow data of the ETC transaction, uses the identity certificate corresponding to the road section owner to sign the encrypted transaction flow data, and uploads the signed transaction flow data to the blockchain platform. The blockchain platform is used to complete data verification and data chain operations. The data trading party is used to obtain transaction flow data from the blockchain platform.

[0057] Figure 1 This is the first schematic diagram of the ETC data rights confirmation method based on blockchain technology in an embodiment of the present invention, which is applied to a toll station system (i.e., the implementation subject is the toll station system). Figure 1 As shown, in one embodiment of the present invention, the ETC data rights confirmation method based on blockchain technology of the present invention includes steps S101 to S104.

[0058] Step S101, obtaining transaction flow data of ETC transactions.

[0059] In the present invention, the toll station system generates transaction flow data of the transaction after completing the ETC transaction.

[0060] Step S102, encrypting the transaction flow data using the encryption key corresponding to the road section owner.

[0061] In one embodiment of the present invention, the transaction flow data includes information about the road section on which the vehicle travels, and the road section owner of the present invention refers to the road section owner corresponding to the road section on which the vehicle travels.

[0062] Step S103, using the identity certificate corresponding to the road section owner to sign the encrypted transaction flow data.

[0063] In the present invention, the encryption key and identity certificate corresponding to each road section owner are different, which can represent the identity of the road section owner. Key encryption ensures the confidentiality of the data, and the certificate signature ensures the ownership of the data, thereby ensuring that the plain text of the data cannot be copied at will. At the same time, the source of the data can be verified by verifying the signature, achieving the goal of data confirmation. In addition, blockchain data has the characteristics of being unalterable and unforgeable, thus making it clear that the ownership of the data belongs only to the road section owner.

[0064] Step S104, uploading the signed transaction flow data to the blockchain platform, so that the blockchain platform packages the signed transaction flow data into data blocks and adds the data blocks to the blockchain after consensus among the blockchain nodes.

[0065] In one embodiment of the present invention, a password module is provided in the upper computer in the toll station system, and the identity certificate and the encryption key are stored in the password module.

[0066] In another embodiment of the present invention, a security chip is provided in the ETC antenna in the toll station system, and the identity certificate and the encryption key are stored in the security chip.

[0067] In one embodiment of the present invention, the toll station system includes a blockchain client, and the toll station system specifically uploads the signed transaction flow data to the blockchain platform through the blockchain client.

[0068] In one embodiment of the present invention, the blockchain platform includes multiple blockchain nodes. The blockchain nodes include: ETC provincial settlement center node, ETC issuer node and section owner node. The present invention lays out optical fiber dedicated lines and configures networks to achieve intercommunication between blockchain nodes to form a blockchain platform.

[0069] In one embodiment of the present invention, the toll station system desensitizes the ETC transaction flow data in real time, encrypts and signs it, submits it to the chain, and the blockchain node verifies the legitimacy of the flow data signature, executes the smart contract, forms ETC flow block data that is cryptographically guaranteed to be tamper-proof, and saves it in each node system.

[0070] In one embodiment of the present invention, the blockchain platform is specifically used to verify the legitimacy of the transaction based on the digital signature on the signed transaction flow data, broadcast the verified legal transaction flow data to each blockchain node, and then each blockchain node verifies the transaction flow data according to the smart contract, and after the verification is passed, the transaction flow data is packaged into a data block, and the data block is added to the blockchain after the consensus of each blockchain node is successful.

[0071] In one embodiment of the present invention, the verification of the transaction flow data according to the smart contract specifically includes:

[0072] Verifying the correctness of the TAC verification code in the transaction flow data through the smart contract;

[0073] Verify through the smart contract whether the transaction flow data is a repeated transaction flow;

[0074] The smart contract is used to verify whether the transaction flow data is blacklisted.

[0075] Figure 2 This is a second schematic diagram of the ETC data rights confirmation method based on blockchain technology according to an embodiment of the present invention, which is applied to a toll station system (i.e., the implementation subject is the toll station system). Figure 2 As shown, in one embodiment of the present invention, the ETC data rights confirmation method based on blockchain technology of the present invention includes step S201 and step S202.

[0076] Step S201, generating an encryption key corresponding to the road section owner on the current date.

[0077] In the embodiment of the present invention, a dynamic password generation module is set in the toll station system, and the dynamic password generation module is used to generate the encryption key corresponding to the road section owner every day. In order to maximize the protection of data security, the present invention adopts a dynamic password encryption mechanism, and encrypts the transaction flow data submitted by the road section owner to the chain every day with different passwords to prevent the situation where all data are deciphered after a part of the data is deciphered.

[0078] Step S202, encrypting the transaction flow data using the encryption key corresponding to the current date of the road section owner.

[0079] In one embodiment of the present invention, the above-mentioned current date specifically refers to the generation date of the transaction flow data.

[0080] In one embodiment of the present invention, the step S201 of generating the encryption key corresponding to the road section owner on the current date specifically includes:

[0081] The encryption key corresponding to the owner of the road section on the current date is calculated using an elliptic encryption algorithm according to the current date and the identification code of the owner of the road section.

[0082] Figure 3 is a first flow chart of generating an encryption key according to an embodiment of the present invention, such as Figure 3 As shown, in one embodiment of the present invention, the above step S201 of generating the encryption key corresponding to the road section owner on the current date specifically includes step S301 and step S305.

[0083] Step S301, generating a time factor according to the current date.

[0084] Step S302, performing SM3 digest calculation according to the time factor, the identification code of the key management unit, the identification code of the road section owner and the public key coordinates of the key management unit to obtain a digest value.

[0085] Step S303: perform SM4 decryption and encryption on the digest value using a preset key to obtain a first parameter and a second parameter.

[0086] Step S304: multiplying the first parameter and the second parameter by the road section public key coordinates to obtain the first coordinate and the second coordinate.

[0087] Step S305, calculating the encryption key corresponding to the road section owner on the current date according to the first coordinate and the second coordinate.

[0088] In another embodiment of the present invention, the current date is in hexadecimal format YYYYMMDD, and the present invention specifically generates a 32-bit time factor t according to the current date. A , the ID code of the owner of the road section B and the public key coordinates of the key management unit (X A With Y A ) performs SM3 summary calculation and obtains the summary value H MAC , the specific formula is as follows:

[0089] H MAC =SM3(t||ID A ||ID B ||X A ||Y A )

[0090] Furthermore, the present invention uses a preset key K block (Blockchain symmetric key) to the digest value H MAC Perform SM4 decryption and encryption respectively to obtain the first parameter r A and the second parameter rB , and then the first parameter r A and the second parameter r B Multiply the first coordinate R by the public key coordinate G of the road segment A (X A ,Y A ), the second coordinate R B (X B ,Y B ), and finally according to the first coordinate R A and the second coordinate R B Calculate the encryption key K of length 32 trade , the encryption key K trade This is the encryption key corresponding to the current date.

[0091] In one embodiment of the present invention, according to the first coordinate R A and the second coordinate R B Calculate the encryption key K trade The specific method can be: first, according to the first coordinate R A and the second coordinate R B The third parameter S is calculated from the horizontal coordinate in x , then according to the first coordinate R A and the second coordinate R B The fourth parameter S is calculated from the vertical coordinate in y , and finally according to the third parameter S x and the fourth parameter S y Calculate the encryption key K trade The specific calculation process can be done using the following formula:

[0092] S x =(X A &(2 w -1))⊕(X B &(2 w +1))

[0093] S y =(Y A &(2 w -1))⊕(Y B &(2 w +1))

[0094] K trade =(S x ∧S y )⊕(S x ∨S y )

[0095] Where: (X A ,Y A ) is point R A The coordinates of (XB ,Y B ) is point R B The coordinates of , w is a preset constant.

[0096] The overall process of the password generation algorithm of the present invention can be as follows: Figure 6 shown.

[0097] In order to ensure the convenience of subsequent data transactions and maximize data security, the present invention adopts a dynamic password encryption mechanism to encrypt the transaction flow data submitted to the chain by road section owners every day with different passwords to prevent the situation where all data are deciphered after a part of the data is deciphered.

[0098] The dynamic password generation module of the present invention uses the transaction date and the public key coordinates of the road section as factors for calculation, so each decryption password can only decrypt the transaction data of the road section on that day, and cannot decrypt the transaction data of other times or other sections. The TOKEN provided by the road section owner to the data trading party mainly consists of the decryption passwords for each day. The decryption password set can be packaged into a file and delivered to the other party in the form of encryption using the public key of the data trading party.

[0099] In a specific embodiment of the present invention, the toll station system includes: an ETC gantry / toll station, an ETC antenna, an antenna controller and a host computer.

[0100] The host computer communicates with the antenna controller to control the charging logic. The antenna controller communicates with the OBU on the vehicle through the ETC antenna, executes the host computer instructions, obtains ETC vehicle information and performs fee deduction transactions. The antenna controller is deployed with ETC transaction firmware and blockchain client software, and a security module is also installed. The ETC transaction firmware mainly implements protocol conversion between host computer instructions and ETC primitives. The present invention submits ETC transaction flow data to the blockchain platform through the API through the blockchain client software.

[0101] In a specific embodiment of the present invention, the blockchain platform is composed of multiple node servers, and the relevant programs of the blockchain are installed. The blockchain platform deploys smart contracts, which can be used to verify the TAC check code in the ETC transaction flow data. After the toll station system submits the transaction flow data to the chain, the node server verifies the legitimacy of the transaction through a digital signature. The verified legal transaction flow data will be broadcast to the entire network through the P2P network. The entire network verifies the legitimacy of the flow through smart contracts, and uses the PBFT algorithm to make the block finally reach a consensus to form an unalterable record.

[0102] In one embodiment of the present invention, the ETC data rights confirmation method based on blockchain technology of the present invention further includes:

[0103] The data transaction party obtains the signed transaction flow data from the blockchain, and uses the TOKEN file issued by the road section owner to decrypt the signed transaction flow data to obtain the plain text of the transaction flow data, wherein the TOKEN file contains: the encryption keys corresponding to the road section owner on multiple dates.

[0104] In one embodiment of the present invention, when other data trading partners need to obtain the plaintext data of ETC transaction flow, they need to apply for a TOKEN from the road section owner, download the encrypted data of the corresponding period from the blockchain, and use the TOKEN to decrypt it. If a data leak occurs in the future, it is also easy to locate the scope of the suspected partner who leaked the data.

[0105] In one embodiment of the present invention, a blockchain client is deployed on the server of the data trading party, and the data trading party obtains data blocks from the blockchain through the blockchain client.

[0106] It can be seen from the above embodiments that the ETC data rights confirmation method based on blockchain technology of the present invention achieves at least the following beneficial effects:

[0107] 1) The present invention submits ETC transaction flow data to the blockchain through the toll station system, solidifying it into electronic evidence in the legal sense, thereby protecting the rights and interests of road section owners;

[0108] 2) The transaction flow data of the present invention is encrypted before being uploaded to the chain, which ensures the confidentiality of the data and prevents third parties from arbitrarily copying the data plaintext. If the data plaintext is spread, it is easy to trace the source of the spread;

[0109] 3) When a dispute arises over data rights, the owner of the data can be confirmed by verifying the legitimacy of the signature on the transaction flow data, which facilitates data rights protection and reduces the cost of rights protection.

[0110] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0111] Based on the same inventive concept, an embodiment of the present invention also provides an ETC data confirmation device based on blockchain technology, which can be used to implement the ETC data confirmation method based on blockchain technology described in the above embodiment, as described in the following embodiment. Since the principle of solving the problem by the ETC data confirmation device based on blockchain technology is similar to that of the ETC data confirmation method based on blockchain technology, the embodiment of the ETC data confirmation device based on blockchain technology can refer to the embodiment of the ETC data confirmation method based on blockchain technology, and the repetitions will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0112] Figure 5 : is a structural block diagram of an ETC data rights confirmation device based on blockchain technology according to an embodiment of the present invention. Figure 5 As shown, in one embodiment of the present invention, the ETC data rights confirmation device based on blockchain technology of the present invention includes:

[0113] The transaction flow data acquisition module 1 is used to acquire the transaction flow data of ETC transactions;

[0114] Encryption module 2, used to encrypt the transaction flow data using the encryption key corresponding to the road section owner;

[0115] Signature module 3, used to sign the encrypted transaction flow data using the identity certificate corresponding to the road section owner;

[0116] The on-chain module 4 is used to upload the signed transaction flow data to the blockchain platform, so that the blockchain platform packages the signed transaction flow data into data blocks and adds the data blocks to the blockchain after consensus among the blockchain nodes.

[0117] In one embodiment of the present invention, the ETC data rights confirmation device based on blockchain technology of the present invention further includes:

[0118] The dynamic password generation module is used to generate an encryption key corresponding to the road section owner on the current date.

[0119] In one embodiment of the present invention, the encryption module 2 is specifically used to encrypt the transaction flow data using the encryption key corresponding to the current date of the road section owner.

[0120] In one embodiment of the present invention, the dynamic password generation module is specifically used to calculate the encryption key corresponding to the road section owner on the current date using an elliptic encryption algorithm according to the current date and the identification code of the road section owner.

[0121] In one embodiment of the present invention, the dynamic password generation module specifically includes:

[0122] The time factor calculation submodule is used to generate the time factor according to the current date;

[0123] A summary value calculation submodule, used to perform SM3 summary calculation according to the time factor, the identification code of the key management unit, the identification code of the road section owner and the public key coordinates of the key management unit to obtain a summary value;

[0124] A parameter calculation submodule, used for performing SM4 decryption and encryption on the digest value using a preset key to obtain a first parameter and a second parameter;

[0125] A coordinate calculation submodule, used for respectively multiplying the first parameter and the second parameter by the road section public key coordinate to obtain the first coordinate and the second coordinate;

[0126] The key calculation submodule is used to calculate the encryption key corresponding to the owner of the road section on the current date according to the first coordinate and the second coordinate.

[0127] In order to achieve the above object, according to another aspect of the present application, a computer device is also provided. Figure 7 As shown, the computer device includes a memory, a processor, a communication interface and a communication bus. A computer program that can be executed on the processor is stored in the memory. When the processor executes the computer program, the steps in the above-mentioned embodiment method are implemented.

[0128] The processor may be a central processing unit (CPU). 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 gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0129] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and units, such as the corresponding program units in the above method embodiments of the present invention. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiments.

[0130] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0131] The one or more units are stored in the memory, and when executed by the processor, the method in the above embodiment is performed.

[0132] The specific details of the above-mentioned computer device can be understood by referring to the corresponding related descriptions and effects in the above-mentioned embodiments, and will not be repeated here.

[0133] In order to achieve the above purpose, according to another aspect of the present application, a computer-readable storage medium is also provided, wherein the computer-readable storage medium stores a computer program, and the computer program implements the steps in the ETC data confirmation method based on blockchain technology when executed in a computer processor. It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, which, when executed, may include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0134] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0135] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for confirming the ownership of ETC data based on blockchain technology, characterized in that: include: Obtain transaction flow data of ETC transactions; Encrypting the transaction flow data using an encryption key corresponding to the road section owner; Use the identity certificate corresponding to the road section owner to sign the encrypted transaction flow data; Uploading the signed transaction flow data to the blockchain platform, so that the blockchain platform packages the signed transaction flow data into data blocks and adds the data blocks to the blockchain after consensus among the blockchain nodes; Generate an encryption key corresponding to the owner of the road section on the current date; The encryption key corresponding to the road section owner is used to encrypt the transaction flow data, specifically including: Encrypting the transaction flow data using the encryption key corresponding to the current date of the road section owner; The generating of the encryption key corresponding to the road section owner on the current date specifically includes: Generate time factor based on current date; Performing SM3 digest calculation according to the time factor, the identification code of the key management unit, the identification code of the road section owner, and the public key coordinates of the key management unit to obtain a digest value; Using a preset key to perform SM4 decryption and encryption on the digest value to obtain a first parameter and a second parameter; Multiplying the first parameter and the second parameter by the road section public key coordinates to obtain the first coordinate and the second coordinate; An encryption key corresponding to the road section owner on the current date is calculated according to the first coordinate and the second coordinate.

2. The ETC data rights confirmation method based on blockchain technology according to claim 1 is characterized in that: Also includes: The data transaction party obtains the signed transaction flow data from the blockchain, and uses the TOKEN file issued by the road section owner to decrypt the signed transaction flow data to obtain the plain text of the transaction flow data, wherein the TOKEN file contains: the encryption keys corresponding to the road section owner on multiple dates.

3. The ETC data rights confirmation method based on blockchain technology according to claim 1 is characterized in that: The blockchain platform packages the signed transaction flow data into data blocks and adds the data blocks to the blockchain after consensus among the blockchain nodes, specifically including: The blockchain platform verifies the legitimacy of the transaction based on the digital signature on the signed transaction flow data, broadcasts the verified legal transaction flow data to each blockchain node, and then each blockchain node verifies the transaction flow data based on the smart contract. After the verification is passed, the transaction flow data is packaged into a data block, and the data block is added to the blockchain after successful consensus among the blockchain nodes.

4. An ETC data rights confirmation device based on blockchain technology, characterized in that: include: The transaction flow data acquisition module is used to obtain the transaction flow data of ETC transactions; An encryption module, used to encrypt the transaction flow data using an encryption key corresponding to the road section owner; Signature module, used to sign the encrypted transaction flow data using the identity certificate corresponding to the road section owner; The chain module is used to upload the signed transaction flow data to the blockchain platform, so that the blockchain platform packages the signed transaction flow data into data blocks and adds the data blocks to the blockchain after consensus among the blockchain nodes; A dynamic password generation module, used to generate an encryption key corresponding to the owner of the road section on the current date; The encryption module is specifically used to encrypt the transaction flow data using the encryption key corresponding to the current date of the road section owner; The dynamic password generation module specifically includes: The time factor calculation submodule is used to generate the time factor according to the current date; A summary value calculation submodule, used to perform SM3 summary calculation according to the time factor, the identification code of the key management unit, the identification code of the road section owner and the public key coordinates of the key management unit to obtain a summary value; A parameter calculation submodule, used for performing SM4 decryption and encryption on the digest value using a preset key to obtain a first parameter and a second parameter; A coordinate calculation submodule, used for respectively multiplying the first parameter and the second parameter by the road section public key coordinate to obtain the first coordinate and the second coordinate; The key calculation submodule is used to calculate the encryption key corresponding to the owner of the road section on the current date according to the first coordinate and the second coordinate.

5. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed in a computer processor, the computer program implements the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method and device for collecting information and submitting information to block chain network

    CN109547219A