ETC instant settlement method and device based on blockchain technology
By adopting blockchain technology in ETC transaction settlement, using smart contracts to verify transaction flow data and perform parallel settlement, the problem of slow settlement speed of existing ETC transactions is solved, and efficient and accurate real-time settlement effect is achieved.
Patent Information
- Application Number
- CN202111292523.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-03
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2041-11-03
AI Technical Summary
The existing ETC transaction settlement methods are slow and lack efficient and fast settlement solutions.
The ETC instant settlement method based on blockchain technology is adopted to obtain transaction flow data through the blockchain platform, encrypt and sign processing, and use smart contracts to verify transaction legality to realize parallel settlement process.
It improves the efficiency of ETC transaction settlement, realizes quasi-real-time settlement, avoids single point of failure, and enhances the high availability and data confidentiality of the system.
Smart Images

Figure CN113988850B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to an ETC instant settlement method and device based on blockchain technology. Background Art
[0002] In the existing ETC settlement system, all transaction flows are submitted to the provincial ETC settlement center in plain text through the toll station system. The clearing and settlement of ETC flows are mainly divided into three main steps: clearing, splitting and settlement: first, the ETC issuer confirms and records the transaction flow forwarded by the ETC provincial center; then the ETC provincial center splits the toll according to the different road operators based on the vehicle's driving path; finally, the ETC provincial center deducts the funds from the road operator's account according to the split results.
[0003] In the clearing stage, the ETC provincial center usually cleans duplicate transactions and transactions that do not comply with operating rules, and then the ETC issuer performs TAC verification on the transaction transactions, and confirms the accounting at the same time, and collects the funds into the provincial center's clearing account. In the splitting stage, the ETC provincial center summarizes the gantry traffic flow, restores the vehicle's driving path, obtains the information of the beneficiaries along the road, and then distributes the exit tolls to the beneficiaries along the road according to the rate table. In the settlement stage, the ETC provincial center generates a deduction instruction based on the split results, and deducts the funds from the provincial center's clearing account to the section operator's settlement account.
[0004] The existing ETC settlement method belongs to the traditional centralized structure. All business processing is completed by the ETC provincial center. Once the ETC provincial center fails, all settlement work will be paralyzed. In addition, the settlement efficiency of the existing ETC settlement method depends on the efficiency of all transaction flows to the ETC provincial center and the processing speed of the ETC provincial center. Since the ETC provincial center only carries out the settlement process during batch processing every day, the efficiency is low. The current settlement speed is generally T+3.
[0005] This shows that the current ETC transaction settlement method is slow, and the existing technology lacks a more efficient and faster ETC transaction settlement solution. Summary of the invention
[0006] In order to solve the technical problem that the ETC transaction settlement method in the prior art is slow, the present invention proposes an ETC instant settlement method and device based on blockchain technology.
[0007] In order to achieve the above object, according to one aspect of the present invention, a blockchain-based ETC instant settlement method is provided, the method comprising:
[0008] Obtain transaction flow data from the blockchain platform, wherein the toll station system first uses the encryption key and identity certificate of the corresponding road section operator to encrypt and sign the transaction flow data after completing the ETC transaction, and then uploads the transaction flow data to the blockchain platform, so that the blockchain platform packages the transaction flow data into data blocks and adds them to the blockchain;
[0009] Generate an encryption key of the road section operator corresponding to each acquired transaction flow data, and decrypt each acquired transaction flow data according to the encryption key to obtain the plain text of the transaction flow data;
[0010] Verify the TAC code of the transaction flow data based on the plain text of the transaction flow data;
[0011] Uploading the transaction flow data with illegal TAC code verification to the blockchain platform, so that the blockchain platform packages the transaction flow data with illegal TAC code verification into data blocks and adds them to the blockchain;
[0012] Settlement is performed with the ETC provincial settlement center for the transaction flow data that is verified to be legal through the TAC code, so that the ETC provincial settlement center obtains the transaction flow data that is verified to be legal through the TAC code from the blockchain, generates a toll splitting result based on the vehicle driving path in the transaction flow data that is verified to be legal through the TAC code, and settles with the operators of each road section based on the toll splitting result.
[0013] Optionally, the generating of the encryption key of the road section operator corresponding to each acquired transaction flow data specifically includes:
[0014] The encryption key of the section operator corresponding to the transaction flow data is calculated based on the section code of the section operator corresponding to the transaction flow data, the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial settlement center, the public key coordinates of the key management unit and the public key of the section management system server.
[0015] Optionally, the generating of the encryption key of the road section operator corresponding to each acquired transaction flow data specifically includes:
[0016] Perform SM3 digest calculation according to the segment code of the segment operator corresponding to the transaction flow data, the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial settlement center, the public key coordinates of the key management unit, and the public key of the segment management system server to obtain a first digest value and a second digest value;
[0017] Performing SM4 decryption and encryption with a preset key on the first digest value and the second digest value to obtain a first parameter and a second parameter;
[0018] The first and second coordinates are obtained by respectively multiplying the first and second parameters by the generator coordinates;
[0019] The encryption key of the road section operator corresponding to the transaction flow data is calculated based on the first coordinate and the second coordinate.
[0020] Optionally, the step of calculating an encryption key of a road section operator corresponding to the transaction flow data according to the first coordinate and the second coordinate specifically includes:
[0021] Calculate a third parameter according to the abscissas of the first coordinate and the second coordinate and a preset constant;
[0022] Calculate a fourth parameter according to the first coordinate and the ordinate in the second coordinate and the constant;
[0023] An encryption key of a preset length is calculated according to the third parameter and the fourth parameter.
[0024] Optionally, when the blockchain platform receives the transaction flow data uploaded by the toll station system, it first verifies the legitimacy of the transaction based on the digital signature on the transaction flow data, broadcasts 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. 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 all blockchain nodes.
[0025] In order to achieve the above object, according to another aspect of the present invention, there is provided an ETC instant settlement device based on blockchain technology, the device comprising:
[0026] A transaction flow data acquisition module is used to obtain transaction flow data from the blockchain platform. After completing the ETC transaction, the toll station system first uses the encryption key and identity certificate of the corresponding road section operator to encrypt and sign the transaction flow data, and then uploads the transaction flow data to the blockchain platform, so that the blockchain platform packages the transaction flow data into data blocks and adds them to the blockchain;
[0027] An encryption key generation module is used to generate an encryption key of the road section operator corresponding to each acquired transaction flow data, and decrypt each acquired transaction flow data according to the encryption key to obtain the plain text of the transaction flow data;
[0028] A TAC code verification module is used to verify the TAC code of the transaction flow data according to the plain text of the transaction flow data;
[0029] An illegal transaction flow uploading module, used to upload the transaction flow data with illegal TAC code verification to the blockchain platform, so that the blockchain platform packages the transaction flow data with illegal TAC code verification into data blocks and adds them to the blockchain;
[0030] The legal transaction flow settlement module is used to settle with the ETC provincial settlement center based on the legal transaction flow data verified by the TAC code, so that the ETC provincial settlement center obtains the legal transaction flow data verified by the TAC code from the blockchain, generates the toll splitting result according to the vehicle driving path in the legal transaction flow data verified by the TAC code, and settles with the operators of each road section based on the toll splitting result.
[0031] Optionally, the encryption key generation module specifically includes:
[0032] A digest calculation unit, used for performing SM3 digest calculation according to the segment code of the segment operator corresponding to the transaction flow data, the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial settlement center, the public key coordinates of the key management unit and the public key of the segment management system server to obtain a first digest value and a second digest value;
[0033] a parameter calculation unit, configured to perform SM4 decryption and encryption on the first digest value and the second digest value using a preset key to obtain a first parameter and a second parameter;
[0034] A coordinate calculation unit, used for respectively performing dot multiplication of the first parameter and the second parameter with the generator coordinate to obtain the first coordinate and the second coordinate;
[0035] An encryption key calculation unit is used to calculate the encryption key of the road section operator corresponding to the transaction flow data based on the first coordinate and the second coordinate.
[0036] 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 instant settlement method based on blockchain technology when executing the computer program.
[0037] 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 instant settlement method based on blockchain technology are implemented.
[0038] The beneficial effects of the present invention are:
[0039] The present invention utilizes blockchain technology to construct a blockchain platform. After completing the ETC transaction, the toll station system uploads the transaction flow data to the blockchain platform, and then the transaction flow data can be obtained on the blockchain and settled. The present invention solves the technical problem of slow settlement speed of the existing ETC settlement method and improves the settlement efficiency of ETC settlement. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] 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:
[0041] Figure 1 This is a flow chart of an ETC instant settlement method based on blockchain technology according to an embodiment of the present invention;
[0042] Figure 2 is a first flow chart of calculating an encryption key according to an embodiment of the present invention;
[0043] Figure 3 is a second flow chart of calculating an encryption key according to an embodiment of the present invention;
[0044] Figure 4 is an application scenario diagram of the present invention;
[0045] Figure 5 is a key calculation flow chart of the present invention;
[0046] Figure 6 This is a structural block diagram of an ETC instant settlement device based on blockchain technology according to an embodiment of the present invention;
[0047] Figure 7 is a structural block diagram of an encryption key generation module according to an embodiment of the present invention;
[0048] Figure 8 It is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0049] 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.
[0050] Those skilled in the art will appreciate 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. 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 code.
[0051] 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.
[0052] 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.
[0053] Figure 4 It is an application scenario diagram of the present invention, such as Figure 4 As shown, the application scenario of the present invention includes: blockchain platform, ETC issuer, ETC provincial settlement center, toll station system and road section operator. The toll station system is used to upload the transaction flow data to the blockchain platform after completing the ETC transaction, so that the blockchain platform packages the transaction flow data into data blocks and adds them to the blockchain. The ETC issuer, ETC provincial settlement center and road section operator perform ECT transaction settlement based on the transaction flow data on the blockchain.
[0054] In one embodiment of the present invention, the client of the blockchain platform is installed on the ETC issuer, the ETC provincial settlement center, the toll station system and the road section operator, and the ETC issuer, the ETC provincial settlement center, the toll station system and the road section operator interact with the blockchain platform through the client of the blockchain platform.
[0055] In one embodiment of the present invention, the blockchain platform includes multiple blockchain nodes, and each blockchain node is interconnected by laying optical fiber dedicated lines and configuring networks. In a specific embodiment of the present invention, a blockchain node system is deployed in the ETC provincial settlement center, the ETC issuer and the road section operator, that is, the ETC provincial settlement center, the ETC issuer and the road section operator are all blockchain nodes.
[0056] It should be noted that the ETC instant settlement method based on blockchain technology of the present invention is applied to the ETC issuer, that is, the implementing entity of the method of the present invention is the ETC issuer.
[0057] Figure 1 : is a flow chart of the ETC instant settlement method based on blockchain technology according to an embodiment of the present invention. Figure 1 As shown, in one embodiment of the present invention, the ETC instant settlement method based on blockchain technology of the present invention specifically includes steps S101 to S105.
[0058] Step S101, obtaining transaction flow data from the blockchain platform, wherein, after completing the ETC transaction, the toll station system first uses the encryption key and identity certificate of the corresponding road section operator to encrypt and sign the transaction flow data, and then uploads the transaction flow data to the blockchain platform, so that the blockchain platform packages the transaction flow data into data blocks and adds them to the blockchain.
[0059] In one embodiment of the present invention, the transaction flow data specifically includes: ETC gantry flow data and exit toll flow data. In one embodiment of the present invention, the toll station system specifically first uses the encryption key of the corresponding road section operator to encrypt the transaction flow data, and then signs the encrypted transaction flow data using the identity certificate of the road section operator.
[0060] In one embodiment of the present invention, when the blockchain platform receives the processed transaction flow data uploaded by the toll station system, it first verifies the legitimacy of the transaction based on the digital signature on the transaction flow data, broadcasts 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. 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.
[0061] In one embodiment of the present invention, the smart contract is used to verify whether the transaction flow data is a duplicate transaction flow, and to verify whether the transaction flow data is a blacklist flow. The transaction flow data on the blockchain are all transaction flows verified by the smart contract, which can replace the traditional ETC provincial settlement center batch processing for verification, greatly improving the settlement processing efficiency.
[0062] Step S102, generating an encryption key of the road section operator corresponding to each acquired transaction flow data, and decrypting each acquired transaction flow data according to the encryption key to obtain the plain text of the transaction flow data.
[0063] Step S103, verifying the TAC code of the transaction flow data according to the plain text of the transaction flow data.
[0064] Step S104, uploading the transaction flow data that is not verified to be legal by the TAC code to the blockchain platform, so that the blockchain platform packages the transaction flow data that is not verified to be legal by the TAC code into data blocks and adds them to the blockchain.
[0065] Step S105, settle with the ETC provincial settlement center for the transaction flow data that is verified to be legal through the TAC code, so that the ETC provincial settlement center obtains the transaction flow data that is verified to be legal through the TAC code from the blockchain, generates a toll splitting result according to the vehicle driving path in the transaction flow data that is verified to be legal through the TAC code, and settles with the operators of each road section according to the toll splitting result.
[0066] In one embodiment of the present invention, the ETC issuer settles with the ETC provincial settlement center based on the transaction flow data that is legally verified by the TAC code, specifically including: the ETC issuer determines the settlement amount based on all the transaction flow data that is legally verified by the TAC code, and then collects the funds corresponding to the settlement amount into the clearing account of the ETC provincial settlement center.
[0067] In one embodiment of the present invention, the ETC provincial settlement center first obtains all transaction flow data from the blockchain, removes the transaction flow data that is not legally verified by the TAC code from all the transaction flow data, and obtains the transaction flow data that is legally verified by the TAC code. The ETC provincial settlement center restores the vehicle driving path based on the ETC gantry flow data in the transaction flow data that is legally verified by the TAC code, splits the toll to the operators of each section along the way, generates a toll splitting result, and then deducts the funds from the settlement account of each section operator according to the toll splitting result.
[0068] In one embodiment of the present invention, the road section operator is used to obtain all transaction flow data corresponding to the road section operator from the blockchain, and generate a first account receivable M1 according to all transaction flow data corresponding to the road section operator.
[0069] In one embodiment of the present invention, the road section operator is also used to obtain from the blockchain all transaction flow data corresponding to the road section operator that are not legally verified by the TAC code, and deduct the portion corresponding to all transaction flow data corresponding to the road section operator that are not legally verified by the TAC code from the first receivables account to obtain a second receivables account M2.
[0070] In one embodiment of the present invention, the ETC provincial settlement center is further used to upload the toll splitting result to the blockchain platform, so that the blockchain platform packages the toll splitting result into data blocks and adds them to the blockchain. Each of the road section operators is also used to obtain the toll splitting result from the blockchain and generate a collected bill M3 based on the toll splitting result.
[0071] The above-mentioned blockchain-based ETC settlement process of the present invention converts the traditional serial settlement process into a parallel settlement process: as long as the transaction flow data is successfully uploaded to the chain, the ETC issuer can deduct the toll from the user's bank account to the clearing account of the ETC provincial settlement center. The ETC provincial settlement center collects all the ETC gantry data in the settled transaction flow data and then splits and deducts the funds to the settlement account of the section operator. Therefore, in the present invention, the only factor affecting the settlement efficiency is the speed of the flow on the chain. For a high-concurrency blockchain platform, the flow can be completed within a few seconds. On the chain and consensus. When the vehicle leaves the highway, it only takes tens of seconds to complete all settlement processes, thereby greatly improving the settlement efficiency and achieving the goal of quasi-real-time settlement. At the same time, in the present invention, the section operator can monitor the settlement process in real time through the blockchain platform, obtain settlement-related data and results, analyze the success rate of ETC transactions, and obtain reconciliation data, thereby improving the level of operation management.
[0072] The blockchain platform in the present invention saves the transaction flow data of all road sections (ETC gantry traffic flow and exit toll flow data). Through these flow data, the operating income of the road section operating company can be evaluated and the driving trajectory of the vehicle can be restored. The commercial secrets of the road section operating company and the privacy of the car owner cannot be disclosed to other institutions except the ETC provincial settlement center and the ETC issuer (who has signed a settlement agreement). Therefore, based on the blockchain, the present invention proposes a transaction flow encryption algorithm to ensure that a road section operator can only decrypt and restore its own transaction flow data, and cannot decrypt the transaction flow data of other road section operators, while the ETC provincial settlement center and the ETC issuer can decrypt all transaction flow data.
[0073] Specifically, the present invention stores a fixed encryption key in the identity certificate security module of the toll station system. The security module can only perform encryption and decryption calculations and does not have the ability to disperse key calculations. The security modules in the toll station systems belonging to the same road section operator store the same key. When the toll station system uploads transaction flow data (ETC gantry passage flow and exit toll flow) to the chain, the key is used to encrypt the transaction flow data.
[0074] In one embodiment of the present invention, a password module is provided in the host computer of each toll station system, and the password module is used to store the encryption key and identity certificate of the road section operator corresponding to the toll station system. In another embodiment of the present invention, a security chip is provided in the ETC antenna of each toll station system, and the security chip is used to store the encryption key and identity certificate of the road section operator corresponding to the toll station system.
[0075] In one embodiment of the present invention, in order to ensure the calculation speed, the present invention only performs encryption calculation on sensitive fields such as the fee amount, license plate number, and entrance and exit information in the transaction flow data.
[0076] After the ETC provincial settlement center and the ETC issuer obtain the ciphertext of the transaction flow data from the blockchain platform, they derive the key in the toll station security module based on the above-mentioned cryptographic algorithm, decrypt the transaction flow data to obtain the plaintext data, and then process the business. After the processing is completed, the data is encrypted with the same key and submitted to the chain. After the section operator obtains the ciphertext of the on-chain processing result through the node system, it uses the security module to decrypt it to obtain the plaintext result data, and then updates the bill data.
[0077] In the data encryption mode of the present invention, each road section operator has an independent key, which ensures that the road section operator can only decrypt its own transaction flow data but cannot decrypt the transaction flow data of other road section operators. However, the ETC provincial settlement center and the ETC issuer can decrypt the transaction flow data of all road section operators, thereby ensuring the confidentiality of the data while also ensuring the smooth development of the ETC settlement business.
[0078] In one embodiment of the present invention, the encryption key of the road section operator corresponding to each acquired transaction flow data generated in step S102 specifically includes:
[0079] The encryption key of the section operator corresponding to the transaction flow data is calculated based on the section code of the section operator corresponding to the transaction flow data, the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial settlement center, the public key coordinates of the key management unit and the public key of the section management system server.
[0080] Figure 2 is a first flow chart of calculating the encryption key according to an embodiment of the present invention, such as Figure 2 As shown, in one embodiment of the present invention, the encryption key of the road section operator corresponding to each transaction flow data generated in the above step S102 specifically includes steps S201 to S204.
[0081] Step S201, performs SM3 digest calculation based on the segment code of the segment operator corresponding to the transaction flow data, the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial settlement center, the public key coordinates of the key management unit and the public key of the segment management system server to obtain the first digest value and the second digest value.
[0082] In a specific embodiment of the present invention, when calculating the encryption key, the present invention can use the road segment code ID of the road segment operator Road , the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial center, the public key coordinates of the key management unit and the public key of the road section management system server, perform SM3 digest calculation to obtain the first digest value H A and the second digest value H B The specific formula is as follows:
[0083]
[0084]
[0085] Where: ID A It is the identification code of the ETC provincial settlement center. B It is the identification code of the ETC issuer, ENTLx is ID X The length, X G , Y G is the coordinate of the public key of the key management unit G, X A , Y A are the X and Y coordinates of the public key of the ETC provincial settlement center server, X B , Y B are the X and Y coordinates of the public key of the road segment management system server, and a and b are the predefined elliptic curve Fq elements.
[0086] Step S202: Perform SM4 decryption and encryption on the first digest value and the second digest value using a preset key to obtain a first parameter and a second parameter.
[0087] In the present invention, this step is respectively for H A and H B With the preset key K Dec and K Enc After performing SM4 decryption and encryption on the key, the first parameter t is obtained A , the second parameter t B , the specific formula is as follows:
[0088] t A =SM4_Dec(H A ,K Dec )
[0089] t B =SM4_Dec(H B ,K Enc )
[0090] Step S203, respectively multiplying the first parameter and the second parameter by the generator coordinate to obtain the first coordinate and the second coordinate.
[0091] In the present invention, this step converts the first parameter t A , the second parameter t B Multiply each of them by the generator coordinate M to get the first coordinate T A and the second coordinate T B The specific formula is as follows:
[0092] T A =[t A ]·M=(x 1 ,y 1 )
[0093] T B =[t B ]·M=(x 2 ,y 2 )
[0094] Step S204, calculating the encryption key of the road section operator corresponding to the transaction flow data according to the first coordinate and the second coordinate.
[0095] In the present invention, this step is based on T A and T B Calculate the encryption key KEY of length KLen Road .
[0096] Figure 3 is a second flow chart of calculating the 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 S204 calculates the encryption key of the road section operator corresponding to the transaction flow data based on the first coordinate and the second coordinate, specifically including steps S301 to S303.
[0097] Step S301: Calculate a third parameter according to the abscissas of the first coordinates and the second coordinates and a preset constant.
[0098] In one embodiment of the present invention, the third parameter X is calculated U The following formula can be used:
[0099] X U =(x 1 &(2 w -1))∧(x 2 &(2w +1))
[0100] Among them, w is a preset constant, x 1 and x 2 are the horizontal coordinates in the first and second coordinates respectively.
[0101] Step S302: Calculate a fourth parameter according to the first coordinate, the vertical coordinate in the second coordinate and the constant.
[0102] In one embodiment of the present invention, the fourth parameter Y is calculated U The following formula can be used:
[0103] Y U =(y 1 &(2 w -1))∨(y 2 &(2 w +1))
[0104] Among them, w is a preset constant, y 1 and 2 are the ordinates in the first and second coordinates respectively.
[0105] Step S303: Calculate an encryption key of a preset length according to the third parameter and the fourth parameter.
[0106] In one embodiment of the present invention, this step can specifically use the following formula to calculate the encryption key KEY Road ,
[0107] KEY Road =KDF(X U ||Y U ,KLen)
[0108] In one embodiment of the present invention, the specific process of calculating the encryption key of the present invention can be as follows: Figure 5 shown.
[0109] It can be seen from the above embodiments that the present invention uses blockchain technology to achieve quasi-real-time settlement of ETC transactions, verifies transaction flow data through blockchain smart contracts, and realizes an efficient settlement method in which data is legal once it is on the chain and settlement is achieved once it is on the chain. The present invention achieves at least the following beneficial effects:
[0110] 1. The present invention replaces the traditional centralized settlement system with a distributed system of blockchain, avoiding the impact of single point failures and ensuring the high availability of the system.
[0111] 2. The present invention automatically realizes functions such as duplicate check of transaction flow and whether there is a blacklist card through blockchain smart contracts, replacing the traditional provincial center batch processing process and improving the processing speed.
[0112] 3. The present invention changes the traditional serial settlement process into a parallel settlement process, improves the speed of verifying the legitimacy of transaction data, and achieves the function of quasi-real-time settlement.
[0113] 4. Through the present invention, the road section operator can track the flow settlement process in real time and understand the flow processing results.
[0114] 5. The road section operator can generate reconciliation data through the present invention to facilitate financial management.
[0115] 6. The present invention implements a strict encryption protection system for data. Operators of different road sections cannot decrypt each other's data, preventing the leakage of commercial secrets of operators and personal privacy of car owners.
[0116] 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.
[0117] Based on the same inventive concept, an embodiment of the present invention also provides an ETC instant settlement device based on blockchain technology, which can be used to implement the ETC instant settlement 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 instant settlement device based on blockchain technology is similar to that of the ETC instant settlement method based on blockchain technology, the embodiment of the ETC instant settlement device based on blockchain technology can refer to the embodiment of the ETC instant settlement 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.
[0118] Figure 6 : is a structural block diagram of an ETC instant settlement device based on blockchain technology according to an embodiment of the present invention. Figure 6 As shown, in one embodiment of the present invention, the ETC instant settlement device based on blockchain technology of the present invention includes:
[0119] The transaction flow data acquisition module 1 is used to obtain the transaction flow data from the blockchain platform. After completing the ETC transaction, the toll station system first uses the encryption key and identity certificate of the corresponding road section operator to encrypt and sign the transaction flow data, and then uploads the transaction flow data to the blockchain platform, so that the blockchain platform packages the transaction flow data into data blocks and adds them to the blockchain;
[0120] The encryption key generation module 2 is used to generate the encryption key of the road section operator corresponding to each acquired transaction flow data, and decrypt each acquired transaction flow data according to the encryption key to obtain the plain text of the transaction flow data;
[0121] A TAC code verification module 3, used to verify the TAC code of the transaction flow data according to the plain text of the transaction flow data;
[0122] The illegal transaction flow uploading module 4 is used to upload the transaction flow data that is not legally verified by the TAC code to the blockchain platform, so that the blockchain platform packages the transaction flow data that is not legally verified by the TAC code into a data block and adds it to the blockchain;
[0123] The legal transaction flow settlement module 5 is used to settle with the ETC provincial settlement center for the legal transaction flow data verified by the TAC code, so that the ETC provincial settlement center obtains the legal transaction flow data verified by the TAC code from the blockchain, generates the toll splitting result according to the vehicle driving path in the legal transaction flow data verified by the TAC code, and settles with the operators of each road section according to the toll splitting result.
[0124] In one embodiment of the present invention, the encryption key generation module 2 is specifically used to calculate the encryption key of the section operator corresponding to the transaction flow data based on the section code of the section operator corresponding to the transaction flow data, the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial settlement center, the public key coordinates of the key management unit and the public key of the section management system server.
[0125] Figure 7 : is a structural block diagram of an encryption key generation module according to an embodiment of the present invention. Figure 7 As shown, in one embodiment of the present invention, the encryption key generation module 2 specifically includes:
[0126] The digest calculation unit 201 is used to perform SM3 digest calculation according to the segment code of the segment operator corresponding to the transaction flow data, the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial settlement center, the public key coordinates of the key management unit and the public key of the segment management system server to obtain a first digest value and a second digest value;
[0127] A parameter calculation unit 202, configured to perform SM4 decryption and encryption on the first digest value and the second digest value using a preset key to obtain a first parameter and a second parameter;
[0128] A coordinate calculation unit 203, configured to obtain first coordinates and second coordinates by performing dot multiplication of the first parameter and the second parameter with the generator coordinates respectively;
[0129] The encryption key calculation unit 204 is used to calculate the encryption key of the road section operator corresponding to the transaction flow data according to the first coordinate and the second coordinate.
[0130] In one embodiment of the present invention, the encryption key calculation unit 204 specifically includes:
[0131] A first calculation subunit, configured to calculate a third parameter according to the abscissas of the first coordinate and the second coordinate and a preset constant;
[0132] A second calculation subunit, configured to calculate a fourth parameter according to the first coordinate and the ordinate in the second coordinate and the constant;
[0133] The third calculation subunit is used to calculate an encryption key of a preset length according to the third parameter and the fourth parameter.
[0134] In order to achieve the above object, according to another aspect of the present application, a computer device is also provided. Figure 8 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.
[0135] 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.
[0136] 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.
[0137] 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.
[0138] The one or more units are stored in the memory, and when executed by the processor, the method in the above embodiment is performed.
[0139] 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.
[0140] 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 instant settlement method based on blockchain technology when executed in a computer processor. It can be understood by those skilled in the art that the implementation of all or part of the process 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, and the program can include the process of the embodiment of each method as described above when executed. 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.
[0141] 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.
[0142] 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. An ETC instant settlement method based on blockchain technology, characterized in that: include: Obtain transaction flow data from the blockchain platform, wherein the toll station system first uses the encryption key and identity certificate of the corresponding road section operator to encrypt and sign the transaction flow data after completing the ETC transaction, and then uploads the transaction flow data to the blockchain platform, so that the blockchain platform packages the transaction flow data into data blocks and adds them to the blockchain; Generate an encryption key of the road section operator corresponding to each acquired transaction flow data, and decrypt each acquired transaction flow data according to the encryption key to obtain the plain text of the transaction flow data; Verify the TAC code of the transaction flow data based on the plain text of the transaction flow data; Uploading the transaction flow data with illegal TAC code verification to the blockchain platform, so that the blockchain platform packages the transaction flow data with illegal TAC code verification into data blocks and adds them to the blockchain; Settlement is performed with the ETC provincial settlement center for the transaction flow data that is verified to be legal through the TAC code, so that the ETC provincial settlement center obtains the transaction flow data that is verified to be legal through the TAC code from the blockchain, generates a toll splitting result based on the vehicle driving path in the transaction flow data that is verified to be legal through the TAC code, and settles with the operators of each road section based on the toll splitting result.
2. The ETC instant settlement method based on blockchain technology according to claim 1 is characterized in that: The generating of the encryption key of the road section operator corresponding to each acquired transaction flow data specifically includes: The encryption key of the section operator corresponding to the transaction flow data is calculated based on the section code of the section operator corresponding to the transaction flow data, the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial settlement center, the public key coordinates of the key management unit and the public key of the section management system server.
3. The ETC instant settlement method based on blockchain technology according to claim 1 is characterized in that: The generating of the encryption key of the road section operator corresponding to each acquired transaction flow data specifically includes: Perform SM3 digest calculation according to the segment code of the segment operator corresponding to the transaction flow data, the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial settlement center, the public key coordinates of the key management unit, and the public key of the segment management system server to obtain a first digest value and a second digest value; Performing SM4 decryption and encryption with a preset key on the first digest value and the second digest value to obtain a first parameter and a second parameter; The first and second coordinates are obtained by respectively multiplying the first and second parameters by the generator coordinates; The encryption key of the road section operator corresponding to the transaction flow data is calculated based on the first coordinate and the second coordinate.
4. The ETC instant settlement method based on blockchain technology according to claim 3 is characterized in that: The step of calculating the encryption key of the road section operator corresponding to the transaction flow data according to the first coordinate and the second coordinate specifically includes: Calculate a third parameter according to the abscissas of the first coordinate and the second coordinate and a preset constant; Calculate a fourth parameter according to the first coordinate and the ordinate in the second coordinate and the constant; An encryption key of a preset length is calculated according to the third parameter and the fourth parameter.
5. The ETC instant settlement method based on blockchain technology according to claim 1 is characterized in that: When the blockchain platform receives the transaction flow data uploaded by the toll station system, it first verifies the legitimacy of the transaction based on the digital signature on the transaction flow data, broadcasts 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. 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 all blockchain nodes.
6. The ETC instant settlement method based on blockchain technology according to claim 1 is characterized in that: The ETC provincial settlement center uploads the toll splitting results to the blockchain platform, so that the blockchain platform packages the toll splitting results into data blocks and adds them to the blockchain; the road section operator obtains the toll splitting results from the blockchain and generates a collected bill based on the toll splitting results.
7. An ETC instant settlement device based on blockchain technology, characterized in that: include: A transaction flow data acquisition module is used to obtain transaction flow data from the blockchain platform. After completing the ETC transaction, the toll station system first uses the encryption key and identity certificate of the corresponding road section operator to encrypt and sign the transaction flow data, and then uploads the transaction flow data to the blockchain platform, so that the blockchain platform packages the transaction flow data into data blocks and adds them to the blockchain; An encryption key generation module is used to generate an encryption key of the road section operator corresponding to each acquired transaction flow data, and decrypt each acquired transaction flow data according to the encryption key to obtain the plain text of the transaction flow data; A TAC code verification module is used to verify the TAC code of the transaction flow data according to the plain text of the transaction flow data; An illegal transaction flow uploading module, used to upload the transaction flow data with illegal TAC code verification to the blockchain platform, so that the blockchain platform packages the transaction flow data with illegal TAC code verification into data blocks and adds them to the blockchain; The legal transaction flow settlement module is used to settle with the ETC provincial settlement center based on the legal transaction flow data verified by the TAC code, so that the ETC provincial settlement center obtains the legal transaction flow data verified by the TAC code from the blockchain, generates the toll splitting result according to the vehicle driving path in the legal transaction flow data verified by the TAC code, and settles with the operators of each road section based on the toll splitting result.
8. The ETC instant settlement device based on blockchain technology according to claim 7 is characterized in that: The encryption key generation module specifically includes: A digest calculation unit, used for performing SM3 digest calculation according to the segment code of the segment operator corresponding to the transaction flow data, the identification code of the ETC provincial settlement center, the identification code of the ETC issuer, the public key coordinates of the ETC provincial settlement center, the public key coordinates of the key management unit and the public key of the segment management system server to obtain a first digest value and a second digest value; a parameter calculation unit, configured to perform SM4 decryption and encryption on the first digest value and the second digest value using a preset key to obtain a first parameter and a second parameter; A coordinate calculation unit, used for respectively performing dot multiplication of the first parameter and the second parameter with the generator coordinate to obtain the first coordinate and the second coordinate; An encryption key calculation unit is used to calculate the encryption key of the road section operator corresponding to the transaction flow data based on the first coordinate and the second coordinate.
9. 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 6 is implemented.
10. 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 6.
Citation Information
Patent Citations
Non-stop electronic toll collection method and device, and electronic device
CN108876947A
High-speed charging method and system based on block chain
CN110992499A