Transaction data processing method and device
By obtaining device location information and verifying user identification codes in shared item rental transactions, and generating transaction hash codes for signature verification, the problem of being unable to determine the actual user in shared item rentals is solved, and the security of shared items is achieved.
Patent Information
- Application Number
- CN202011561743.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-25
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-12-25
AI Technical Summary
In a shared item rental transaction, the server cannot determine the user who actually uses the shared items, resulting in the inability to ensure the security of the shared items.
By obtaining device location information for verification during the user's payment process, calling the security verification component to verify the user identification code, and generating a transaction hash code for signature verification, the security of the transaction operation is ensured.
Sign a contract during the user payment process to determine the user who actually uses the shared items, thereby ensuring the security of the shared items and preventing unauthorized use.
Smart Images

Figure CN112581133B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a transaction data processing method and device. Background Art
[0002] With the development of Internet application technology, more and more users are conducting various transaction activities through the Internet. Among them, various shared item rental transactions based on Internet application technology are particularly active, such as shared bicycles, shared cars, and shared power banks, etc., which have brought great convenience to people's lives.
[0003] In the existing shared item rental transaction process, the user is usually required to pay a deposit. After the user pays the deposit, the user can unlock and use the shared item through the corresponding unlocking method of the shared item each time the user uses the shared item subsequently. However, using the existing transaction method, each time the user uses the shared item, the server often cannot determine the user who actually uses the shared item, and thus cannot ensure the safety of the shared item. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a transaction data processing method, which can sign a contract with the user during the user's payment process, so as to determine the user who actually uses the shared item, and then ensure the safety of the shared item.
[0005] The present invention also provides a transaction data processing device to ensure the implementation and application of the above method in practice.
[0006] A transaction data processing method, comprising:
[0007] When receiving a transaction instruction sent by a user, obtaining the device location information corresponding to the transaction instruction and verifying the device location information;
[0008] If the device location information is verified, the transfer information contained in the transaction instruction is obtained, and the transfer information is sent to a preset server;
[0009] Receiving target transaction information fed back by the server based on the transfer information;
[0010] Calling a preset first security verification component to obtain a user identification code of the user, and verifying the user identification code through a preset second security verification component;
[0011] If the user identification code is verified, a transaction hash code is generated based on the target transaction information, and the transaction hash code is signed by applying the second security verification component to obtain signature information;
[0012] A signature verification request is generated based on the signature information, and the signature verification request is sent to the server to trigger the server to verify the signature information in the verification request. If the signature information is verified successfully, the transaction operation corresponding to the transaction instruction is completed.
[0013] In the above method, optionally, the verifying the device location information includes:
[0014] Acquire the device location information corresponding to the transaction instruction, and send the device location information to the location verification system to obtain the location verification result fed back by the location verification system;
[0015] If the position verification result indicates that the device position information is consistent with the actual device position information, then obtaining the target position information of the transaction object corresponding to the transaction instruction;
[0016] Determine a location distance between the device location information and the target location information;
[0017] Determining whether the position distance is greater than a preset distance threshold;
[0018] If the location distance is greater than the distance threshold, it is determined that the device location information has not been verified;
[0019] If the location distance is not greater than the distance threshold, it is determined that the device location information has been verified.
[0020] In the above method, optionally, generating a signature verification request based on the signature information includes:
[0021] Obtaining a public key ciphertext corresponding to the signature information and component information of the first security verification component;
[0022] A verification request is generated based on the signature information, the public key ciphertext, and the component information.
[0023] In the above method, optionally, the process of setting the first security verification component includes:
[0024] Calling the initial security verification component currently to be authorized to obtain device information corresponding to the initial security verification component;
[0025] In response to the device information not satisfying a preset risk interception condition, the initial security verification component is granted transaction authority to obtain a first security verification component.
[0026] The above method, optionally, after sending the signature verification request to the server, further includes:
[0027] Receive a transaction success message fed back by the server.
[0028] A transaction data processing device, comprising:
[0029] A first receiving unit is used to, when receiving a transaction instruction sent by a user, obtain device location information corresponding to the transaction instruction and verify the device location information;
[0030] A first acquisition unit, configured to acquire the transfer information contained in the transaction instruction if the device location information is verified, and send the transfer information to a preset server;
[0031] A second receiving unit, configured to receive target transaction information fed back by the server based on the transfer information;
[0032] A second acquisition unit, configured to call a preset first security verification component to acquire a user identification code of the user, and verify the user identification code through a preset second security verification component;
[0033] a signature unit, configured to generate a transaction hash code based on the target transaction information if the user identification code is verified, and to sign the transaction hash code using the second security verification component to obtain signature information;
[0034] The verification unit is used to generate a signature verification request based on the signature information, and send the signature verification request to the server to trigger the server to verify the signature information in the verification request. If the signature information is verified, the transaction operation corresponding to the transaction instruction is completed.
[0035] In the above device, optionally, the first receiving unit for verifying the location information includes:
[0036] A first acquisition subunit is used to acquire device location information corresponding to the transaction instruction, and send the device location information to a location verification system to obtain a location verification result fed back by the location verification system;
[0037] A second acquisition subunit is configured to acquire target location information of the transaction object corresponding to the transaction instruction if the location verification result indicates that the device location information is consistent with the actual device location information;
[0038] A first determining subunit, used to determine a location distance between the device location information and the target location information;
[0039] A judging subunit, used to judge whether the position distance is greater than a preset distance threshold;
[0040] A second determining subunit is configured to determine that the device location information has not been verified if the location distance is greater than the distance threshold;
[0041] The third determining subunit is configured to determine that the verification of the device location information is successful if the location distance is not greater than the distance threshold.
[0042] The above-mentioned device, optionally, the verification unit that generates the signature verification request based on the signature information includes:
[0043] A third acquisition subunit is used to obtain the public key ciphertext corresponding to the signature information and the component information of the first security verification component;
[0044] A generating subunit is used to generate a verification request based on the signature information, the public key ciphertext and the component information.
[0045] The above-mentioned device may optionally further include a transaction component setting unit, which is used to call the initial security verification component currently to be authorized to obtain device information corresponding to the initial security verification component; in response to the device information not satisfying a pre-set risk interception condition, granting transaction authority to the initial security verification component to obtain a first security verification component.
[0046] The above device may optionally further include a receiving unit;
[0047] The receiving unit is used to receive a transaction success message fed back by the server.
[0048] Compared with the prior art, the present invention has the following advantages:
[0049] The present invention provides a transaction data processing method and device, the method comprising: when receiving a transaction instruction sent by a user, obtaining the device location information corresponding to the transaction instruction, and verifying the device location information; if the device location information is verified, obtaining the transfer information contained in the transaction instruction, and sending the transfer information to a preset server; receiving the target transaction information fed back by the server based on the transfer information; calling a preset first security verification component to obtain the user identification code of the user, and verifying the user identification code through a preset second security verification component; if the user identification code is verified, generating a transaction hash code based on the target transaction information, and applying the second security verification component to sign the transaction hash code to obtain signature information; generating a signature verification request based on the signature information, and sending the signature verification request to the server to trigger the server to verify the signature information in the verification request, if the signature information is verified, completing the transaction operation corresponding to the transaction instruction. Applying the method provided by the present invention, a contract can be signed with the user during the user payment process, so that the user who actually uses the shared item can be determined, thereby ensuring the safety of the shared item. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0051] Figure 1 A method flow chart of a transaction data processing method provided by the present invention;
[0052] Figure 2 A flowchart of a process for verifying location information provided by the present invention;
[0053] Figure 3 An example diagram of an implementation scenario provided by the present invention;
[0054] Figure 4 An application architecture diagram of an electronic device provided by the present invention;
[0055] Figure 5 An example diagram of the architecture of a secure transaction system provided by the present invention;
[0056] Figure 6 A flow chart of a position verification process provided by the present invention;
[0057] Figure 7A flowchart of a contract transaction process provided by the present invention;
[0058] Figure 8 A flowchart of a mobile phone shield activation process provided by the present invention;
[0059] Fig. 9 A schematic diagram of the structure of a transaction data processing device provided by the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.
[0062] The embodiment of the present invention provides a transaction data processing method, the execution subject of which may be a processor of an electronic device, and the electronic device may be a computer terminal or various mobile devices. The method flow chart of the method is as follows: Figure 1 As shown, specifically including:
[0063] S101: When receiving a transaction instruction sent by a user, obtain device location information corresponding to the transaction instruction, and verify the device location information.
[0064] In the method provided by the embodiment of the present invention, the user can trigger a transaction instruction through a client pre-installed on the electronic device. The client determines the current device location information and compares the device location information with the actual device location information to verify the device location information.
[0065] S102: If the device location information is verified, the transfer information contained in the transaction instruction is obtained, and the transfer information is sent to a preset server.
[0066] In the method provided by the embodiment of the present invention, if the device location information verification fails, it can be determined that the current transaction has failed, and a prompt message indicating the location abnormality can be fed back to the user.
[0067] S103: Receive target transaction information fed back by the server based on the transfer information.
[0068] In the method provided by the embodiment of the present invention, the target transaction information may be transaction information carrying a timestamp.
[0069] The target transaction information may be generated by the server based on the transfer information.
[0070] S104: calling a preset first security verification component to obtain a user identification code of the user, and verifying the user identification code through a preset second security verification component.
[0071] In the method provided by the embodiment of the present invention, the first security verification component can determine whether the user has set the user identification code. If the user has not set the user identification code, the user identification code setting interface can be displayed to allow the user to set his or her user identification code in the user identification code setting interface. If the user has set the user identification code, the target transaction information is displayed, and the user is prompted to enter the user identification code, and the user identification code currently entered by the user is obtained.
[0072] Specifically, the second security verification component can be called to verify the user identification code. In a feasible manner, the second security verification component can pre-store a standard user identification code set by the user, and can determine whether the user identification code currently input by the user is consistent with the standard identification code. If they are consistent, it is determined that the user identification code verification has passed. If they are inconsistent, it can be determined that the user identification code verification has failed.
[0073] Among them, the first security verification component and the second security verification component are set in the security area (Trusted Execution Environment, TEE) of the electronic device. The first security verification component can be a trusted application TA of the mobile phone shield, and the second security verification component can be a security applet APPlet of the mobile phone shield. Among them, the first security verification component can run in the first security system TEE, and the second security verification component runs in the eSE.
[0074] Optionally, the eSE pre-encrypts and stores a standard user identification code and a user private key. The second security verification component can obtain the standard user identification code to verify the user identification code currently input by the user. The second security verification component can encrypt the transaction hash code by obtaining the user private key.
[0075] S105: If the user identification code is verified, a transaction hash code is generated based on the target transaction information, and the second security verification component is used to sign the transaction hash code to obtain signature information.
[0076] In the method provided by the embodiment of the present invention, a hash operation can be performed on the target transaction using a preset hash algorithm to obtain a transaction hash code.
[0077] Optionally, a transaction hash code can be calculated based on a hash algorithm for the target transaction information and information items. The information items may include one or more of the time number, the first component identifier, the mobile phone shield serial number, the hash algorithm description information, the voice identifier, the character set, and the session ID.
[0078] Specifically, the second security verification component may encrypt the transaction hash code with a pre-stored private key to complete the signature of the transaction hash code.
[0079] S106: Generate a signature verification request based on the signature information, and send the signature verification request to the server to trigger the server to verify the signature information in the verification request. If the signature information is verified successfully, the transaction operation corresponding to the transaction instruction is completed.
[0080] In the method provided by the embodiment of the present invention, a signature verification request can be generated based on the signature information and the user public key corresponding to the user private key. If the server verifies the signature information successfully, the transaction is accepted. If the server fails to verify the signature information, it is determined that the transaction corresponding to the transaction instruction is unsuccessful.
[0081] By applying the method provided by the present invention, a contract can be signed with the user during the user's payment process, thereby determining the user who actually uses the shared item, thereby ensuring the safety of the shared item.
[0082] In the method provided in the embodiment of the present invention, based on the above implementation process, specifically, the process of verifying the location information is as follows: Figure 2 As shown, specifically including:
[0083] S201: Acquire device location information corresponding to the transaction instruction, and send the device location information to a location verification system to obtain a location verification result fed back by the location verification system.
[0084] In the method provided by an embodiment of the present invention, the current device location information can be obtained through the positioning module of the client, and the device location information can be sent to the location verification system, so that the location verification system can perform location verification on the device location information, wherein the location verification system can compare the device location information with the actual device location to obtain a location verification result.
[0085] S202: If the position verification result indicates that the device position information is consistent with the actual device position information, then obtaining the target position information of the transaction object corresponding to the transaction instruction.
[0086] In the method provided in the embodiment of the present invention, the object to be traded may be any type of item to be traded, for example, a car, a power bank, an umbrella, and the like.
[0087] Optionally, the object to be traded may be provided with a positioning system, and information interaction may be performed with the object to be traded to obtain target location information of the object to be traded.
[0088] If the location verification result indicates that the device location information is inconsistent with the actual device location information, it is determined that the device location information verification has failed.
[0089] S203: Determine the location distance between the device location information and the target location information.
[0090] In the method provided by an embodiment of the present invention, the device location information may include the longitude and latitude of the electronic device, and the target location information may include the longitude and latitude of the transaction object. By calculating the device location information and the target location information, the location distance between the device location information and the target location information can be obtained.
[0091] S204: Determine whether the position distance is greater than a preset distance threshold, if so, execute S205, if not, execute S206.
[0092] The distance threshold can be set according to actual needs, for example, it can be set to 1m.
[0093] S205: Determine that the device location information has not been verified.
[0094] S206: Determine whether the device location information has been verified.
[0095] In the method provided by the embodiment of the present invention, based on the above implementation process, specifically, generating a signature verification request based on the signature information includes:
[0096] Obtaining a public key ciphertext corresponding to the signature information and component information of the first security verification component;
[0097] A verification request is generated based on the signature information, the public key ciphertext, and the component information.
[0098] In the method provided by the embodiment of the present invention, the public key ciphertext is obtained by encrypting a pre-generated public key with a set working key.
[0099] The component information may be the serial number of the mobile phone shield.
[0100] Specifically, the public key can be set in the process of applying for a certificate for the client. The process of applying for a certificate by the client can include: when receiving a certificate application request, calling the first security verification component to obtain a user identification code, and verifying the user identification code through the second security verification component. If the verification is successful, a key pair corresponding to the certificate application request is generated, and a certificate application file P10 is generated. The key pair includes a public key and a private key. The certificate application file can be calculated by a preset hash algorithm for the mobile phone shield AID, random number, session ID, mobile phone shield serial number, language identifier, character set and hash algorithm description information. Then, the certificate application file can be encrypted by the private key, and the encrypted certificate application file and the public key ciphertext are sent to the client, so that the client decrypts the public key secret key to obtain the public key, and decrypts the encrypted certificate application file by the public key to obtain the certificate application file, and initiates a certificate download to the server based on the certificate application file to obtain the certificate.
[0101] In the method provided in the embodiment of the present invention, based on the above implementation process, specifically, the process of setting the first security verification component includes:
[0102] Calling the initial security verification component currently to be authorized to obtain device information corresponding to the initial security verification component;
[0103] In response to the device information not satisfying a preset risk interception condition, the initial security verification component is granted transaction authority to obtain a first security verification component.
[0104] In the method provided by an embodiment of the present invention, the device information may include information such as the device model, operating system version number, and CPLC of the electronic device, and the device information is sent to the risk management and control system so that the risk management and control system determines whether the device information meets the risk interception conditions.
[0105] The initial security verification component may call the second security verification component to obtain component identification information, where the component identification information includes information such as CPLC, TEID, and SEID.
[0106] Specifically, the process of granting transaction permissions to the initial security component may include: sending permission application information to the permission management background, the permission application information may include: SEID, APPAid and channel data of the transaction object, the channel data of the transaction object may be shared bicycle channel data, the permission management background may be the SP-TSM background, after the SP-TSM background receives the permission application information, it may apply to the server for user information, the user information may include the mobile phone shield serial number, the user identification code unlocking key, the encryption public key working key, the key algorithm, the maximum number of incorrect user identification code input, the client pre-checks the association between the user information and the user; after the SP-TSM platform obtains the user information fed back by the server, it sends a personalized success notification to the server, and then feeds back the component identifier AID to the client to complete the granting of transaction permissions to the first security verification component.
[0107] In the method provided in the embodiment of the present invention, based on the above implementation process, specifically, after sending the signature verification request to the server, it also includes:
[0108] Receive a transaction success message fed back by the server.
[0109] See also Figure 3 , is an example diagram of an implementation scenario provided by the present invention. The implementation scenario provided by an embodiment of the present invention includes an electronic device 301 and a server 302.
[0110] When implementing, Figure 3 The electronic device 301 shown can be an electronic device such as a mobile phone, a tablet computer, a personal computer, etc. The server 302 can be a server, or a server cluster composed of multiple servers, or a cloud computing service center. The electronic device 301 establishes a communication connection with the server 302 through a network.
[0111] The electronic device 301 may be installed with a security component and a transaction client and a first security verification component and a second security verification component corresponding to the security component, wherein the security component and the transaction client are arranged in the REE system, and the first security verification component and the second security verification component may be arranged in the TEE client, see Figure 4 , which is an application architecture diagram of an electronic device provided in an embodiment of the present invention, wherein the client application may be a security component client, the first security verification component may be a trusted application TA, and the second security verification component may be an Applet in eSE.
[0112] The transaction data processing method provided in the embodiment of the present invention can be applied to various fields, for example, it can be applied to the transaction field of shared bicycles, which is specifically described below:
[0113] The transaction client may be a shared bicycle client, the security component client may be a mobile shield control, and the server 302 may be a shared bicycle backend. Figure 5 , which is an example diagram of the architecture of a secure transaction system provided by an embodiment of the present invention. The mobile shield control can call TA and Applet. The mobile shield control can interact with the mobile shield background SP-TSM and the mobile phone manufacturer background. The shared bicycle client can interact with the shared bicycle background.
[0114] Specifically, the TSM backend (SP-TSM) is built by security component manufacturers and deployed outside the shared bicycle system. It provides services including carrier lifecycle management, application lifecycle management, and application management, and also provides mobile shield controls; the equipment manufacturer provides hardware and software environments such as SE+TEE, and also builds the SE-TSM system. TA is an application running on TEE, and provides related interfaces to upper-level applications. Only through TA can eSE be accessed. The TA program is loaded on demand and is installed as follows: the mobile shield service provider packages TA into the mobile shield control, which contains the background signature of the mobile phone manufacturer. The mobile shield control calls the TA installation call interface package provided by the mobile phone manufacturer and notifies the mobile phone manufacturer TEE of the TA file path; TEE reads TA and verifies the legitimacy of TA, and installs it after verification.
[0115] Among them, the shared bicycle client can interact with the mobile shield basic platform client, and the shared bicycle backend can interact with the TSM backend.
[0116] Specifically, the server part of the Mobile Shield basic platform is mainly composed of the Mobile Shield TSM background, and the client part of the Mobile Shield basic platform is composed of the Mobile Shield SDK, Mobile Shield controls, TA and Applet. Among them, the Mobile Shield controls include TSM control APP, U Shield payment control APP, etc.
[0117] The electronic device responds to the transaction instruction triggered by the user inputting the transfer information through the shared bicycle APP, and then performs the location verification process; Figure 6 As shown in the figure, the location verification process includes: obtaining the device location information through the client, which is the user's mobile phone location information, and then sending the mobile phone location information to the operator's backend location verification service. The operator's backend returns the comparison result with the customer's real mobile phone location information. If they are consistent, the mobile phone location information is compared with the shared bicycle location again. If the location deviation is within 1m, the signing transaction process is executed. The signing transaction process can be found in Figure 7 , specifically including:
[0118] Step 1: The shared bicycle client sends a transaction application to the shared bicycle backend, which is the server. The transaction application may include transfer information.
[0119] Step 2: The shared bicycle backend returns the target transaction information to the shared bicycle client, and the target transaction information may be transaction information with a timestamp.
[0120] Step 3: The shared bicycle client sends the transaction information to the mobile shield client.
[0121] Step 4: The mobile shield client sends the above transfer information to the first security verification component TA.
[0122] Step 5: The first security verification component TA accesses the second security verification component Applet to check whether the user identification code PIN has been set. If the PIN has not been set, an interface for setting the PIN will pop up.
[0123] Step 6: The first security verification component parses the transfer information, echoes the transaction information through the secure transaction middleware TUI, and prompts for a PIN.
[0124] Step 7: TA calls the second security verification component to verify the PIN; if the PIN verification is successful, TA generates a Hash.
[0125] Step 8: TA calls the second security verification component to sign.
[0126] Step 9. Pass the signature information, mobile shield serial number, and encrypted public key to the background.
[0127] Step 10: After the shared bicycle backend successfully verifies the signature, it accepts the transaction and notifies the front desk of the success of the transaction.
[0128] Among them, the process of activating the mobile phone shield is as follows: Figure 8 As shown, specifically including:
[0129] Step A: Call the mobile shield control and obtain information such as CPLC, TEID, and SEID through eSE.
[0130] Step B: The mobile shield control obtains device information including mobile phone model, operating system version number, CPLC, etc., and queries the device information through the mobile shield TSM background, so that the mobile shield manufacturer feeds back the risk query results to the shared bicycle background, and the shared bicycle background determines whether to block the activation of the mobile shield control and performs SMS verification code and other verification.
[0131] Step C: If the device information is normal and the authentication is passed, the shared bicycle system notifies the mobile shield control to activate the mobile shield; the mobile shield control transmits the application information to the mobile shield manufacturer SP-TSM background, where the application information includes SEID, APPAid and shared bicycle channel data bikeChannelData.
[0132] Step D: Personalization data download, instantiation and personalization.
[0133] d1. The SP-TSM backend of Mobile Shield applies for personalized data from the shared bicycle.
[0134] d2. The shared bicycle backend returns personalized data to SP-TSM Mobile Shield.
[0135] Among them, personal data includes the mobile phone shield serial number, pin code unlocking key, working key of encrypted public key, key algorithm and the maximum number of incorrect pin code inputs.
[0136] Specifically, the shared bicycle side needs to conduct a correlation check between the personalized data and the previously authenticated user.
[0137] d3. Establish a GP security channel between the SP-TSM background and the Mobile Shield auxiliary security domain.
[0138] d4. Download personalized data from SP-TSM background.
[0139] d5. SP-TSM backend notifies the shared bicycle backend of successful personalization.
[0140] d6. The mobile shield control returns the AID to the shared bicycle APP, where AID is the unique identifier of the instance in the Applet, and the unique identifier is also uniquely bound to the customer's mobile shield.
[0141] d7. Close the GP channel.
[0142] Step E: Set up a PIN.
[0143] Specifically, clear the original certificate information. If you do not need to enter the original PIN code, directly enter the new PIN and confirm the new PIN.
[0144] Step F: Apply for and download the certificate.
[0145] f1. The mobile bike-sharing APP initiates an application for a certificate.
[0146] Specifically, the certificate acquisition application can be generated by describing the mobile phone shield AID, random number, session ID, mobile phone shield serial number, language identifier, character set, and Hash algorithm used when generating P10. The application can be P10.
[0147] f2. eSE generates a public-private key pair, encrypts the public key with the working key, and transmits the package P10+mobile phone shield serial number to the shared bicycle APP.
[0148] f3. The mobile bike-sharing APP initiates an application to obtain the public key ciphertext.
[0149] f4. The public key ciphertext is returned to the shared bicycle APP. Because the public key ciphertext is encrypted with the working key provided by the bank, the shared bicycle end needs to decrypt the public key ciphertext first.
[0150] f5. Apply for the shared bicycle background certificate, generate the certificate, and return the certificate to the mobile shared bicycle.
[0151] f6. The shared bicycle APP initiates a certificate application.
[0152] Optionally, resetting the PIN is initiated passively, nested in other business processes. You can reset it after personalization is successful, or set the PIN before downloading the certificate.
[0153] Specifically, during the process of setting the PIN, you need to clear dirty data. When the "Set PIN" interface pops up on the TUI, you do not need to enter the original PIN code. You can directly enter the new PIN and confirm the new PIN.
[0154] In the embodiment of the present invention, the user PIN and the user private key are encrypted and stored in SE, and cryptographic calculation functions such as PIN verification and private key signature are performed to protect the user PIN and the user private key from being leaked and tampered. In TEE, the secure interactive middleware TUI is used to protect the echoed transaction information from being tampered with, the user input PIN from being leaked, and the user confirmation / cancellation transaction operation from being hijacked.
[0155] and Figure 1 Corresponding to the method described above, the embodiment of the present invention further provides a transaction data processing device for Figure 1 In the specific implementation of the method, the transaction data processing device provided by the embodiment of the present invention can be applied to a computer terminal or various mobile devices, and its structural diagram is as follows Fig. 9 As shown, specifically including:
[0156] The first receiving unit 901 is used to obtain the device location information corresponding to the transaction instruction when receiving the transaction instruction sent by the user, and verify the device location information;
[0157] A first acquisition unit 902 is configured to acquire the transfer information contained in the transaction instruction if the device location information is verified, and send the transfer information to a preset server;
[0158] The second receiving unit 903 is used to receive the target transaction information fed back by the server based on the transfer information;
[0159] The second acquisition unit 904 is used to call a preset first security verification component to obtain a user identification code of the user, and verify the user identification code through a preset second security verification component;
[0160] The signature unit 905 is configured to generate a transaction hash code based on the target transaction information if the user identification code is verified, and to sign the transaction hash code using the second security verification component to obtain signature information;
[0161] The verification unit 906 is used to generate a signature verification request based on the signature information, and send the signature verification request to the server to trigger the server to verify the signature information in the verification request. If the signature information is verified, the transaction operation corresponding to the transaction instruction is completed.
[0162] In an embodiment provided by the present invention, based on the above solution, optionally, the first receiving unit 901 for verifying the location information includes:
[0163] A first acquisition subunit is used to acquire device location information corresponding to the transaction instruction, and send the device location information to a location verification system to obtain a location verification result fed back by the location verification system;
[0164] A second acquisition subunit is configured to acquire target location information of the transaction object corresponding to the transaction instruction if the location verification result indicates that the device location information is consistent with the actual device location information;
[0165] A first determining subunit, used to determine a location distance between the device location information and the target location information;
[0166] A judging subunit, used to judge whether the position distance is greater than a preset distance threshold;
[0167] A second determining subunit is configured to determine that the device location information has not been verified if the location distance is greater than the distance threshold;
[0168] The third determining subunit is configured to determine that the verification of the device location information is successful if the location distance is not greater than the distance threshold.
[0169] In an embodiment provided by the present invention, based on the above solution, optionally, the verification unit 906 that generates a signature verification request based on the signature information includes:
[0170] A third acquisition subunit is used to obtain the public key ciphertext corresponding to the signature information and the component information of the first security verification component;
[0171] A generating subunit is used to generate a verification request based on the signature information, the public key ciphertext and the component information.
[0172] In an embodiment provided by the present invention, based on the above-mentioned scheme, optionally, it also includes a transaction component setting unit, wherein the transaction component setting unit is used to call the initial security verification component currently to be authorized to obtain the device information corresponding to the initial security verification component; in response to the device information not satisfying the pre-set risk interception conditions, the transaction authority is granted to the initial security verification component to obtain the first security verification component.
[0173] In an embodiment provided by the present invention, based on the above solution, optionally, it further includes a receiving unit;
[0174] The receiving unit is used to receive a transaction success message fed back by the server.
[0175] The specific principles and execution processes of each unit and module in the transaction data processing device disclosed in the above embodiment of the present invention are the same as the transaction data processing method disclosed in the above embodiment of the present invention. Please refer to the corresponding parts of the transaction data processing method provided in the above embodiment of the present invention, and will not be repeated here.
[0176] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0177] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0178] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0179] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0180] The transaction data processing method provided by the present invention is introduced in detail above. The principle and implementation mode of the present invention are explained in this article by using specific examples. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A transaction data processing method, characterized in that: include: When receiving a transaction instruction sent by a user, obtaining the device location information corresponding to the transaction instruction and verifying the device location information; The device location information is location information determined by a client on the user's electronic device; If the device location information is verified, the transfer information contained in the transaction instruction is obtained, and the transfer information is sent to a preset server; Receiving target transaction information fed back by the server based on the transfer information; Calling a preset first security verification component to obtain a user identification code of the user, and verifying the user identification code through a preset second security verification component; If the user identification code is verified, a transaction hash code is generated by calculating the target transaction information and information items based on a hash algorithm, and the transaction hash code is signed by applying the second security verification component to obtain signature information; Generate a signature verification request based on the signature information, and send the signature verification request to the server to trigger the server to verify the signature information in the verification request. If the signature information is verified successfully, the transaction operation corresponding to the transaction instruction is completed; Wherein, the verifying the device location information includes: Obtaining device location information corresponding to the transaction instruction, and sending the device location information to a location verification system to obtain a location verification result fed back by the location verification system; the location verification system is a system set up at the operator for providing location verification services; If the position verification result indicates that the device position information is consistent with the actual device position information, then the target position information of the object to be traded corresponding to the transaction instruction is obtained; the target position information is the position information of the object to be traded determined based on the positioning system set on the object to be traded; Determine a location distance between the device location information and the target location information; Determining whether the position distance is greater than a preset distance threshold; If the location distance is greater than the distance threshold, it is determined that the device location information has not been verified; If the location distance is not greater than the distance threshold, it is determined that the device location information has been verified.
2. The method according to claim 1, characterized in that The generating a signature verification request based on the signature information includes: Obtaining a public key ciphertext corresponding to the signature information and component information of the first security verification component; A verification request is generated based on the signature information, the public key ciphertext, and the component information.
3. The method according to claim 1, characterized in that The process of setting up the first safety verification component includes: Calling the initial security verification component currently to be authorized to obtain device information corresponding to the initial security verification component; In response to the device information not satisfying a preset risk interception condition, the initial security verification component is granted transaction authority to obtain a first security verification component.
4. The method according to claim 1, characterized in that After sending the signature verification request to the server, the method further includes: Receive a transaction success message fed back by the server.
5. A transaction data processing device, characterized in that: include: A first receiving unit is used to, when receiving a transaction instruction sent by a user, obtain device location information corresponding to the transaction instruction and verify the device location information; the device location information is location information determined by a client on the user's electronic device; A first acquisition unit, configured to acquire the transfer information contained in the transaction instruction if the device location information is verified, and send the transfer information to a preset server; A second receiving unit, configured to receive target transaction information fed back by the server based on the transfer information; A second acquisition unit, configured to call a preset first security verification component to acquire a user identification code of the user, and verify the user identification code through a preset second security verification component; a signature unit, configured to calculate and generate a transaction hash code based on the target transaction information and the information item based on a hash algorithm if the user identification code is verified, and to sign the transaction hash code using the second security verification component to obtain signature information; A verification unit, configured to generate a signature verification request based on the signature information, and send the signature verification request to the server to trigger the server to verify the signature information in the verification request, and if the signature information is verified successfully, the transaction operation corresponding to the transaction instruction is completed; Wherein, the first receiving unit for verifying the location information includes: A first acquisition subunit is used to acquire the device location information corresponding to the transaction instruction, and send the device location information to a location verification system to obtain a location verification result fed back by the location verification system; the location verification system is a system set up at the operator for providing location verification services; A second acquisition subunit is configured to acquire target location information of the object to be traded corresponding to the transaction instruction if the location verification result indicates that the device location information is consistent with the actual device location information; the target location information is location information of the object to be traded determined based on a positioning system set on the object to be traded; A first determining subunit, used to determine a location distance between the device location information and the target location information; A judging subunit, used to judge whether the position distance is greater than a preset distance threshold; A second determining subunit is configured to determine that the device location information has not been verified if the location distance is greater than the distance threshold; The third determining subunit is configured to determine that the verification of the device location information is successful if the location distance is not greater than the distance threshold.
6. The device according to claim 5, characterized in that The verification unit generating a signature verification request based on the signature information includes: A third acquisition subunit is used to obtain the public key ciphertext corresponding to the signature information and the component information of the first security verification component; A generating subunit is used to generate a verification request based on the signature information, the public key ciphertext and the component information.
7. The device according to claim 5, characterized in that It also includes a transaction component setting unit, which is used to call the initial security verification component currently to be authorized to obtain device information corresponding to the initial security verification component; in response to the device information not satisfying the pre-set risk interception conditions, grant transaction authority to the initial security verification component to obtain a first security verification component.
8. The device according to claim 5, characterized in that Also includes a receiving unit; The receiving unit is used to receive a transaction success message fed back by the server.
Citation Information
Patent Citations
System and method for realizing mobile payment
CN101853453A
Safe payment pattern based on radio frequency identification device (RFID) intelligent payment system
CN103093341A
Transaction system, transaction method, electronic signature tool and network bank server authentication method
CN103793819A
Data security interactive system
CN103942688A
Double-key antitheft method in distributed account system
CN108764904A
