Data processing method and device, storage medium and electronic equipment
By using the target hash function to calculate the hash value of contract data and match it in financial trading scenarios, the problem of contract data screening delay is solved and the transaction speed is improved.
Patent Information
- Application Number
- CN202411583377.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, the contract data screening process in financial transaction scenarios has a long delay, resulting in a decrease in user transaction speed.
By obtaining multiple contract data for financial transactions, the hash value of the contract data is calculated using the pre-acquisitioned target hash function, and matching the target hash value with the target hash list based on the hash value, determine the target contract data in the contract data.
Simplifies the data processing process, reduces processing delays, and improves user transaction speed.
Smart Images

Figure CN119722306A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing technology, and in particular, to a data processing method, device, storage medium and electronic device. Background Art
[0002] Financial market contracts are a financial instrument in the financial market, used to buy, sell, trade or settle financial assets under specific time and conditions.
[0003] In the trading scenario, the exchange will send all contract data to users in the form of multicast. During the receiving process, users need to filter the contract data subscribed by users from a large amount of contract data in order to process transactions. However, the current screening process has a long delay, which reduces the transaction speed of users. Summary of the invention
[0004] In view of this, embodiments of the present application provide a data processing method, device, storage medium, and electronic device to at least partially solve the above problems.
[0005] According to a first aspect of an embodiment of the present application, a data processing method is provided, comprising: obtaining multiple contract data for conducting financial transactions; including at least one target contract data of a target user in the multiple contract data; calculating the contract data according to a pre-acquired target hash function to obtain a hash value corresponding to each contract data; determining the target contract data in the contract data according to the contract data, the hash value and a pre-acquired target hash list, the target hash list including multiple target contract data and target hash values corresponding to the target contract data.
[0006] According to a second aspect of an embodiment of the present application, a data processing device is provided, comprising an acquisition module, a calculation module and a matching module, wherein the acquisition module is used to acquire multiple contract data for conducting financial transactions; the multiple contract data include at least one target contract data of a target user; the calculation module is used to calculate the contract data according to a pre-acquired target hash function to obtain a hash value corresponding to each contract data; wherein the hash value includes a target hash value corresponding to at least one target contract data, and at least one target hash value is different; the matching module is used to determine the target contract data in the contract data according to the contract data, the hash value and a pre-acquired target hash list, the target hash list including multiple target contract data and target hash values corresponding to the target contract data.
[0007] According to a third aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect is implemented.
[0008] According to the fourth aspect of an embodiment of the present application, there is provided an electronic device, including a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method described in the first aspect.
[0009] The embodiment of the present application provides a data processing method, device, storage medium and electronic device, wherein the data processing method includes: obtaining multiple contract data for financial transactions; the multiple contract data include at least one target contract data of the target user; calculating the contract data according to the pre-acquired target hash function to obtain the hash value corresponding to each contract data; determining the target contract data in the contract data according to the contract data, the hash value and the pre-acquired target hash list, the target hash list includes multiple target contract data and the target hash value corresponding to the target contract data. The present application calculates the contract data through the target hash function to obtain the hash value corresponding to each contract data, and then matches the hash value with the target hash value in the target hash list to determine the target contract data in the contract data. The processing process is simple, and the processing delay is reduced, thereby improving the transaction speed of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0011] Figure 1 A schematic diagram of an exemplary system for a data processing method applicable to an exemplary embodiment of the present application;
[0012] Figure 2 is a flowchart of a data processing method according to an exemplary embodiment of the present application;
[0013] Figure 3 is a structural block diagram of a data processing device according to an exemplary embodiment of the present application;
[0014] Figure 4 It is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0015] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0016] Before describing the data processing method of the embodiment of the present application, the application scenario of the data processing method is briefly described to facilitate understanding.
[0017] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of an exemplary system for a data processing method suitable for an exemplary embodiment of the present application.
[0018] An exemplary system of this embodiment may include a server, a communication network and multiple hosts. For example, in a financial transaction scenario, the server is the exchange party and the host is the user party. All contract data is sent to multiple users' hosts in the form of multicast through the exchange's server. Each user's host can be coupled to an acceleration card to assist the host in data processing through the acceleration card.
[0019] The host may include any suitable type of device. For example, in some embodiments, the host may include a mobile device, a tablet computer, a laptop computer, a desktop computer, and / or any other suitable type of device.
[0020] The communication network can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network can include any one or more of the following: the Internet, intranet, wide area network (Wide Area Network, WAN), local area network (Local Area Network, LAN), wireless network, digital subscriber line (Digital Subscriber Line, DSL) network, frame relay network, asynchronous transfer mode (Asynchronous Transfer Mode, ATM) network, virtual private network (Virtual Private Network, VPN) and / or any other suitable communication network. The main frame can be connected to the communication network by one or more communication links (for example, communication link), and the communication network can be linked to the server via one or more communication links (for example, communication link). The communication link can be any communication link suitable for transmitting data between the main frame and the server, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link or any suitable combination of such links.
[0021] The accelerator card can be a dedicated data processor DPU. DPU (Data Processing Unit) is a new generation of computing chip that is data-centric, I / O intensive, and uses software-defined technology to support infrastructure resource layer virtualization. It has the capabilities of improving computing system efficiency, reducing the total cost of ownership of the overall system, improving data processing performance, and reducing performance losses of other computing chips.
[0022] The accelerator card can be plugged into the host through the PCIE slot to connect the accelerator card to the host. PCIE refers to PCI-Express, a bus and interface standard. The accelerator card and the host can transmit data through PCIE.
[0023] The data processing method of this embodiment can be used in the aforementioned host or acceleration card, and this embodiment does not limit this.
[0024] In the process of receiving contract data by a user, it is necessary to filter out the contract data subscribed by the user from a large amount of contract data for transaction processing. The current screening process has a long delay, which in turn reduces the transaction speed of the user. In view of this, the embodiments of the present application provide a data processing method, device, storage medium and electronic device to solve the above technical problems.
[0025] Reference Figure 2 , shows a flow chart of steps of a data processing method according to an exemplary embodiment of the present application. As shown in the figure, this embodiment mainly includes the following steps:
[0026] S202: Acquire multiple contract data for conducting financial transactions.
[0027] Among them, the multiple contract data include at least one target contract data of the target user.
[0028] Exemplarily, the contract data may include a contract number, a contract character string, etc. The multiple contract data may include one or more target contract data of the target user, and the target contract data may be contract data subscribed by the target user.
[0029] In an optional implementation, the data processing method of this embodiment is applied to an acceleration card coupled to a target host of a target user to obtain multiple contract data for conducting financial transactions, including: receiving multiple contract data for conducting financial transactions sent by the target host.
[0030] Exemplarily, the target host of the target user can be coupled with an accelerator card, which can be a dedicated data processor DPU. DPU (Data Processing Unit) is a data-centric, I / O-intensive, software-defined technology route to support infrastructure resource layer virtualization, and has the ability to improve computing system efficiency, reduce the total cost of ownership of the overall system, and improve data processing performance. A new generation of computing chips that reduces the performance loss of other computing chips. The accelerator card can be plugged into the target host through a PCIE slot to connect the accelerator card to the target host. PCIE refers to PCI-Express, which is a bus and interface standard. The accelerator card and the target host can transmit data through PCIE.
[0031] After receiving the multiple contract data, the target host can send the multiple contract data to the acceleration card, and the acceleration card processes the multiple contract data.
[0032] In this implementation, contract data is processed by an acceleration card coupled to the target host of the target user, which can save computing resources of the target host and improve data processing efficiency.
[0033] S204. Calculate the contract data according to the pre-acquired target hash function to obtain the hash value corresponding to each contract data.
[0034] Exemplarily, a hash function is a function that maps input data of any length to output data of a fixed length. A target hash function may be pre-constructed, and the target hash function may be:
[0035] Hash (s) =s0+s1*p+s2*p 2 +…+s n-1 *p n-1 mod m
[0036] Among them, s i Represents the i+1th character in the contract data, i=0,1,2…n-1; p is the coefficient, and m is the size of the hash table mapped by the target hash function.
[0037] By calculating multiple contract data separately through the target hash function, the hash value corresponding to each contract data can be obtained. For example, if the contract data includes the string HO2310-C-2500, the calculated hash value is 816d; if the contract data includes the string HO2310-P-2450, the calculated hash value is c160.
[0038] In an optional implementation, the hash value corresponding to each contract data includes at least one target hash value corresponding to at least one target contract data, and the at least one target hash value is different.
[0039] Exemplarily, multiple contract data are calculated separately by the target hash function to obtain corresponding multiple hash values. Since the multiple contract data include one or more target contract data, correspondingly, the multiple hash values include one or more target hash values. When the multiple contract data include multiple target contract data, the multiple target hash values corresponding to the multiple target contract data are all different, that is, by calculating the multiple target contract data separately by the target hash function, corresponding multiple different target hash values can be obtained.
[0040] In this implementation, when multiple contract data are calculated through the target hash function, it can be ensured that there is no hash conflict when calculating multiple target contract data, that is, the multiple target hash values obtained are different, thereby avoiding hash conflicts for multiple target contract data in the subsequent processing process and improving data processing efficiency.
[0041] In an optional implementation, the pre-acquired target hash function is obtained in the following manner: based on all target contract data of the target user and a preset coefficient set, the preset hash function is iteratively calculated to determine the target coefficient from the preset coefficient set; based on the target coefficient and the preset hash function, the target hash function is determined; wherein, by calculating all target contract data of the target user through the target hash function, all target hash values obtained are different.
[0042] Exemplarily, the preset coefficient set may be a list including multiple p values, and the p value list may be 20,000 prime numbers starting from 3. The preset hash function is the above-mentioned pre-constructed hash function, in which the coefficient is not determined. By iteratively enumerating the p values in the p value list, the hash values of all target contract data are calculated respectively: when a hash conflict occurs, the iteration of the p value of this round is stopped, the next p value is selected, and so on, until a p value without hash conflict is found. The specific process is as follows: select a coefficient p value from the preset coefficient set and substitute it into the preset hash function, initialize the contract list and hash table containing all target contract data of the target user, and calculate the target contract data in the contract list one by one. During the calculation process, if a hash conflict occurs, that is, the target hash values corresponding to the two target contract data are the same, then select a coefficient p value from the preset coefficient set again, and calculate the target contract data in the contract list one by one again, and repeat the above process until the target coefficient p value is found, so that all the calculated target hash values are different. Substituting the target coefficient into the preset hash function, the target hash function can be obtained.
[0043] In this implementation, the preset hash function is iteratively calculated according to all the target contract data of the target user and the preset coefficient set, and the target coefficient is determined from the preset coefficient set; the target hash function is determined according to the target coefficient and the preset hash function, which can ensure that when the target hash function is used to calculate multiple target contract data of the target user, there is no hash conflict, that is, the multiple target hash values obtained are different, thereby avoiding hash conflicts for multiple target contract data in the subsequent processing process and improving data processing efficiency. In addition, the coefficients of the target hash function have been calculated in advance, so they can be directly applied without calculating the coefficients of the target hash function during operation, reducing the amount of calculation during the operation process and reducing the operation delay.
[0044] In an optional implementation, the contract data includes a contract string, and the contract data is calculated according to a pre-acquired target hash function to obtain a hash value corresponding to each contract data, including: calculating the contract string through a pre-acquired target hash function to obtain a hash value corresponding to each contract data.
[0045] For example, the contract data includes a contract string, which may be an option contract code. When the contract data is calculated by the target hash function, it can be understood that the target hash function is used to calculate the contract string to obtain the corresponding hash value. For example, if the contract string is HO2310-C-2150, each character is s i , the calculated hash value is 9476. In addition, the contract data may also include a contract number, which is a digital value. For example, the contract string is HO2310-C-2150, and the corresponding contract number is 0.
[0046] In this implementation, the contract string in the contract data is calculated through the target hash function to obtain the corresponding hash value, and then the target contract data in the contract data can be determined by matching the hash value with the target hash value in the target hash list. The processing process is simple and the processing delay is reduced.
[0047] S206. Determine the target contract data in the contract data according to the contract data, the hash value and the pre-acquired target hash list.
[0048] Among them, the target hash list includes multiple target contract data and target hash values corresponding to the target contract data.
[0049] For example, multiple hash values can be matched one by one with the target hash value in the target hash list. If the match is successful, it means that the contract data corresponding to the hash value is the target contract data. Furthermore, the contract data corresponding to the successfully matched hash value can be matched with the target contract data in the target hash table. If the match is successful, it means that the contract data corresponding to the hash value is the target contract data.
[0050] In an optional implementation, target contract data in the contract data is determined based on the contract data, the hash value, and a pre-acquired target hash list, including: matching multiple hash values with multiple target hash values in the pre-acquired target hash list respectively; determining whether there is an identical first hash value among multiple first hash values that are successfully matched; if there is no identical first hash value, determining the contract data corresponding to the first hash value as the target contract data.
[0051] Exemplarily, after obtaining multiple hash values by calculating using the target hash function, the multiple hash values are respectively matched with the multiple target hash values in the pre-acquired target hash list to obtain multiple successfully matched first hash values; further, it can be determined whether there is an identical first hash value among the multiple successfully matched first hash values. If there is no identical first hash value, the contract data corresponding to the first hash value can be directly determined as the target contract data.
[0052] Since there is no hash conflict in the target hash value calculated by the target hash function for the target contract data, there may be a hash conflict between the hash value corresponding to the non-target contract data in multiple contract data and the hash value corresponding to the target contract data. In this implementation, by determining whether there is an identical first hash value among the multiple first hash values that have successfully matched, if there is no identical first hash value, the contract data corresponding to the first hash value is determined as the target contract data, thereby avoiding hash conflicts caused by the above situation and further avoiding misjudgment of the target contract data due to hash conflicts.
[0053] In an optional implementation, the method of this embodiment also includes: if there is an identical first hash value, comparing the contract data corresponding to the identical first hash value that has been successfully matched with the target contract data corresponding to the target hash value; and determining the contract data in the identical first hash value that is consistent with the target contract data as the target contract data.
[0054] Exemplarily, if the same first hash value exists among multiple first hash values that are successfully matched, that is, there is a hash conflict between the hash value corresponding to the non-target contract data in the contract data and the hash value corresponding to the target contract data, the contract data corresponding to the same first hash value that is successfully matched can be further compared with the target contract data corresponding to the target hash value, and the contract data that is consistent with the target contract data in the same first hash value is determined as the target contract data. Here, the contract data can include a contract string and a contract number. During the comparison process, the contract strings can be compared to see if they are consistent. For example, the first hash values corresponding to the contract strings HO2310-P-2500 and HO2310-P-2475 are both 0x247a, and the target contract string corresponding to the target hash value 0x247a is HO2310-P-2500. After comparison, it can be determined that the contract data containing the contract string HO2310-P-2500 is the target contract data. Furthermore, the contract numbers may be compared to see if they are consistent. When the contract number and the contract character string in the contract data are both compared to be consistent, the contract data is determined to be the target contract data.
[0055] In this implementation, in the event that a hash conflict occurs between the hash value corresponding to non-target contract data in the contract data and the hash value corresponding to the target contract data, the contract data corresponding to the same first hash value that has been successfully matched can be further compared with the target contract data corresponding to the target hash value, and then the contract data with the same first hash value that is consistent with the target contract data is determined as the target contract data, thereby avoiding hash conflicts caused by the above situation and further avoiding misjudgment of the target contract data due to hash conflicts; in addition, only comparing the contract data corresponding to the same first hash value with the target contract data corresponding to the target hash value can reduce the amount of data processed, improve processing efficiency, and reduce processing delays.
[0056] The embodiment of the present application obtains multiple contract data for financial transactions; the multiple contract data include at least one target contract data of the target user; the contract data is calculated according to the pre-acquired target hash function to obtain the hash value corresponding to each contract data; the target contract data in the contract data is determined according to the contract data, the hash value and the pre-acquired target hash list, and the target hash list includes multiple target contract data and the target hash value corresponding to the target contract data. The contract data is calculated using the target hash function to obtain the hash value corresponding to each contract data, and then the target contract data in the contract data can be determined by matching the hash value with the target hash value in the target hash list. The processing process is simple, and the processing delay is reduced, thereby improving the transaction speed of the user.
[0057] Reference Figure 3, shows a structural block diagram of a data processing device according to an exemplary embodiment of the present application.
[0058] The data processing device of this embodiment includes an acquisition module 302, a calculation module 304 and a matching module 306. The acquisition module 302 is used to acquire multiple contract data for financial transactions; the multiple contract data include at least one target contract data of the target user; the calculation module 304 is used to calculate the contract data according to the pre-acquired target hash function to obtain the hash value corresponding to each contract data; the hash value includes a target hash value corresponding to at least one target contract data, and at least one target hash value is different; the matching module 306 is used to determine the target contract data in the contract data according to the contract data, the hash value and the pre-acquired target hash list, and the target hash list includes multiple target contract data and the target hash value corresponding to the target contract data.
[0059] In an optional implementation, the hash value corresponding to each contract data includes at least one target hash value corresponding to at least one target contract data, and the at least one target hash value is different.
[0060] In an optional implementation, the matching module 306 is also used to: respectively match multiple hash values with multiple target hash values in a pre-acquired target hash list; determine whether there is an identical first hash value among the multiple first hash values that have been successfully matched; if there is no identical first hash value, determine the contract data corresponding to the first hash value as the target contract data.
[0061] In an optional implementation, the matching module 306 is also used to: if there is an identical first hash value, compare the contract data corresponding to the identical first hash value that has been successfully matched with the target contract data corresponding to the target hash value; and determine the contract data in the identical first hash value that is consistent with the target contract data as the target contract data.
[0062] In an optional implementation, the data processing device of this embodiment also includes a preprocessing module, which is used to: iteratively calculate a preset hash function based on all target contract data of the target user and a preset coefficient set, and determine the target coefficient from the preset coefficient set; determine the target hash function based on the target coefficient and the preset hash function; wherein, all target hash values obtained by calculating all target contract data of the target user through the target hash function are different.
[0063] In an optional implementation, the contract data includes a contract string, and the calculation module 304 is further used to: calculate the contract string using a pre-acquired target hash function to obtain a hash value corresponding to each contract data.
[0064] In an optional implementation, the data processing device of this embodiment is applied to an acceleration card coupled to a target host of a target user, and the acquisition module 302 is further used to: receive a plurality of contract data sent by the target host for conducting financial transactions.
[0065] The data processing device of this embodiment is used to implement the corresponding data processing methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here. In addition, the functional implementation of each module in the data processing device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be described in detail here.
[0066] Reference Figure 4 , shows a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present application. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0067] like Figure 4 As shown, the electronic device may include: a processor (processor) 401 , a memory (memory) 403 , a communication bus 404 , and a communication interface (Communications Interface) 405 .
[0068] Wherein: the processor 401 , the memory 403 and the communication interface 405 communicate with each other via the communication bus 404 .
[0069] The communication interface 405 is used to communicate with other electronic devices or servers.
[0070] The processor 401 is used to execute the program 402, and specifically can execute the steps of any data processing method in the above embodiments.
[0071] Specifically, the program 402 may include program codes, which include computer operation instructions.
[0072] The processor 401 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0073] The memory 403 is used to store the program 402. The memory 403 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0074] The program 402 can be specifically used to enable the processor 401 to execute the steps of any data processing method described in the embodiment. The specific implementation of each step in the program 402 can refer to the corresponding description of the steps and units executed by any data processing method in the above steps, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the aforementioned method embodiment.
[0075] An embodiment of the present application further provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the data processing method described in any one of the above-mentioned method embodiments is implemented.
[0076] An embodiment of the present application also provides a computer program product, including computer instructions, which instruct a computing device to execute operations corresponding to the data processing method described in any one of the above-mentioned multiple method embodiments.
[0077] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0078] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a special-purpose processor or programmable or special-purpose hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the method shown here.
[0079] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. 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 the embodiments of the present application.
[0080] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.
Claims
1. A data processing method, characterized in that: include: Obtaining multiple contract data for conducting financial transactions; The plurality of contract data include at least one target contract data of a target user; Calculate the contract data according to the pre-acquired target hash function to obtain the hash value corresponding to each contract data; The target contract data in the contract data is determined according to the contract data, the hash value and a pre-acquired target hash list, wherein the target hash list includes multiple target contract data and target hash values corresponding to the target contract data.
2. The data processing method according to claim 1, characterized in that: The hash value corresponding to each of the contract data includes at least one target hash value corresponding to the at least one target contract data, and the at least one target hash value is different.
3. The data processing method according to claim 1 or 2, characterized in that: The determining the target contract data in the contract data according to the contract data, the hash value and the pre-acquired target hash list includes: Respectively matching the plurality of hash values with a plurality of target hash values in a pre-acquired target hash list; Determine whether there is an identical first hash value among the multiple first hash values that successfully match; If the same first hash value does not exist, the contract data corresponding to the first hash value is determined as the target contract data.
4. The data processing method according to claim 3, characterized in that: The method further comprises: If there is an identical first hash value, the contract data corresponding to the identical first hash value that matches successfully is compared with the target contract data corresponding to the target hash value; The contract data among the same first hash values that is consistent with the target contract data is determined as the target contract data.
5. The data processing method according to claim 1 or 2, characterized in that: The pre-acquired target hash function is obtained in the following manner: According to all target contract data of the target user and a preset coefficient set, iteratively calculate the preset hash function, and determine the target coefficient from the preset coefficient set; A target hash function is determined according to the target coefficient and the preset hash function; wherein, all target contract data of the target user are calculated by the target hash function, and all target hash values obtained are different.
6. The data processing method according to claim 1, characterized in that: The contract data includes a contract string, and the contract data is calculated according to a pre-acquired target hash function to obtain a hash value corresponding to each of the contract data, including: The contract string is calculated using the pre-acquired target hash function to obtain a hash value corresponding to each of the contract data.
7. The data processing method according to claim 1, characterized in that: The method is applied to an accelerator card coupled to a target host of the target user, and the acquiring of a plurality of contract data for performing a financial transaction includes: Receive multiple contract data for financial transactions sent by the target host.
8. A data processing device, characterized in that: include: An acquisition module, used to acquire a plurality of contract data for conducting financial transactions; The plurality of contract data include at least one target contract data of a target user; A calculation module, used to calculate the contract data according to a pre-acquired target hash function to obtain a hash value corresponding to each of the contract data; wherein the hash value includes a target hash value corresponding to the at least one target contract data, and the at least one target hash value is different; A matching module is used to determine the target contract data in the contract data according to the contract data, the hash value and a pre-acquired target hash list, wherein the target hash list includes multiple target contract data and target hash values corresponding to the target contract data.
9. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method according to any one of claims 1 to 7.
10. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.