Data processing method and apparatus, and device and computer-readable storage medium
By passing data signed transaction data between the business server and the core account layer, verifying transaction legality, solving the problems of business account security risks and low transaction verification efficiency in the existing technology, and achieving more efficient and accurate transaction data verification .
Patent Information
- Application Number
- PCT/CN2024/084133
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-08
- Filing Date
- 2024-03-27
- Publication Date
- 2024-11-14
AI Technical Summary
In the prior art, transaction legality verification and resource transfer processing of business accounts are independent of each other, resulting in security risks of business accounts and low transaction verification efficiency and accuracy.
By passing transaction data carrying data signatures between the business server and the core account layer, using data signatures for sign-up verification, verifying the legitimacy of transaction data, and storing it in the core account database, ensuring that only the business account authorization is allowed The transaction is executed only.
It improves the security of business accounts, improves the verification efficiency and accuracy of transaction data, prevents illegal transactions and simplifies the post-audit process.
Smart Images

Figure CN2024084133_14112024_PF_FP_ABST
Abstract
Description
Data processing method, device, equipment and computer-readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 8, 2023, with application number 2023105166106 and application name “A data processing method, device, equipment and computer-readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of Internet technology, and in particular to a data processing method, apparatus, device, and computer-readable storage medium. Background Art
[0003] In today's era of information and electronic business systems, the security of business accounts has become one of the key areas of protection for various business organizations.
[0004] In the prior art, business organizations usually complete the transaction password verification or signature verification of the business account through the transaction layer or business layer, and then the transaction layer or business layer sends a resource transfer instruction for the business transaction to the core account layer; because the resource transfer instruction sent by the transaction layer or business layer is trusted, the core account layer performs the resource transfer process. Obviously, in the prior art, the verification of the legality of the transaction and the resource transfer process of the business account are independent of each other, which will lead to security risks of the business account. For example, in the scenario where the business account is not authorized, the business organization or illegal elements modify the account data of the business account or perform resource transfer processes, so the prior art reduces the security of the business account. In addition, the prior art needs to verify all transactions of the business account during subsequent transaction verification, so the evidence chain is long, the verification efficiency is low, and the accuracy is low.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a data processing method, apparatus, device, and computer-readable storage medium, which can not only improve the security of business accounts, but also improve the verification efficiency and accuracy of transaction data.
[0007] On one hand, an embodiment of the present application provides a data processing method, which is executed by a service server and includes:
[0008] At the first moment, the transaction data initiated by the business account is sent to the core account layer; the transaction data includes the business transaction and the corresponding verification transaction time range of the business transaction, and the transaction data carries a data signature;
[0009] At the core account layer, the data signature is verified to obtain a verification result. If the verification result is successful, the legitimacy of the business transaction is verified based on the first moment and the verification transaction time range to obtain a verification result;
[0010] If the verification result indicates that the business transaction is legal, the transaction data at the first moment and carrying the data signature will be associated and stored in the core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are both used to be sent to the verification device; the verification device is used to verify the legality of the transaction data based on the data signature.
[0011] An embodiment of the present application provides a data processing method, which is executed by a verification device and includes:
[0012] Obtain a transaction verification request for the business account, and generate a transaction acquisition request for the business account based on the transaction verification request;
[0013] Sending a transaction acquisition request to the business server, so that the business server obtains the business account's data to be verified from the core account database corresponding to the core account layer based on the transaction acquisition request; the data to be verified includes transaction data initiated by the business account; the transaction data includes the business transaction and the corresponding verification transaction time range; the verification transaction time range is used to instruct the business server to verify the legitimacy of the business transaction;
[0014] Obtain the data to be verified returned by the business server. If the data to be verified does not include the data signature of the transaction data, the transaction data is determined to be illegal transaction data;
[0015] If the data to be verified includes the data signature of the transaction data, the legitimacy of the transaction data is verified based on the data signature.
[0016] An embodiment of the present application provides a data processing method, which is executed by a service terminal and includes:
[0017] In response to a completion operation for a business transaction in a business account, determine a verification transaction time range for verifying the legitimacy of the business transaction;
[0018] Generate a digital signature for transaction data; transaction data includes business transactions and verification of transaction time ranges;
[0019] The transaction data carrying the data signature is sent to the business server through the business account, so that the business server sends the transaction data carrying the data signature to the core account layer at the first moment; the core account layer is used to verify the data signature and obtain the verification result; the verification result includes the success result; the verification result is used to instruct the core account layer to verify the legitimacy of the business transaction based on the first moment and the verification transaction time range to obtain the verification result; the verification result includes the legality verification result; the legality verification result is used to instruct the core account layer to associate the first moment and the transaction data carrying the data signature and store them in the core account database; the data signature and transaction data stored in the core account database are used to be sent to the verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature.
[0020] In one aspect, an embodiment of the present application provides a data processing device, which runs on a service server and includes:
[0021] A data sending module is used to send transaction data initiated by the business account to the core account layer at the first moment; the transaction data includes the business transaction and the verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature;
[0022] The transaction verification module is used to verify the data signature in the core account layer and obtain the verification result. If the verification result is successful, the business transaction is verified to be legitimate based on the first moment and the verification transaction time range to obtain the verification result;
[0023] The first storage module is used to associate and store the transaction data at the first moment and carrying the data signature in the core account database corresponding to the core account layer if the verification result indicates that the business transaction is legal; the data signature and transaction data stored in the core account database are both used to be sent to the verification device; the verification device is used to verify the legality of the transaction data based on the data signature.
[0024] Among them, the transaction verification module includes:
[0025] a relationship identification unit configured to identify a relationship between the first moment and a verification transaction time range; the earliest moment in the verification transaction time range being equal to the second moment when the business terminal bound to the business account responds to a completion operation for the business transaction; and the latest moment in the verification transaction time range being later than the second moment;
[0026] a first determining unit configured to determine, if the relationship between the first moment and the transaction verification time range is that the first moment is within the transaction verification time range, a legality verification result as a verification result of the legality verification of the business transaction; the legality verification result is used to indicate that the business transaction is legal;
[0027] The second determination unit is used to determine the verification illegality result as the verification result of the legality verification of the business transaction if the relationship between the first moment and the verification transaction time range is that the first moment is later than the latest moment; the verification illegality result is used to indicate that the business transaction is not legal.
[0028] The first storage module includes:
[0029] A first acquisition unit is configured to acquire the current digital resources of the business account from a core account database corresponding to the core account layer;
[0030] a second acquiring unit configured to acquire a resource transfer value in a business transaction, and if the current digital resource includes a digital resource to be transferred corresponding to the resource transfer value, perform resource transfer processing on the digital resource to be transferred in the current digital resource, and determine the current digital resource after the resource transfer processing as the updated digital resource;
[0031] The data storage unit is used to associate and store the first moment, the updated digital resource and the transaction data carrying the data signature in the core account database.
[0032] Among them, the transaction verification module includes:
[0033] A third obtaining unit is configured to obtain a business public key of the business account from the core account database, and verify the data signature using the business public key to obtain a first digital summary;
[0034] a summary generation unit, configured to generate a second digital summary of the transaction data, and compare the first digital summary with the second digital summary to obtain a comparison result;
[0035] a third determining unit, configured to determine a successful signature verification result as a signature verification result if the comparison result indicates that the first digital digest and the second digital digest are identical; the successful signature verification result is further configured to indicate that the data signature was obtained by a business terminal bound to the business account, using a business private key of the business account to sign the transaction data;
[0036] The fourth determining unit is configured to determine a signature verification failure result as the signature verification result if the comparison result indicates that the first digital digest is different from the second digital digest.
[0037] The data processing device further includes:
[0038] a request acquisition module, configured to acquire, at a third time earlier than the first time, a certificate application request initiated by the business terminal; the certificate application request includes a business account and a business public key of the business account; the business public key is generated by the business terminal when applying for the business account;
[0039] The certificate generation module is used to generate a business certificate for the business account according to the certificate application request and return the business certificate to the business terminal; the business certificate is used to indicate that the business terminal has successfully applied for the business account;
[0040] The second storage module is used to associate and store the business public key and the business account in the core account database.
[0041] In one aspect, an embodiment of the present application provides a data processing apparatus, which runs on a verification device and includes:
[0042] A request generation module is used to obtain a transaction verification request for a business account and generate a transaction acquisition request for the business account based on the transaction verification request;
[0043] A request sending module is used to send a transaction acquisition request to a business server, so that the business server obtains the business account's data to be verified from the core account database corresponding to the core account layer based on the transaction acquisition request; the data to be verified includes transaction data initiated by the business account; the transaction data includes the business transaction and the verification transaction time range corresponding to the business transaction; the verification transaction time range is used to instruct the business server to verify the legitimacy of the business transaction;
[0044] A data determination module is used to obtain the data to be verified returned by the business server, and if the data to be verified does not include the data signature of the transaction data, the transaction data is determined to be illegal transaction data;
[0045] The data verification module is used to verify the legitimacy of the transaction data based on the data signature if the data to be verified includes the data signature of the transaction data.
[0046] Among them, the data verification module includes:
[0047] A public key acquisition unit, configured to acquire a first business public key of the business account and a second business public key from the data to be verified; the second business public key is a business public key provided by a business terminal bound to the business account, or a business public key obtained from a blockchain and bound to the business account;
[0048] a public key comparison unit, configured to compare the first service public key with the second service public key to obtain a comparison result;
[0049] a first determining unit, configured to determine that the transaction data is illegal transaction data if the comparison result indicates that the first business public key is different from the second business public key;
[0050] a signature verification unit, configured to verify the transaction signature based on the first business public key to obtain a verification result if the comparison result indicates that the first business public key and the second business public key are the same;
[0051] a second determining unit, configured to determine that the transaction data is illegal transaction data if the signature verification result is a signature verification failure result;
[0052] The third determining unit is configured to determine that the transaction data is legal transaction data if the signature verification result is a successful signature verification result.
[0053] In one aspect, an embodiment of the present application provides a data processing device, which runs on a service terminal and includes:
[0054] A time determination module, configured to respond to a completion operation for a business transaction in a business account and determine a verification transaction time range for verifying the legitimacy of the business transaction;
[0055] A first generation module is used to generate a digital signature for transaction data; the transaction data includes business transactions and a verification transaction time range;
[0056] The first sending module is used to send the transaction data carrying the data signature to the business server through the business account, so that the business server sends the transaction data carrying the data signature to the core account layer at the first moment; the core account layer is used to verify the data signature and obtain the verification result; the verification result includes the success result; the verification result is used to instruct the core account layer to verify the legitimacy of the business transaction based on the first moment and the verification transaction time range to obtain the verification result; the verification result includes the legality verification result; the legality verification result is used to instruct the core account layer to associate the first moment and the transaction data carrying the data signature and store them in the core account database; the data signature and transaction data stored in the core account database are both used to be sent to the verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature.
[0057] The time determination module includes:
[0058] a first determining unit, configured to determine a second time in response to a completion operation on the business transaction as the earliest time;
[0059] A first acquiring unit is configured to acquire a verification transaction time threshold, and to sum the earliest time and the verification transaction time threshold to obtain the latest time;
[0060] The first generating unit is configured to generate a verification transaction time range including an earliest time and a latest time.
[0061] The data processing device further includes:
[0062] The second generation module is used to generate a business private key and a business public key when applying for a business account;
[0063] A second sending module is configured to generate a certificate application request including a business account and a business public key, and send the certificate application request to a business server, so that the business server generates a business certificate for the business account according to the certificate application request;
[0064] The certificate acquisition module is used to obtain the business certificate returned by the business server; the business certificate is used to indicate that the business terminal has successfully applied for a business account;
[0065] The first generation module includes:
[0066] A second generating unit is used to generate transaction data including business transactions and verify the transaction time range;
[0067] The second acquisition unit is used to obtain the business private key, and use the business private key to sign the transaction data to obtain a data signature of the transaction data.
[0068] On one hand, the present application provides a computer device, including: a processor, a memory, and a network interface;
[0069] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface, wherein the above-mentioned network interface is used to provide data communication function, the above-mentioned memory is used to store computer programs, and the above-mentioned processor is used to call the above-mentioned computer program so that the computer device executes the method in the embodiment of the present application.
[0070] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded by a processor and executing the method in the embodiment of the present application.
[0071] On the one hand, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium; a processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the method in the embodiment of the present application.
[0072] In an embodiment of the present application, at a first moment, a business server sends transaction data initiated by a business account to a core account layer; the transaction data includes a business transaction and a verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature; at the core account layer, the business server can verify the data signature to obtain a verification result. If the verification result is a successful verification result, the business transaction is verified for legitimacy based on the first moment and the verification transaction time range to obtain a verification result; further, if the verification result indicates that the business transaction is legitimate, the business server associates the first moment and the transaction data with the data signature and stores them in a core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are both used to be sent to a verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature. As can be seen from the above, the business server sends the transaction data with the data signature directly to the core account layer, and at the core account layer, verifies the legitimacy of the business transaction based on the data signature and the verification transaction time range. Therefore, in a scenario where the business account does not authorize the business account, the core account layer will not recognize the business transaction and will not execute the business transaction, thereby improving the security of the business account. In addition, through data signatures, the verification device can verify the legitimacy of transaction data, thereby improving the verification efficiency and accuracy of transaction data. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] FIG1 is a schematic diagram of a system architecture provided by an embodiment of the present application;
[0074] FIG2 is a flow chart of a data processing method according to an embodiment of the present application;
[0075] FIG3 is a schematic diagram of a data processing scenario provided in an embodiment of the present application;
[0076] FIG4 is a second schematic diagram of a data processing scenario provided by an embodiment of the present application;
[0077] FIG5 is a second flow chart of a data processing method provided in an embodiment of the present application;
[0078] FIG6 is an interactive diagram 1 of a data processing method provided in an embodiment of the present application;
[0079] FIG7 is a third flow chart of a data processing method provided in an embodiment of the present application;
[0080] FIG8 is a fourth flow chart of a data processing method provided in an embodiment of the present application;
[0081] FIG9 is a fifth flow chart of a data processing method provided in an embodiment of the present application;
[0082] FIG10 is a second interactive diagram of a data processing method provided in an embodiment of the present application;
[0083] FIG11 is a structural diagram of a data processing device according to an embodiment of the present application;
[0084] FIG12 is a second structural diagram of a data processing device provided in an embodiment of the present application;
[0085] FIG13 is a third structural diagram of a data processing device provided in an embodiment of the present application;
[0086] FIG14 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0087] Please refer to Figure 1, which is a schematic diagram of a system architecture provided by an embodiment of the present application. As shown in Figure 1, the system architecture may include a business server 100, a verification device cluster, and a terminal device cluster. It is understandable that the above-mentioned terminal device cluster may include one or more terminal devices, and this application does not limit the number of terminal devices. As shown in Figure 1, the terminal device cluster may include: terminal device 101a, terminal device 101b, ..., terminal device 101n. Among them, each terminal device in the terminal device cluster may include: smart phones, tablet computers, laptop computers, desktop computers, smart speakers, smart watches, car terminals, smart TVs, and other smart terminals with the function of sending transaction data.
[0088] It should be understood that each terminal device in the terminal device cluster shown in FIG1 can be installed with an application client. When the application client runs in each terminal device, data can be exchanged with the business server 100 shown in FIG1 . The application client can be a video application, a convenient life application, a payment application, a financial application, a game application, a shopping application, a novel application, a browser, or other application client with a business account binding function. The application client can be an independent client or an embedded sub-client integrated in a client (for example, a payment client, an education client, a multimedia client, etc.), which is not limited here.
[0089] The business server 100 in the embodiment of the present application can be a server corresponding to the above-mentioned application client. Taking the application client as a payment application as an example, the business server 100 can be a collection of multiple servers including a background server corresponding to the payment application, a data processing server, etc. Therefore, each terminal device can transmit data with the business server 100 through the application client corresponding to the payment application. For example, each terminal device can send the transaction data for the business account generated locally to the business server 100 through the application client of the payment application at the second moment. The business server 100 can send the transaction data to the core account layer at the first moment. The core account layer verifies the transaction data. After the verification is passed, the transaction data is executed to obtain the transaction execution result, and the transaction execution result is returned to the terminal device. The first moment and the transaction data are associated and stored in the core account database. The business server 100 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0090] It is understandable that the above-mentioned verification device cluster may include one or more verification devices, and this application does not limit the number of verification devices. As shown in Figure 1, the verification device cluster may include: verification device 102a, verification device 102b, ..., verification device 102n. Each verification device in the verification device cluster has the function of verifying the transaction data stored in the core account database by the business server 100, wherein this function can be provided by a verification application, and the verification application can be a video application, a convenient life application, a payment application, a financial application, a game application, a shopping application, a novel application, a browser, and other applications with the function of verifying transaction data. Among them, the application client corresponding to the verification application can be an independent client, or it can be an embedded sub-client integrated in a certain client (for example, a financial client, an education client, and a multimedia client, etc.), which is not limited here.
[0091] Each verification device in the verification device cluster in Figure 1 includes, but is not limited to, a terminal device or a business server. A business server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud databases, cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. Terminal devices include, but are not limited to, mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, and the like.
[0092] Among them, there can be communication connections between terminal device clusters, for example, there is a communication connection between terminal device 101a and terminal device 101b, and there is a communication connection between terminal device 101a and terminal device 101n. At the same time, any terminal device in the terminal device cluster can have a communication connection with the business server 100, for example, there is a communication connection between terminal device 101a and business server 100. At the same time, any terminal device in the terminal device cluster can have a communication connection with any verification device in the verification device cluster, for example, there is a communication connection between terminal device 101a and verification device 102a, and there is a communication connection between terminal device 101b and verification device 102a.
[0093] Any verification device in the verification device cluster may be in communication with the service server 100, for example, verification device 102a is in communication with the service server 100. At the same time, verification device clusters may be in communication with each other, for example, verification device 102a is in communication with verification device 102b.
[0094] Among them, this application does not limit the connection method for all the communication connections mentioned above. They can be directly or indirectly connected through wired communication, directly or indirectly connected through wireless communication, or through other methods.
[0095] It is understandable that when the relevant data (such as transaction data) in this application is collected and processed in actual applications, it should be strictly in accordance with the requirements of relevant national laws and regulations, and the informed consent or separate consent of the personal information subject should be obtained. Subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.
[0096] To facilitate subsequent understanding and explanation, the present embodiment of the present application can select a terminal device from the terminal device cluster shown in Figure 1 for example, taking terminal device 101a as an example. When responding to the completion operation of a business transaction for a business account at a second moment, terminal device 101a can determine a verification transaction time range for verifying the legitimacy of the business transaction, determine the verification transaction time range and the business transaction as transaction data, sign the transaction data using the business private key of the business account to obtain a data signature, and transmit the transaction data carrying the data signature to the business server 100. The present embodiment of the present application does not limit the specific content of the business transaction, including but not limited to business transactions of banking institutions, business transactions of financial institutions, etc. At a first moment later than the second moment, the business server 100 obtains the transaction data sent by terminal device 101a, and the business server 100 synchronously sends the transaction data carrying the data signature to the core account layer. It is understandable that the moment when terminal device 101a determines the verification transaction time range is very close to the moment when the data signature is generated, so the present embodiment of the present application refers to both very close moments as the second moment. Similarly, the moment when the business server 100 obtains the transaction data sent by the terminal device 101a is very close to the moment when the business server 100 sends the obtained transaction data to the core account database, so the embodiment of the present application refers to the two very close moments as the first moment.
[0097] Furthermore, the business server 100 can perform a signature verification process on the data signature in the core account layer to obtain a signature verification result. If the signature verification result is a successful signature verification result, the business transaction can be verified for legitimacy based on the first moment and the verification transaction time range to obtain a verification result. Further, if the verification result indicates that the business transaction is legitimate, the business server 100 associates the first moment and the transaction data carrying the data signature and stores them in the core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are used to send to the verification device (such as the verification device 102a in Figure 1), and the verification device is used to verify the legitimacy of the transaction data based on the data signature. Among them, the business account is provided by the business server 100. In the embodiment of the present application, the business account refers to a tool for managing digital resources, which can realize the resource transfer of digital resources in online or offline transactions. The embodiment of the present application does not limit the business account, and any business account with transaction function is acceptable.
[0098] It should be noted that the above-mentioned business server 100, terminal device 101a, terminal device 101b, ..., terminal device 101n, verification device 102a, verification device 102b, ..., verification device 102n can all be blockchain nodes in the blockchain network, and the data described in the full text (such as the first moment and transaction data) can be stored. The storage method can be that the blockchain node generates blocks based on the data and adds the blocks to the blockchain for storage.
[0099] Blockchain is a novel application model of computer technologies, integrating distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. It primarily organizes data in chronological order and encrypts it into a ledger, rendering it tamper-proof and forgery-proof. It also enables data verification, storage, and updates. A blockchain is essentially a decentralized database, where each node stores an identical blockchain. A blockchain network can categorize nodes into core nodes, data nodes, and light nodes. Core nodes, data nodes, and light nodes collectively constitute blockchain nodes. Core nodes are responsible for consensus across the entire blockchain network; in other words, they serve as consensus nodes within the blockchain network. The process for writing transaction data to the ledger in a blockchain network involves data nodes or light nodes obtaining the data to be uploaded and passing it around the network (in a relay-like manner) until a consensus node receives the data. The consensus node then packages the data into a block, performs consensus on the block, and writes the data to the ledger after consensus is complete. Here, the first moment and transaction data are taken as examples of data to be uploaded to the chain. After reaching a consensus on the data to be uploaded to the chain, the business server 100 (blockchain node) generates a block based on the data to be uploaded to the chain and stores the block in the blockchain network. As for reading the data that has been uploaded to the chain (such as the first moment and transaction data), the blockchain node can obtain the block containing the data that has been uploaded to the chain in the blockchain network, and further obtain the data that has been uploaded to the chain in the block.
[0100] It is understood that the methods provided in the embodiments of the present application can be executed by a computer device, including but not limited to a terminal device, a service server, or a verification device. The terminal device, the service server, and the verification device can be connected directly or indirectly via a wired or wireless connection, which is not limited in the embodiments of the present application.
[0101] The above system architecture can be applied to resource transfer query scenarios and resource transfer verification scenarios, as well as business scenarios such as account status query scenarios, account status identification scenarios, and account status analysis scenarios. Specific business scenarios will not be listed one by one here.
[0102] Further, please refer to Figure 2, which is a flow chart of a data processing method provided by an embodiment of the present application. The embodiment of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc. The data processing method can be executed by a business server (for example, the business server 100 shown in Figure 1 above), or by a terminal device (i.e., a business terminal, for example, the terminal device 101a shown in Figure 1 above), or by a verification device (for example, the verification device 102a shown in Figure 1 above), or interactively executed by at least two entities among a business server, a terminal device, and a verification device, without limitation here. For ease of understanding, the embodiment of the present application is illustrated by taking the method being executed by a business server as an example. As shown in Figure 2, the data processing method can at least include the following steps S101-S103.
[0103] Step S101: at a first moment, the transaction data initiated by the business account is sent to the core account layer; the transaction data includes the business transaction and the verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature.
[0104] Specifically, the embodiment of the present application does not describe the process of generating transaction data by a terminal device bound to a business account. Please refer to the description in the embodiment corresponding to Figure 5 or Figure 9 below.
[0105] In a business information system (such as a financial information system), there will be multi-level designs such as a business layer, an order layer, and a core account layer. Please refer to Figure 3, which is a schematic diagram of a data processing scenario provided by an embodiment of the present application. As shown in Figure 3, the business server 100 includes a business layer, a transaction layer, and a core account layer. Among them, the core account layer is located at the bottom module, which carries the real resource data of the business account. Each resource transfer record of the core account reflects the real resource changes of the business account. It can also be understood that the core account layer is mainly used to carry the real resource flow of the business account. The main key information of the core account database of the core account layer includes the business account, transaction amount, account balance, transaction time, transaction type (transfer out or transfer in, etc.), database signature, etc.
[0106] The embodiment of the present application is a solution based on the concept of zero trust. The concept of zero trust is mainly based on the assumption that the various modular units of the information system (such as the business layer, transaction layer, and core account layer in Figure 3) do not trust each other, and is used to design the system. In the present invention, the resource transfer of the core account layer does not rely on the trust of the layer above it. Therefore, when the business server 100 obtains the transaction data 30b with the data signature 30d sent by the terminal device 101a at the first moment, it will synchronously send the obtained data signature 30d and the transaction data 30b to the core account layer.
[0107] The embodiments of the present application do not limit the real-time nature of business transactions. They can be real-time business transactions. For example, the business transaction in transaction data 30b shown in FIG3 is a real-time business transaction. For example, business object 30a triggers selection control 303a. At 12:00 on February 2, 2023, a correct resource transfer password is entered. Terminal device 101a responds to the input operation for the resource transfer password and, upon verifying that the resource transfer password is correct, generates a real-time business transaction. The business transaction in the embodiments of the present application can also be a non-real-time business transaction. As shown in FIG3 , business object 30a triggers selection control 302a. In other words, business object 30a selects automatic renewal. Then, upon verifying that the resource transfer password is correct, terminal device 101a can generate a non-real-time business transaction. For example, 9:00 on March 2, 2023, is set as the completion time of the non-real-time business transaction, which is the second time described below. As can be seen from the above, the determination of the second time is not fixed and can be set according to the actual application scenario.
[0108] Referring again to Figure 3 , transaction data 30b includes the transaction verification time range, i.e., February 2, 2023, 12:02 PM - February 2, 2023, 12:02 PM, as shown in Figure 3 . It also includes the business transaction, i.e., the business account number (exemplified by aaaaaaaa in Figure 3 ) and the digital resource to be transferred (exemplified by 5 in Figure 3 ). It should be emphasized that the transaction verification time range refers to the time range used to verify the legitimacy of the business transaction, and is different from the time range displayed by terminal device 101a prompting business object 30a to enter the resource transfer password.
[0109] It can be understood that the interfaces and controls shown in Figure 3 are merely some reference forms of expression. In actual business scenarios, developers can make relevant designs based on product requirements. The embodiments of this application do not limit the specific forms of the interfaces and controls involved.
[0110] Step S102: In the core account layer, the data signature is verified to obtain a verification result. If the verification result is a successful verification result, the business transaction is verified for legitimacy based on the first moment and the verification transaction time range to obtain a verification result.
[0111] Specifically, in the core account database, the business public key of the business account is obtained, and the data signature is verified by the business public key to obtain a first digital summary; a second digital summary of the transaction data is generated, and the first digital summary and the second digital summary are compared to obtain a comparison result; if the comparison result indicates that the first digital summary and the second digital summary are the same, the successful verification result is determined as the verification result; the successful verification result is also used to indicate that the data signature is obtained by a business terminal bound to the business account, and the transaction data is signed by the business private key of the business account; if the comparison result indicates that the first digital summary and the second digital summary are different, the failed verification result is determined as the verification result.
[0112] Specifically, the relationship between the first moment and the verification transaction time range is identified; the earliest moment of the verification transaction time range is equal to the second moment when the business terminal bound to the business account responds to the completion operation for the business transaction; the latest moment of the verification transaction time range is later than the second moment; if the relationship between the first moment and the verification transaction time range is that the first moment is within the verification transaction time range, the verification legality result is determined as the verification result of the legality verification of the business transaction; the verification legality result is used to indicate that the business transaction is legal; if the relationship between the first moment and the verification transaction time range is that the first moment is later than the latest moment, the verification illegality result is determined as the verification result of the legality verification of the business transaction; the verification illegality result is used to indicate that the business transaction is not legal.
[0113] It is understandable that if the transaction data received by the core account layer does not carry a data signature, the core account layer can determine that the transaction data is illegal transaction data, and then not only execute this step and subsequent steps. If the transaction data received by the core account layer carries a data signature, please refer to Figure 4, which is a second schematic diagram of a data processing scenario provided by an embodiment of the present application. As shown in Figure 4, the business server 100 obtains the business public key 40b stored in association with the business account in the core account database 40a corresponding to the core account layer. Figure 4 uses the business account aaaaaaaa as an example.
[0114] Furthermore, the business server 100 can verify the data signature 30d carried by the transaction data 30b at the core account layer using the business public key 40b to obtain a first digital digest. Simultaneously, the business server 100 can generate a second digital digest of the transaction data 30b at the core account layer. It is understood that both the first and second digital digests are hash values. The business server 100 compares the first and second digital digests to obtain a comparison result. If the comparison result indicates that the first and second digital digests are identical, a successful verification result can be determined as the verification result. It is understood that a successful verification result can indicate that the data signature 30d was obtained by a business terminal (e.g., terminal device 101a in FIG. 3 ) bound to the business account, using the business account's business private key (e.g., business private key 30c in FIG. 3 ) to sign the transaction data 30b. The business private key and the business public key are a pair of asymmetric keys. The business private key is not publicly disclosed, but is stored and applied locally by the business terminal, while the business public key is publicly disclosed. If the comparison result indicates that the first digital digest is different from the second digital digest, the service server 100 may determine the signature verification failure result as the signature verification result. The signature verification failure result may indicate that the transaction data 30b is illegal transaction data, so there is no need to execute subsequent processes and the transaction is stopped.
[0115] Furthermore, if the verification result of data signature 30d is a successful verification result, the business server 100 identifies the relationship between the first moment and the verification transaction time range, wherein the earliest moment of the verification transaction time range is equal to the second moment when the business terminal bound to the business account responds to the completion operation for the business transaction, and the latest moment of the verification transaction time range is later than the second moment. According to FIG. 3 and the description of step S101, this embodiment of the present application uses 2023.2.2 12:00 as an example of the second moment. The duration of the verification transaction time range can be set according to the needs of the actual application scenario. This embodiment of the present application does not limit this. However, to ensure the security of transaction data, it should not be too long. This embodiment of the present application sets the duration of the verification transaction time range to 2 minutes, that is, the verification transaction time range is 2023.2.2 12:00-2023.2.2 12:02.
[0116] Furthermore, if the relationship between the first moment and the verification transaction time range is that the first moment is within the verification transaction time range, the business server 100 can determine the legal verification result as the verification result of the business transaction; the legal verification result is used to indicate that the business transaction is legal; for example, if the first moment is 2023.2.2 12:00:05, it is obvious that the first moment is within the verification transaction time range shown in Figure 4. If the relationship between the first moment and the verification transaction time range is that the first moment is later than the latest moment, the business server 100 can determine the illegal verification result as the verification result of the business transaction; the illegal verification result is used to indicate that the business transaction is not legal. For example, if the first moment is 2023.2.2 12:05, it is obvious that the first moment is later than the latest moment of the verification transaction time range shown in Figure 4, that is, 2023.2.2 12:02.
[0117] In step S103, if the verification result indicates that the business transaction is legitimate, the transaction data at the first moment and carrying the data signature are associated and stored in the core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are both used to be sent to the verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature.
[0118] Specifically, in the core account database corresponding to the core account layer, the current digital resources of the business account are obtained; the resource transfer value in the business transaction is obtained, and if the current digital resources contain the digital resources to be transferred corresponding to the resource transfer value, the digital resources to be transferred in the current digital resources are subjected to resource transfer processing, and the current digital resources after the resource transfer processing are determined as updated digital resources; the first moment, the updated digital resources, and the transaction data carrying the data signature are associated and stored in the core account database.
[0119] It is understandable that if the verification result indicates that the business transaction is not legitimate, the business server does not perform this step. If the verification result indicates that the business transaction is legitimate, then the current digital resources of the business account are obtained from the core account database, and the resource transfer value in the business transaction is obtained, such as the digital resource to be transferred 5 shown in Figure 4. Further, the business server compares the resource transfer value and the current digital resource. If the current digital resource is equal to or greater than the resource transfer value, for example, the resource transfer value is 5 and the current digital resource is 10, then the business transaction is executed in the core account layer, that is, the digital resource to be transferred in the current data resource is processed for resource transfer, and the updated digital resource is obtained, such as (10-5) in the example.
[0120] Furthermore, the business server associates and stores the first moment, the updated digital resource, and the transaction data with the data signature in the core account database. In order to achieve the beneficial effects of this application, three new fields are added to the design of the core account database, namely the transaction authorization start time (i.e., the second moment), the transaction authorization end time (i.e., the latest moment in the transaction time range), and the data signature. Please refer to Table 1, which is a schematic table of key fields included in an optimized core account database provided by an embodiment of this application. Specifically, as shown in Table 1:
[0121] Table 1
[0122] In this embodiment of the present application, the transaction types in Table 1 include, but are not limited to, deductions and transfers; the transaction amount refers to the resource transfer value in a business transaction; the account balance refers to the update of digital resources; the transaction entry time refers to the first moment; the transaction authorization start time refers to the second moment; and the transaction authorization end time refers to the sum of the second moment and the authorization duration, i.e., the latest moment in the transaction time range. It is understood that the newly added data signature field is unique to prevent duplicate data signatures in the core account database.
[0123] The embodiment of the present application does not describe the process of the verification device verifying the legitimacy of the transaction data. Please refer to the description in the embodiment corresponding to Figure 7 below.
[0124] This technical solution sinks the authorization behavior of the business object to the core account layer through cryptographic means. The resource deduction (i.e., the transfer of digital resources) at the core account layer only recognizes the authorization of the business object and does not need to trust the account instructions issued by the transaction layer of the business organization (i.e., the business server). Moreover, the core account layer cannot forge digital resource transfer transaction records without the authorization of the business object, thereby avoiding the defects in the system within the organization and the loss of business account resources caused by the deliberate evil of illegal elements. In terms of post-audit, each business transaction of digital resource transfer of the business account has a one-to-one corresponding data signature of the business object authorization in the core account database, thereby shortening the evidence link and improving the audit efficiency and credibility.
[0125] In an embodiment of the present application, at a first moment, a business server sends transaction data initiated by a business account to a core account layer; the transaction data includes a business transaction and a verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature; at the core account layer, the business server can verify the data signature to obtain a verification result. If the verification result is a successful verification result, the business transaction is verified for legitimacy based on the first moment and the verification transaction time range to obtain a verification result; further, if the verification result indicates that the business transaction is legitimate, the business server associates the first moment and the transaction data with the data signature and stores them in a core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are both used to be sent to a verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature. As can be seen from the above, the business server sends the transaction data with the data signature directly to the core account layer, and at the core account layer, verifies the legitimacy of the business transaction based on the data signature and the verification transaction time range. Therefore, in a scenario where the business account does not authorize the business account, the core account layer will not recognize the business transaction and will not execute the business transaction, thereby improving the security of the business account. In addition, through data signatures, the verification device can verify the legitimacy of transaction data, thereby improving the verification efficiency and accuracy of transaction data.
[0126] Please refer to Figure 5, which is a second flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a business server (for example, the business server 100 shown in Figure 1 above), or by a business terminal (for example, the terminal device 101a shown in Figure 1 above), or by a verification device (for example, the verification device 102a shown in Figure 1 above), or interactively executed by at least two entities among a business server, a terminal device, and a verification device, without limitation here. For ease of understanding, the embodiment of the present application is illustrated by taking the interactive execution of the method by a business server and a terminal device as an example. As shown in Figure 5, the data processing method can at least include the following steps S201-S206.
[0127] Step S201: at a third moment earlier than the first moment, obtain a certificate application request initiated by a business terminal; the certificate application request includes a business account and a business public key of the business account; the business public key is generated by the business terminal when applying for a business account.
[0128] Specifically, in an embodiment of the present application, when applying for a business account, the application client installed on the business terminal (i.e., the terminal device) will synchronously generate a pair of asymmetric keys, which include a business private key and a business public key. The embodiment of the present application does not limit the cryptographic algorithm of the asymmetric key, and any cryptographic algorithm that can generate a public-private key pair can be used.
[0129] Furthermore, the business terminal (i.e., terminal device) generates a certificate application request including a business account and a business public key, and sends the certificate application request to the business server before generating a business transaction. It can be understood that the third moment when the business server receives the certificate application request is earlier than the first moment.
[0130] Step S202: Generate a business certificate for the business account according to the certificate application request, and return the business certificate to the business terminal; the business certificate is used to indicate that the business terminal has successfully applied for the business account.
[0131] Specifically, the business server verifies the certificate application request. If the verification certificate application request is a legal request, a business certificate is generated for the business account. The business certificate can indicate that the business terminal has successfully applied for the business account. If the verification certificate application request is an illegal request, the business server refuses to generate a business certificate for the business account, and then refuses to create the business account for the business object, that is, the business account of the business terminal is an illegal business account.
[0132] From the above, it can be seen that in this application, the public and private key pair generated by the client is a necessary condition for opening a business account, and the business public key is sunk to the core account layer of the business information system, that is, it is stored in the core account database.
[0133] The embodiment of the present application is an example of a business server issuing a business certificate to a terminal device. In actual application, the terminal device can also send a certificate application request to a credible certificate authority. It can be understood that the process of the certificate authority issuing a business certificate to the terminal device based on the certificate application request is the same as the above process, so it will not be repeated here.
[0134] Step S203: Associate the business public key and the business account and store them in the core account database.
[0135] Specifically, please refer to Figure 6 for the above steps, which is an interactive schematic diagram 1 of a data processing method provided in an embodiment of the present application. As shown in Figure 6, the data processing method may include at least the following steps A to F.
[0136] Step A: When applying for a business account, the terminal device will generate an asymmetric key pair synchronously, and the business private key will be kept secret.
[0137] Step B: The terminal device generates a certificate application request including the business public key.
[0138] Step C: The terminal device sends a certificate application request to the service server.
[0139] Step D: The business server issues a business certificate to the business account according to the certificate application request.
[0140] Step E: The business server associates and stores the business account and business public key.
[0141] Step F: The service server returns the service certificate to the terminal device.
[0142] The execution order of step F may be prior to the execution order of step E, the execution order of step F may be later than the execution order of step E, or the execution order of step F may be synchronized with the execution order of step E.
[0143] Step S204: at the first moment, the transaction data initiated by the business account is sent to the core account layer; the transaction data includes the business transaction and the verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature.
[0144] In step S205, at the core account layer, the data signature is verified to obtain a verification result. If the verification result is a successful verification result, the business transaction is verified for legitimacy based on the first moment and the verification transaction time range to obtain a verification result.
[0145] In step S206, if the verification result indicates that the business transaction is legitimate, the transaction data at the first moment and carrying the data signature are associated and stored in the core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are both used to be sent to the verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature.
[0146] Specifically, the key to this step is that within the core account database, each transaction data item is signed by the authorized business object. The business private key corresponding to this signature is held confidentially by the business object, making it impossible to forge this signature even within the business system. Furthermore, the transaction data in this embodiment includes a verification transaction timeframe for verifying the legitimacy of the transaction data. This prevents changes in business transactions from occurring within a timeframe not anticipated by the business object, thereby enhancing the security of the business account.
[0147] For the specific implementation process of steps S204 to S206 , please refer to steps S101 to S103 in the embodiment corresponding to FIG. 2 above, which will not be described in detail here.
[0148] In an embodiment of the present application, at a first moment, a business server sends transaction data initiated by a business account to a core account layer; the transaction data includes a business transaction and a verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature; at the core account layer, the business server can verify the data signature to obtain a verification result. If the verification result is a successful verification result, the business transaction is verified for legitimacy based on the first moment and the verification transaction time range to obtain a verification result; further, if the verification result indicates that the business transaction is legitimate, the business server associates the first moment and the transaction data with the data signature and stores them in a core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are both used to be sent to a verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature. As can be seen from the above, the business server sends the transaction data with the data signature directly to the core account layer, and at the core account layer, verifies the legitimacy of the business transaction based on the data signature and the verification transaction time range. Therefore, in a scenario where the business account does not authorize the business account, the core account layer will not recognize the business transaction and will not execute the business transaction, thereby improving the security of the business account. In addition, through data signatures, the verification device can verify the legitimacy of transaction data, thereby improving the verification efficiency and accuracy of transaction data.
[0149] Further, please refer to Figure 7, which is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method can be executed by a business server (for example, the business server 100 shown in Figure 1 above), or by a terminal device (i.e., a business terminal, for example, the terminal device 101a shown in Figure 1 above), or by a verification device (for example, the verification device 102a shown in Figure 1 above), or interactively executed by at least two entities among a business server, a terminal device, and a verification device, without limitation here. For ease of understanding, the embodiment of the present application is described by taking the method being executed by a verification device as an example. As shown in Figure 7, the data processing method can at least include the following steps S301-S304.
[0150] Step S301: Obtain a transaction verification request for a business account, and generate a transaction acquisition request for the business account based on the transaction verification request.
[0151] Specifically, the embodiments of the present application do not limit the device that initiates the transaction verification request. The transaction verification request may be initiated by a business terminal bound to a business account. For example, when a business object has doubts about a business transaction, the business terminal may send a transaction verification request for the business account to the verification device. The transaction verification request may also be initiated by the verification object. For example, when the verification object periodically queries the business data stored in the core account database of the business server, the verification device may generate a transaction verification request for the business account.
[0152] Furthermore, the verification device generates a transaction acquisition request for the business account based on the transaction verification request.
[0153] In step S302, a transaction acquisition request is sent to the business server, so that the business server obtains the data to be verified of the business account from the core account database corresponding to the core account layer according to the transaction acquisition request; the data to be verified includes transaction data initiated by the business account; the transaction data includes the business transaction and the verification transaction time range corresponding to the business transaction; the verification transaction time range is used to instruct the business server to verify the legitimacy of the business transaction.
[0154] Specifically, the embodiments of the present application do not limit the number of data to be verified, and can be one or more, which can be determined according to the actual application scenario. For example, taking the business account as the dimension, the business server can determine all transaction data associated with the business account in the core account database as the data to be verified. For another example, taking the transaction entry time (i.e., the first moment) as the dimension, the business server can determine the transaction data at the first moment in the core account database as the data to be verified.
[0155] Step S303: obtaining the data to be verified returned by the business server. If the data to be verified does not include the data signature of the transaction data, the transaction data is determined to be illegal transaction data.
[0156] Specifically, during a post-audit, the verification device only needs to check the transaction data in the core account database to determine the legality of the transfer of digital resources from the business account. When the digital resource transfer transaction record does not contain a data signature authorized by the business object or the data signature verification fails, the verification device can determine that the transaction is not authorized by the business object.
[0157] Step S304: If the data to be verified includes a data signature of the transaction data, the legitimacy of the transaction data is verified based on the data signature.
[0158] Specifically, a first business public key of the business account and a second business public key are obtained from the data to be verified; the second business public key refers to a business public key provided by a business terminal bound to the business account, or a business public key obtained from the blockchain and having a binding relationship with the business account; the first business public key and the second business public key are compared to obtain a comparison result; if the comparison result indicates that the first business public key and the second business public key are different, it is determined that the transaction data is illegal transaction data; if the comparison result indicates that the first business public key and the second business public key are the same, the transaction signature is verified according to the first business public key to obtain a verification result; if the verification result is a verification failure result, it is determined that the transaction data is illegal transaction data; if the verification result is a verification success result, it is determined that the transaction data is legal transaction data.
[0159] It is understood that the first business public key is equivalent to the business public key in the embodiment corresponding to Figure 2 above, that is, the business public key associated with the business account and stored in the core account database. Therefore, the verification device regards the first business public key as a public key to be verified. The second business public key can be provided by the business device (i.e., the terminal device) bound to the business account, or it can be obtained from the blockchain network when the terminal device stores the legitimate business public key generated when applying for the business account in the blockchain network.
[0160] Please refer to Figure 8 for the above process, which is a fourth flow chart of a data processing method provided by an embodiment of the present application. As shown in Figure 8, the data processing method includes the following steps.
[0161] Step S31: Obtain data to be verified for the business account from the business server; the data to be verified includes transaction data.
[0162] Step S32: Whether the transaction data has a digital signature. The verification device verifies whether the transaction data has a digital signature. If the transaction data carries a digital signature, the verification device executes step S33. If the transaction data does not carry a digital signature, the verification device executes step S38.
[0163] Step S33: Obtain the first business public key of the business account from the data to be verified.
[0164] Step S34: Obtain the second business public key of the business account.
[0165] Step S35: The verification device checks whether the first business public key and the second business public key are the same. If they are the same, the verification device executes step S36. If they are different, the verification device executes step S38.
[0166] Step S36: Check if the digital signature is verified. The verification device verifies the digital signature and obtains a verification result. If the verification result is a successful result, step S37 is executed. If the verification result is a failed result, the verification device executes step S38.
[0167] Step S37: Determine whether the transaction data is legal transaction data.
[0168] Step S38: Determine whether the transaction data is illegal transaction data.
[0169] To strengthen the security of business accounts in business information systems and the security of digital resources within business accounts, this application proposes a zero-trust-based business account design method. This method optimizes the design of traditional business accounts from three aspects: account application, transaction entry, and post-audit. It combines the authorization of digital resource transfers from business objects with cryptographic methods, thereby avoiding the problem of illegal transfers of digital resources from business accounts that may occur within business organizations. In addition, through data signatures, verification devices can verify the legitimacy of transaction data, thereby improving the efficiency and accuracy of transaction data verification.
[0170] Further, please refer to Figure 9, which is a flowchart diagram of a data processing method provided by an embodiment of the present application. The method can be executed by a business server (for example, the business server 100 shown in Figure 1 above), or by a business terminal (for example, the terminal device 101a shown in Figure 1 above), or by a verification device (for example, the verification device 102a shown in Figure 1 above), or interactively executed by at least two entities among a business server, a terminal device, and a verification device, without limitation here. For ease of understanding, the embodiment of the present application is illustrated by taking the method being executed by a terminal device as an example. As shown in Figure 9, the data processing method can at least include the following steps S401-S403.
[0171] Step S401: In response to a completion operation for a business transaction in a business account, a verification transaction time range for verifying the legitimacy of the business transaction is determined.
[0172] Specifically, the second moment of the response to the completion operation of the business transaction is determined as the earliest moment; the verification transaction time threshold is obtained, the earliest moment and the verification transaction time threshold are summed to obtain the latest moment; and a verification transaction time range including the earliest moment and the latest moment is generated.
[0173] The transaction verification time threshold can be adjusted according to the needs of the actual application scenario. FIG3 above shows an example of a 2-minute transaction verification time threshold.
[0174] Step S402, generating a digital signature for transaction data; the transaction data includes business transactions and verification of transaction time range.
[0175] Specifically, when applying for a business account, a business private key and a business public key are generated; a certificate application request including the business account and the business public key is generated, and the certificate application request is sent to the business server, so that the business server generates a business certificate for the business account according to the certificate application request; the business certificate returned by the business server is obtained; the business certificate is used to indicate that the business terminal has successfully applied for the business account.
[0176] Specifically, transaction data including business transactions and verification of transaction time ranges is generated; a business private key is obtained, and the transaction data is signed using the business private key to obtain a data signature of the transaction data.
[0177] Referring again to Figure 3 , terminal device 101a generates transaction data 30b, including the business transaction (including the business account and the digital resources to be transferred) and a verification transaction time range. Terminal device 101a obtains a privately stored business private key 30c and signs transaction data 30b using business private key 30c, obtaining a digital signature 30d for transaction data 30b.
[0178] The key point of this step is that the asymmetric public-private key pair generated by the application client is a necessary condition for account opening, and the business public key of the application client must be sunk to the core account layer of the business information system.
[0179] In step S403, the transaction data carrying the data signature is sent to the business server through the business account, so that the business server sends the transaction data carrying the data signature to the core account layer at the first moment; the core account layer is used to verify the data signature and obtain a verification result; the verification result includes a successful verification result; the verification result is used to instruct the core account layer to verify the legitimacy of the business transaction based on the first moment and the verification transaction time range, and obtain a verification result; the verification result includes a verification legitimacy result; the verification legitimacy result is used to instruct the core account layer to associate the first moment and the transaction data carrying the data signature and store them in the core account database; the data signature and transaction data stored in the core account database are both used to be sent to the verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature.
[0180] Specifically, the key to this step is that within the core account database, each transaction data item is signed by the authorized business subject. Because the business private key is held confidentially by the business subject, this signature cannot be forged within the business information system. Furthermore, this application adds an authorized timeframe for transaction verification to the signed transaction data, preventing changes to business accounts from occurring within unexpected timeframes, thereby enhancing the security of both transaction data and business accounts.
[0181] Please refer to Figure 10 for the above process, which is a second interactive diagram of a data processing method provided by an embodiment of the present application. As shown in Figure 10, the data processing method includes the following steps.
[0182] Step S41: The terminal device responds to the completion operation for the business transaction and determines the verification transaction time range and the value of resources to be transferred.
[0183] Step S42: The terminal device signs the transaction data using the business private key to obtain a data signature.
[0184] Step S43: The terminal device sends the transaction data carrying the digital signature to the service server.
[0185] Step S44: The business server synchronously sends the transaction data with the digital signature to the core account layer at the first moment. The business server receives the transaction data with the digital signature sent by the terminal device at the first moment, and then synchronizes it to the core account layer.
[0186] Step S45: The business server verifies the digital signature and obtains a verification result. If the verification result is a failed result, the business server executes step S46; if the verification result is a successful result, the business server executes step S47.
[0187] Step S46: The business server determines that the transaction data is illegal transaction data.
[0188] Step S47: The service server identifies the relationship between the first moment and the verification transaction time range. If the first moment is within the verification transaction time range, the service server executes step S48; if the first moment is later than the latest moment in the verification transaction time range, the service server executes step S46.
[0189] Step S48: The business server determines that the transaction data is legal transaction data.
[0190] Step S49: The business server executes the business transaction, associates and stores the transaction data, the first moment, and updates the digital resources.
[0191] As can be seen above, the business server sends transaction data with a digital signature directly to the core account layer. The core account layer verifies the legitimacy of the business transaction through the digital signature and the transaction time range. Therefore, if the business account does not authorize the transaction, the core account layer will not recognize the transaction and will not execute it, thereby improving the security of the business account. Furthermore, the digital signature allows the verification device to verify the legitimacy of the transaction data, thereby improving the efficiency and accuracy of transaction data verification.
[0192] Further, please refer to Figure 11, which is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The above-mentioned data processing device 1 can be a computer program (including program code) running on a computer device, for example, the data processing device 1 is an application software; specifically, the data processing device 1 can run on a business server and can be used to execute the corresponding steps of the method provided in an embodiment of the present application. As shown in Figure 11, the data processing device 1 can include: a data sending module 11, a transaction verification module 12, and a first storage module 13.
[0193] The data sending module 11 is used to send the transaction data initiated by the business account to the core account layer at the first moment; the transaction data includes the business transaction and the verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature;
[0194] The transaction verification module 12 is used to verify the data signature at the core account layer and obtain a verification result. If the verification result is successful, the business transaction is verified to be legitimate based on the first moment and the verification transaction time range to obtain a verification result.
[0195] The first storage module 13 is used to associate and store the transaction data at the first moment and carrying the data signature in the core account database corresponding to the core account layer if the verification result indicates that the business transaction is legal; the data signature and transaction data stored in the core account database are both used to be sent to the verification device; the verification device is used to verify the legality of the transaction data based on the data signature.
[0196] The specific functional implementation of the data sending module 11, the transaction verification module 12 and the first storage module 13 can be found in steps S101 to S103 in the embodiment corresponding to FIG2 above, and will not be repeated here.
[0197] Referring again to FIG. 11 , the transaction verification module 12 may include: a relationship identification unit 121 , a first determination unit 122 , and a second determination unit 123 .
[0198] The relationship identification unit 121 is configured to identify a relationship between the first time and a verification transaction time range; the earliest time in the verification transaction time range is equal to the second time when the business terminal bound to the business account responds to a completion operation for the business transaction; and the latest time in the verification transaction time range is later than the second time.
[0199] A first determining unit 122 is configured to determine a legality verification result as a result of verifying the legality of the business transaction if the relationship between the first moment and the transaction verification time range is that the first moment is within the transaction verification time range; the legality verification result is used to indicate that the business transaction is legal;
[0200] The second determining unit 123 is configured to determine the illegal verification result as the verification result of the legality verification of the business transaction if the relationship between the first moment and the verification transaction time range is that the first moment is later than the latest moment; the illegal verification result is used to indicate that the business transaction is not legal.
[0201] The specific functional implementation of the relationship identification unit 121 , the first determination unit 122 and the second determination unit 123 can be found in step S102 in the embodiment corresponding to FIG. 2 , and will not be described in detail here.
[0202] Referring again to FIG. 11 , the first storage module 13 may include a first acquiring unit 131 , a second acquiring unit 132 , and a data storage unit 133 .
[0203] The first acquisition unit 131 is configured to acquire the current digital resources of the business account from the core account database corresponding to the core account layer;
[0204] The second acquiring unit 132 is configured to acquire a resource transfer value in the business transaction, and if the current digital resource includes a digital resource to be transferred corresponding to the resource transfer value, perform resource transfer processing on the digital resource to be transferred in the current digital resource, and determine the current digital resource after the resource transfer processing as the updated digital resource;
[0205] The data storage unit 133 is used to associate and store the first moment, the updated digital resource, and the transaction data carrying the data signature in the core account database.
[0206] The specific functional implementation of the first acquisition unit 131 , the second acquisition unit 132 and the data storage unit 133 can be found in step S103 in the embodiment corresponding to FIG. 2 , and will not be described in detail here.
[0207] Referring again to FIG. 11 , the transaction verification module 12 may include: a third obtaining unit 124 , a digest generating unit 125 , a third determining unit 126 , and a fourth determining unit 127 .
[0208] The third obtaining unit 124 is configured to obtain a business public key of the business account from the core account database, and verify the data signature using the business public key to obtain a first digital digest;
[0209] A summary generation unit 125 is configured to generate a second digital summary of the transaction data, and compare the first digital summary with the second digital summary to obtain a comparison result;
[0210] The third determining unit 126 is configured to determine a successful signature verification result as the signature verification result if the comparison result indicates that the first digital digest and the second digital digest are identical. The successful signature verification result is also configured to indicate that the digital signature was obtained by a business terminal associated with the business account using the business private key of the business account to sign the transaction data.
[0211] The fourth determining unit 127 is configured to determine a signature verification failure result as the signature verification result if the comparison result indicates that the first digital digest is different from the second digital digest.
[0212] The specific functional implementation of the third obtaining unit 124 , the summary generating unit 125 , the third determining unit 126 and the fourth determining unit 127 can be found in step S102 in the embodiment corresponding to FIG. 2 , and will not be described in detail here.
[0213] Referring again to FIG. 11 , the data processing device 1 may further include: a request obtaining module 14 , a certificate generating module 15 , and a second storage module 16 .
[0214] The request acquisition module 14 is configured to acquire, at a third time earlier than the first time, a certificate application request initiated by the service terminal; the certificate application request includes a service account and a service public key of the service account; the service public key is generated by the service terminal when applying for the service account;
[0215] The certificate generation module 15 is used to generate a business certificate for the business account according to the certificate application request and return the business certificate to the business terminal; the business certificate is used to indicate that the business terminal has successfully applied for the business account;
[0216] The second storage module 16 is configured to associate the business public key with the business account and store it in the core account database.
[0217] The specific functional implementation of the request acquisition module 14, the certificate generation module 15 and the second storage module 16 can refer to steps S201 to S203 in the embodiment corresponding to FIG5 above, which will not be repeated here.
[0218] In an embodiment of the present application, at a first moment, a business server sends transaction data initiated by a business account to a core account layer; the transaction data includes a business transaction and a verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature; at the core account layer, the business server can verify the data signature to obtain a verification result. If the verification result is a successful verification result, the business transaction is verified for legitimacy based on the first moment and the verification transaction time range to obtain a verification result; further, if the verification result indicates that the business transaction is legitimate, the business server associates the first moment and the transaction data with the data signature and stores them in a core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are both used to be sent to a verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature. As can be seen from the above, the business server sends the transaction data with the data signature directly to the core account layer, and at the core account layer, verifies the legitimacy of the business transaction based on the data signature and the verification transaction time range. Therefore, in a scenario where the business account does not authorize the business account, the core account layer will not recognize the business transaction and will not execute the business transaction, thereby improving the security of the business account. In addition, through data signatures, the verification device can verify the legitimacy of transaction data, thereby improving the verification efficiency and accuracy of transaction data.
[0219] Further, please refer to Figure 12, which is a second structural diagram of a data processing device provided in an embodiment of the present application. The above-mentioned data processing device 2 can be a computer program (including program code) running in a computer device, for example, the data processing device 2 is an application software; specifically, the data processing device 2 can run on a verification device and can be used to execute the corresponding steps of the method provided in an embodiment of the present application. As shown in Figure 12, the data processing device 2 may include: a request generation module 21, a request sending module 22, a data determination module 23, and a data verification module 24.
[0220] The request generation module 21 is used to obtain a transaction verification request for the business account and generate a transaction acquisition request for the business account based on the transaction verification request;
[0221] The request sending module 22 is configured to send a transaction acquisition request to the business server, so that the business server obtains the business account's data to be verified from the core account database corresponding to the core account layer based on the transaction acquisition request; the data to be verified includes transaction data initiated by the business account; the transaction data includes the business transaction and the verification transaction time range corresponding to the business transaction; the verification transaction time range is used to instruct the business server to verify the legitimacy of the business transaction;
[0222] The data determination module 23 is used to obtain the data to be verified returned by the business server, and if the data to be verified does not include the data signature of the transaction data, determine that the transaction data is illegal transaction data;
[0223] The data verification module 24 is configured to verify the legitimacy of the transaction data based on the data signature if the data to be verified includes the data signature of the transaction data.
[0224] Among them, the specific functional implementation of the request generation module 21, the request sending module 22, the data determination module 23 and the data verification module 24 can be found in steps S301 to S304 in the corresponding embodiment of Figure 7 above, and will not be repeated here.
[0225] 12 again, the data verification module 24 may include: a public key acquisition unit 241 , a public key comparison unit 242 , a first determination unit 243 , a signature verification unit 244 , a second determination unit 245 , and a third determination unit 246 .
[0226] The public key acquisition unit 241 is configured to acquire a first business public key and a second business public key of the business account from the data to be verified; the second business public key is a business public key provided by a business terminal bound to the business account, or a business public key obtained from the blockchain and bound to the business account;
[0227] The public key comparison unit 242 is used to compare the first service public key with the second service public key to obtain a comparison result;
[0228] a first determining unit 243 configured to determine that the transaction data is illegal transaction data if the comparison result indicates that the first business public key is different from the second business public key;
[0229] The signature verification unit 244 is configured to verify the transaction signature based on the first business public key to obtain a verification result if the comparison result indicates that the first business public key and the second business public key are the same;
[0230] A second determining unit 245 is configured to determine that the transaction data is illegal transaction data if the signature verification result is a signature verification failure result;
[0231] The third determining unit 246 is configured to determine that the transaction data is legal transaction data if the signature verification result is a successful signature verification result.
[0232] Among them, the specific functional implementation methods of the public key acquisition unit 241, the public key comparison unit 242, the first determination unit 243, the signature verification unit 244, the second determination unit 245 and the third determination unit 246 can be found in step S304 in the corresponding embodiment of Figure 7 above, and will not be repeated here.
[0233] In an embodiment of the present application, at a first moment, a business server sends transaction data initiated by a business account to a core account layer; the transaction data includes a business transaction and a verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature; at the core account layer, the business server can verify the data signature to obtain a verification result. If the verification result is a successful verification result, the business transaction is verified for legitimacy based on the first moment and the verification transaction time range to obtain a verification result; further, if the verification result indicates that the business transaction is legitimate, the business server associates the first moment and the transaction data with the data signature and stores them in a core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are both used to be sent to a verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature. As can be seen from the above, the business server sends the transaction data with the data signature directly to the core account layer, and at the core account layer, verifies the legitimacy of the business transaction based on the data signature and the verification transaction time range. Therefore, in a scenario where the business account does not authorize the business account, the core account layer will not recognize the business transaction and will not execute the business transaction, thereby improving the security of the business account. In addition, through data signatures, the verification device can verify the legitimacy of transaction data, thereby improving the verification efficiency and accuracy of transaction data.
[0234] Further, please refer to Figure 13, which is a third structural diagram of a data processing device provided in an embodiment of the present application. The above-mentioned data processing device 3 can be a computer program (including program code) running on a computer device, for example, the data processing device 3 is an application software; specifically, the data processing device 3 can run on a service terminal and can be used to execute the corresponding steps of the method provided in the embodiment of the present application. As shown in Figure 13, the data processing device 3 can include: a time determination module 31, a first generation module 32, and a first sending module 33.
[0235] A time determination module 31 is configured to determine, in response to a completion operation for a business transaction in a business account, a verification transaction time range for verifying the legitimacy of the business transaction;
[0236] A first generating module 32 is used to generate a digital signature for transaction data; the transaction data includes a business transaction and a verification transaction time range;
[0237] The first sending module 33 is used to send the transaction data carrying the data signature to the business server through the business account, so that the business server sends the transaction data carrying the data signature to the core account layer at the first moment; the core account layer is used to verify the data signature and obtain the verification result; the verification result includes the success result; the verification result is used to instruct the core account layer to verify the legitimacy of the business transaction based on the first moment and the verification transaction time range, and obtain the verification result; the verification result includes the legality verification result; the legality verification result is used to instruct the core account layer to associate the first moment and the transaction data carrying the data signature and store them in the core account database; the data signature and transaction data stored in the core account database are both used to be sent to the verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature.
[0238] The specific functional implementation of the time determination module 31 , the first generation module 32 and the first sending module 33 can be found in steps S401 to S403 in the embodiment corresponding to FIG9 , which will not be described in detail here.
[0239] Referring again to FIG. 13 , the time determination module 31 may include: a first determination unit 311 , a first acquisition unit 312 , and a first generation unit 313 .
[0240] A first determining unit 311 is configured to determine the second time in response to the completion operation for the business transaction as the earliest time;
[0241] The first acquiring unit 312 is configured to acquire a verification transaction time threshold, and to obtain a latest time by summing the earliest time and the verification transaction time threshold;
[0242] The first generating unit 313 is configured to generate a verification transaction time range including an earliest time and a latest time.
[0243] The specific functional implementation of the first determining unit 311 , the first acquiring unit 312 and the first generating unit 313 can be found in step S401 in the embodiment corresponding to FIG. 9 , which will not be described in detail here.
[0244] Referring again to FIG. 13 , the data processing device 3 may further include: a second generating module 34 , a second sending module 35 , and a certificate obtaining module 36 .
[0245] The second generating module 34 is used to generate a business private key and a business public key when applying for a business account;
[0246] The second sending module 35 is used to generate a certificate application request including a business account and a business public key, and send the certificate application request to the business server, so that the business server generates a business certificate for the business account according to the certificate application request;
[0247] The certificate acquisition module 36 is used to obtain the business certificate returned by the business server; the business certificate is used to indicate that the business terminal has successfully applied for a business account;
[0248] The first generating module 32 may include: a second generating unit 321 and a second acquiring unit 322 .
[0249] The second generating unit 321 is used to generate transaction data including business transactions and verify the transaction time range;
[0250] The second obtaining unit 322 is used to obtain a business private key, and use the business private key to sign the transaction data to obtain a data signature of the transaction data.
[0251] Among them, the specific functional implementation of the second generation module 34, the second sending module 35, the second generation unit 321 of the certificate acquisition module 36 and the second acquisition unit 322 can be found in step S402 of the embodiment corresponding to Figure 9 above, and will not be repeated here.
[0252] In an embodiment of the present application, at a first moment, a business server sends transaction data initiated by a business account to a core account layer; the transaction data includes a business transaction and a verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature; at the core account layer, the business server can verify the data signature to obtain a verification result. If the verification result is a successful verification result, the business transaction is verified for legitimacy based on the first moment and the verification transaction time range to obtain a verification result; further, if the verification result indicates that the business transaction is legitimate, the business server associates the first moment and the transaction data with the data signature and stores them in a core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are both used to be sent to a verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature. As can be seen from the above, the business server sends the transaction data with the data signature directly to the core account layer, and at the core account layer, verifies the legitimacy of the business transaction based on the data signature and the verification transaction time range. Therefore, in a scenario where the business account does not authorize the business account, the core account layer will not recognize the business transaction and will not execute the business transaction, thereby improving the security of the business account. In addition, through data signatures, the verification device can verify the legitimacy of transaction data, thereby improving the verification efficiency and accuracy of transaction data.
[0253] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0254] Further, please refer to Figure 14, which is a structural diagram of a computer device provided in an embodiment of the present application. As shown in Figure 14, the computer device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, in some embodiments, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As shown in Figure 14, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application.
[0255] In the computer device 1000 shown in FIG14 , the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an interface for user input; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
[0256] At the first moment, the transaction data initiated by the business account is sent to the core account layer; the transaction data includes the business transaction and the corresponding verification transaction time range of the business transaction, and the transaction data carries a data signature;
[0257] At the core account layer, the data signature is verified to obtain a verification result. If the verification result is successful, the legitimacy of the business transaction is verified based on the first moment and the verification transaction time range to obtain a verification result;
[0258] If the verification result indicates that the business transaction is legal, the transaction data at the first moment and carrying the data signature will be associated and stored in the core account database corresponding to the core account layer; the data signature and transaction data stored in the core account database are both used to be sent to the verification device; the verification device is used to verify the legality of the transaction data based on the data signature.
[0259] Alternatively, the processor 1001 may be configured to call a device control application stored in the memory 1005 to implement:
[0260] Obtain a transaction verification request for the business account, and generate a transaction acquisition request for the business account based on the transaction verification request;
[0261] Sending a transaction acquisition request to the business server, so that the business server obtains the business account's data to be verified from the core account database corresponding to the core account layer based on the transaction acquisition request; the data to be verified includes transaction data initiated by the business account; the transaction data includes the business transaction and the corresponding verification transaction time range; the verification transaction time range is used to instruct the business server to verify the legitimacy of the business transaction;
[0262] Obtain the data to be verified returned by the business server. If the data to be verified does not include the data signature of the transaction data, the transaction data is determined to be illegal transaction data;
[0263] If the data to be verified includes the data signature of the transaction data, the legitimacy of the transaction data is verified based on the data signature.
[0264] Alternatively, the processor 1001 may be configured to call a device control application stored in the memory 1005 to implement:
[0265] In response to a completion operation for a business transaction in a business account, determine a verification transaction time range for verifying the legitimacy of the business transaction;
[0266] Generate a digital signature for transaction data; transaction data includes business transactions and verification of transaction time ranges;
[0267] The transaction data carrying the data signature is sent to the business server through the business account, so that the business server sends the transaction data carrying the data signature to the core account layer at the first moment; the core account layer is used to verify the data signature and obtain the verification result; the verification result includes the success result; the verification result is used to instruct the core account layer to verify the legitimacy of the business transaction based on the first moment and the verification transaction time range to obtain the verification result; the verification result includes the legality verification result; the legality verification result is used to instruct the core account layer to associate the first moment and the transaction data carrying the data signature and store them in the core account database; the data signature and transaction data stored in the core account database are used to be sent to the verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature.
[0268] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the description of the data verification method or device in the above embodiments, which will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated here.
[0269] The present application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the data verification method or apparatus described in the preceding embodiments, which are not further described herein. Furthermore, the description of the beneficial effects of employing the same method is also not further described.
[0270] The computer-readable storage medium may be the data verification device provided in any of the aforementioned embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Furthermore, the computer-readable storage medium may also include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0271] The present application also provides a computer program product, comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, enabling the computer device to perform the data verification method or apparatus described in the preceding embodiments, which are not further detailed here. Furthermore, the beneficial effects of employing the same method are not further detailed here.
[0272] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or device comprising a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other step units inherent to these processes, methods, apparatuses, products, or devices.
[0273] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0274] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method, characterized in that: The method is executed by a service server, and comprises: At the first moment, the transaction data initiated by the business account is sent to the core account layer; the transaction data includes the business transaction and the verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature; In the core account layer, the data signature is verified to obtain a verification result. If the verification result is a successful verification result, the business transaction is verified for legitimacy according to the first moment and the verification transaction time range to obtain a verification result; If the verification result indicates that the business transaction is legal, the first moment and the transaction data carrying the data signature are associated and stored in the core account database corresponding to the core account layer; the data signature and the transaction data stored in the core account database are both used to be sent to the verification device; the verification device is used to verify the legality of the transaction data based on the data signature.
2. The method according to claim 1, characterized in that The performing of legitimacy verification on the business transaction according to the first moment and the verification transaction time range to obtain a verification result includes: Identify the relationship between the first time and the verification transaction time range; the earliest time of the verification transaction time range is equal to the second time when the business terminal bound to the business account responds to the completion operation for the business transaction; the latest time of the verification transaction time range is later than the second time; If the relationship between the first moment and the verification transaction time range is that the first moment is within the verification transaction time range, the verification legality result is determined as the verification result of the legality verification of the business transaction; the verification legality result is used to indicate that the business transaction is legal; If the relationship between the first moment and the verification transaction time range is that the first moment is later than the latest moment, the verification illegality result is determined as the verification result of the legality verification of the business transaction; the verification illegality result is used to indicate that the business transaction is not legal.
3. The method according to any one of claims 1 to 2, characterized in that: The storing the first moment and the transaction data carrying the data signature in association with each other in a core account database corresponding to the core account layer includes: In a core account database corresponding to the core account layer, obtaining the current digital resources of the business account; Obtaining a resource transfer value in the business transaction, and if the current digital resource includes a digital resource to be transferred corresponding to the resource transfer value, performing resource transfer processing on the digital resource to be transferred in the current digital resource, and determining the current digital resource after the resource transfer processing as an updated digital resource; The first moment, the updated digital resource, and the transaction data carrying the data signature are associated and stored in the core account database.
4. The method according to any one of claims 1 to 3, characterized in that: The verifying the digital signature to obtain a verification result includes: In the core account database, a business public key of the business account is obtained, and the data signature is verified by the business public key to obtain a first digital summary; generating a second digital summary of the transaction data, and comparing the first digital summary with the second digital summary to obtain a comparison result; If the comparison result indicates that the first digital summary is identical to the second digital summary, the successful signature verification result is determined as the successful signature verification result; the successful signature verification result is also used to indicate that the digital signature is obtained by a business terminal bound to the business account using the business private key of the business account to sign the transaction data; If the comparison result indicates that the first digital summary is different from the second digital summary, the signature verification failure result is determined as a signature verification failure. result.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: At a third time earlier than the first time, obtaining a certificate application request initiated by a business terminal; the certificate application request includes a business account and a business public key of the business account; the business public key is generated by the business terminal when applying for the business account; Generate a business certificate for the business account according to the certificate application request, and return the business certificate to the business terminal; the business certificate is used to indicate that the business terminal has successfully applied for the business account; The business public key and the business account are associated and stored in the core account database.
6. A data processing method, characterized in that: The method is performed by a verification device, and the method includes: Obtaining a transaction verification request for a business account, and generating a transaction acquisition request for the business account according to the transaction verification request; Sending the transaction acquisition request to the business server, so that the business server acquires the data to be verified of the business account from the core account database corresponding to the core account layer according to the transaction acquisition request; the data to be verified includes transaction data initiated by the business account; the transaction data includes a business transaction and a verification transaction time range corresponding to the business transaction; the verification transaction time range is used to instruct the business server to verify the legitimacy of the business transaction; Acquire the data to be verified returned by the business server, and if the data to be verified does not include the data signature of the transaction data, determine that the transaction data is illegal transaction data; If the data to be verified includes a data signature of the transaction data, the legitimacy of the transaction data is verified based on the data signature.
7. The method according to claim 6, characterized in that Verifying the legitimacy of the transaction data according to the data signature includes: Obtaining a first business public key of the business account from the data to be verified, and obtaining a second business public key; the second business public key refers to a business public key provided by a business terminal bound to the business account, or a business public key obtained from a blockchain and having a binding relationship with the business account; Comparing the first service public key with the second service public key to obtain a comparison result; If the comparison result indicates that the first business public key is different from the second business public key, determining that the transaction data is illegal transaction data; If the comparison result indicates that the first business public key is the same as the second business public key, the transaction signature is verified according to the first business public key to obtain a verification result; If the signature verification result is a signature verification failure result, the transaction data is determined to be illegal transaction data; If the signature verification result is a successful signature verification result, it is determined that the transaction data is legal transaction data.
8. A data processing method, characterized in that: The method is executed by a service terminal, and the method includes: In response to a completion operation for a business transaction in a business account, determine a verification transaction time range for verifying the legitimacy of the business transaction; Generate a data signature for transaction data; the transaction data includes the business transaction and the verification transaction time range; The transaction data carrying the data signature is sent to the business server through the business account, so that the business server sends the transaction data carrying the data signature to the core account layer at the first moment; the core account layer is used to verify the data signature and obtain a verification result; the verification result includes a successful verification result; the verification result is used to instruct the core account layer to verify the legitimacy of the business transaction according to the first moment and the verification transaction time range, and obtain a verification result; the verification result includes a verification legality result; the verification legality result is used to instruct the core account layer to send the first moment and the transaction data carrying the data signature to the core account layer. The signed transaction data is associated and stored in the core account database; the data signature and the transaction data stored in the core account database are both used to be sent to a verification device; the verification device is used to verify the legitimacy of the transaction data based on the data signature.
9. The method according to claim 8, characterized in that The determining of a verification transaction time range for verifying the legitimacy of the business transaction includes: determining a second time in response to a completion operation for the business transaction as the earliest time; Obtaining a verification transaction time threshold, summing the earliest time and the verification transaction time threshold to obtain a latest time; A verification transaction time range is generated that includes the earliest time and the latest time.
10. The method according to any one of claims 8 to 9, characterized in that: The method further comprises: When applying for the business account, generate a business private key and a business public key; Generate a certificate application request including the business account and the business public key, and send the certificate application request to the business server, so that the business server generates a business certificate for the business account according to the certificate application request; Obtaining the business certificate returned by the business server; the business certificate is used to indicate that the business terminal has successfully applied for the business account; The data signature of the generated transaction data includes: generating transaction data including the business transaction and the verification transaction time range; The business private key is obtained, and the transaction data is signed using the business private key to obtain a data signature for the transaction data.
11. A data processing device, characterized in that: The device is run on a service server and includes: A data sending module, used to send transaction data initiated by the business account to the core account layer at a first moment; the transaction data includes a business transaction and a verification transaction time range corresponding to the business transaction, and the transaction data carries a data signature; a transaction verification module, configured to verify the data signature in the core account layer to obtain a verification result, and if the verification result is a successful verification result, verify the legitimacy of the business transaction according to the first moment and the verification transaction time range to obtain a verification result; The first storage module is used to associate and store the first moment and the transaction data carrying the data signature in a core account database corresponding to the core account layer if the verification result indicates that the business transaction is legal; the data signature and the transaction data stored in the core account database are both used to be sent to a verification device; the verification device is used to verify the legality of the transaction data based on the data signature.
12. A data processing device, characterized in that: The device is operated on a verification device, and the device comprises: A request generation module, used to obtain a transaction verification request for a business account, and generate a transaction acquisition request for the business account according to the transaction verification request; a request sending module, configured to send the transaction acquisition request to the business server, so that the business server acquires the data to be verified of the business account from the core account database corresponding to the core account layer according to the transaction acquisition request; the data to be verified includes transaction data initiated by the business account; the transaction data includes a business transaction and a verification transaction time range corresponding to the business transaction; the verification transaction time range is used to instruct the business server to perform legality verification on the business transaction; a data determination module, configured to obtain the data to be verified returned by the business server, and determine that the transaction data is illegal transaction data if the data to be verified does not include a data signature of the transaction data; A data verification module is used to verify the data to be verified according to the data signature if the data to be verified includes the data signature of the transaction data. The legitimacy of the transaction data.
13. A data processing device, characterized in that: The device is run on a service terminal and includes: A time determination module, for responding to a completion operation for a business transaction in a business account, and determining a verification transaction time range for verifying the legitimacy of the business transaction; A first generating module, configured to generate a data signature for transaction data; the transaction data includes the business transaction and the verification transaction time range; The first sending module is used to send the transaction data carrying the data signature to the business server through the business account, so that the business server sends the transaction data carrying the data signature to the core account layer at the first moment; the core account layer is used to verify the data signature and obtain a verification result; the verification result includes a successful verification result; the verification result is used to instruct the core account layer to verify the legitimacy of the business transaction according to the first moment and the verification transaction time range, and obtain a verification result; the verification result includes a verification legality result; the verification legality result is used to instruct the core account layer to associate the first moment and the transaction data carrying the data signature and store them in the core account database; the data signature and the transaction data stored in the core account database are both used to be sent to a verification device; the verification device is used to verify the legitimacy of the transaction data according to the data signature.
14. A computer device, characterized in that: include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method described in any one of claims 1 to 10.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 10.
16. A computer program product, characterized in that The computer program product comprises a computer program, which is stored in a computer-readable storage medium. The computer program is suitable for being read and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Method, system and device for improving digital asset transaction safety
CN111161056A
Transaction storage and signature verification method based on centralized block chain type account book
CN111464319A
Digital signature and signature verification method, system and device
CN115439121A
System and method for verifying the no-later-than date-of-existence, data integrity, identity of the recorder, and timestamp of the recording for digital content
US20210135862A1
