Data processing method, device and equipment and readable storage medium

By determining the resource type in the micro-core components and performing corresponding accounting processing, the problems of low encrypted resource accounting performance and difficulty in expandability of balance resource accounting systems in the prior art are solved, and transaction scenarios in multiple fields are realized The integrated accounting of digital resources and balance resources improves the applicability and expansion of the system.

CN119006151APending Publication Date: 2024-11-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310582399.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-22
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing accounting methods of decentralized encryption resources have low performance and are difficult to apply to complex transaction scenarios such as financial management and insurance. The accounting system for balance resources has difficulties in scalability and coupling, and it is difficult to apply at the same time. Trading scenarios in multiple fields.

Method used

By determining the resource type associated with the transaction execution result in the micro-core component, if the balance resource type is used for double transfer accounting, if the digital resource type is used for equivalent transfer accounting, the target field transaction component and the micro-core component are used to decouple transactions Task and resource transfer process realize the integrated accounting of digital resources and balance resources in multiple fields trading scenarios.

Benefits of technology

The transaction tasks in different fields are handed over to the corresponding components for processing, and the micro-core components are unified to complete the accounting process, which improves the expansion and applicability of the accounting system, and supports digital resources in multiple fields and Balance resource integration accounting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119006151A_ABST
    Figure CN119006151A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method, device and equipment and a readable storage medium, and the method comprises the steps: executing a transaction task through a target domain transaction component, obtaining a transaction execution result, and transmitting the transaction execution result to a micro-core component; in the micro-core component, determining a resource type associated with the transaction execution result; if the resource type is a balance resource type, determining a balance transfer relationship of S first accounts associated with the transaction task according to the transaction execution result, and performing duplex transfer bookkeeping processing on balance resources of the S first accounts based on the balance transfer relationship; and if the resource type is a digital resource type, determining a digital resource transfer relationship among L second accounts associated with the transaction task according to a transaction execution result, and performing equivalent transfer accounting processing on digital resources of the L second accounts based on the digital resource transfer relationship. According to the invention, the method can achieve the fusion bookkeeping of the digital resources and the balance resources under the transaction scenes of a plurality of fields.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, device, equipment and readable storage medium. Background Art

[0002] The resources involved in online domain transaction scenarios mainly include digital resources and balance resources. Among them, balance resources refer to resources used as general equivalents in the transaction process; digital resources refer to virtual resources based on node networks and digital encryption algorithms.

[0003] The existing accounting methods for digital resources, especially decentralized encrypted resources, mainly rely on blockchain technology. However, the performance of blockchain transactions is low and is not suitable for the more complex field transaction scenarios involved in balance resources, such as financial management and insurance. The accounting system of balance resources relies on large databases, and the accounting process is seriously coupled with the field transaction scenarios involved in balance resources. Therefore, the accounting system of balance resources is more complex in terms of scalability. For example, the accounting system suitable for financial management scenarios is difficult to be used in insurance scenarios at the same time. In addition, the transaction process of balance resources is very different from that of digital resources, so it is difficult for digital resources to directly use the accounting system of balance resources to account. Summary of the invention

[0004] The embodiments of the present application provide a data processing method, apparatus, device and readable storage medium, which can realize the integrated accounting of digital resources and balance resources in transaction scenarios in multiple fields.

[0005] On the one hand, an embodiment of the present application provides a data processing method, including:

[0006] Receive transaction tasks through the target domain transaction component, execute transaction tasks through the target domain transaction component, obtain transaction execution results, and send the transaction execution results to the micro core component; the target domain transaction component belongs to one or more domain transaction components;

[0007] In the microcore component, determine the resource type associated with the transaction execution result;

[0008] If the resource type is a balance resource type, the balance transfer relationship of the S first accounts associated with the transaction task is determined according to the transaction execution result, and the balance resources of the S first accounts are double-entry transferred and recorded based on the balance transfer relationship; S is a positive integer;

[0009] If the resource type is a digital resource type, the digital resource transfer relationship between the L second accounts associated with the transaction task is determined according to the transaction execution result, and the digital resources of the L second accounts are subjected to equal transfer accounting processing based on the digital resource transfer relationship; L is a positive integer; among the L second accounts after the equal value accounting processing, the total number of transferred-out digital resources corresponding to the second accounts belonging to the transfer output type is equal to the total number of transferred-in digital resources corresponding to the second accounts belonging to the transfer input type.

[0010] An embodiment of the present application provides a data processing device, including:

[0011] The transaction execution module is used to receive the transaction task through the target domain transaction component, execute the transaction task through the target domain transaction component, obtain the transaction execution result, and send the transaction execution result to the micro core component; the target domain transaction component belongs to one or more domain transaction components;

[0012] A type determination module is used to determine the resource type associated with the transaction execution result in the micro core component;

[0013] A first transfer accounting module, configured to determine the balance transfer relationship of S first accounts associated with the transaction task according to the transaction execution result if the resource type is a balance resource type, and perform double-entry transfer accounting processing on the balance resources of the S first accounts based on the balance transfer relationship; S is a positive integer;

[0014] The second transfer accounting module is used to determine the digital resource transfer relationship between L second accounts associated with the transaction task according to the transaction execution result if the resource type is a digital resource type, and perform equal-value transfer accounting processing on the digital resources of the L second accounts based on the digital resource transfer relationship; L is a positive integer; among the L second accounts after the equal-value accounting processing, the total number of transferred-out digital resources corresponding to the second accounts belonging to the transfer output type is equal to the total number of transferred-in digital resources corresponding to the second accounts belonging to the transfer input type.

[0015] Among them, the transaction execution results include sequence transaction operation data;

[0016] Transaction execution module, including:

[0017] A task determination unit, configured to receive a transaction task through a target domain transaction component, and determine a task type of the transaction task through the target domain transaction component;

[0018] A sequence acquisition unit, used to acquire an accounting sequence matching a task type;

[0019] The sequence execution unit is used to execute the transaction task according to the accounting sequence, obtain the sequence transaction operation data corresponding to the transaction task, and send the sequence transaction operation data to the micro core component.

[0020] The sequence acquisition unit includes:

[0021] The database acquisition subunit is used to acquire the accounting sequence database associated with the target domain transaction component; the accounting sequence database includes one or more configuration task types and the accounting sequence bound to each configuration task type;

[0022] The sequence determination subunit is used to determine the accounting sequence bound to the configuration task type that is the same as the task type in the accounting sequence database as the accounting sequence that matches the task type.

[0023] Wherein, the bookkeeping sequence includes M bookkeeping operations; M is a positive integer;

[0024] Sequence execution unit, including:

[0025] A traversal subunit is used to traverse M accounting operations and obtain the kth accounting operation; k is a positive integer less than or equal to M;

[0026] An execution subunit, used for executing a transaction task according to the kth accounting operation and k-1 transaction operation data, and obtaining the kth transaction operation data;

[0027] The determination subunit is used to determine k transaction operation data as sequence transaction operation data when traversing M accounting operations is completed; and send the sequence transaction operation data to the micro core component.

[0028] Wherein, the above-mentioned data processing device further includes:

[0029] A voucher generation module, used to generate a transaction voucher for a transaction execution result in a target domain transaction component, and send the transaction voucher to a micro core component;

[0030] The credential verification module is used to verify the transaction credentials in the micro core component and obtain the verification result;

[0031] The verification pass module is used to execute the step of determining the resource type associated with the transaction execution result if the verification result is a verification pass result.

[0032] The transaction voucher includes signature data; the voucher verification module includes:

[0033] A public key signature verification unit, used to determine the credential public key associated with the target domain transaction component in the micro core component;

[0034] The public key verification unit is also used to verify the signature data according to the certificate public key to obtain the verification result;

[0035] A result determination unit, configured to determine the verification result as a verification pass result if the signature verification result is a signature verification success result;

[0036] The result determination unit is used to determine the verification result as a signature verification failure result if the signature verification result is a signature verification failure result.

[0037] Among them, the micro-core components include the transaction accounting layer and the object resource layer;

[0038] The first transfer accounting module includes:

[0039] a first relationship determination unit, configured to determine, in a transaction accounting layer, a balance transfer relationship of S first accounts associated with the transaction task according to a transaction execution result if the resource type is a balance resource type;

[0040] A first accounting unit is used to perform double-entry accounting processing on the S first accounts based on the balance transfer relationship to obtain a double-entry accounting result;

[0041] An account determination unit, configured to determine, in the object resource layer, the balance resource management accounts corresponding to the S first accounts respectively if the double-entry bookkeeping result is a double-entry bookkeeping success result; a balance resource management account is used to manage the balance resources of one or more first accounts;

[0042] The first transfer unit is used to transfer the balance resources of the S first accounts according to the balance transfer relationship and the balance resource management accounts respectively corresponding to the S first accounts.

[0043] The first accounting unit includes:

[0044] A first determining subunit is configured to determine, based on the balance transfer relationship, a first account belonging to a debit type among the S first accounts as a first debit account, and to determine a first account belonging to a repay type among the S first accounts as a first repay account;

[0045] The first determining subunit is further used to determine the debit balances respectively corresponding to the first debit account numbers according to the balance transfer relationship;

[0046] The first determining subunit is further used to determine the repayment balances corresponding to the first repayment accounts respectively according to the balance transfer relationship;

[0047] The first accounting subunit is used to record the debit balances corresponding to the first debit accounts and the repayment balances corresponding to the first repayment accounts if the sum of the debit balances corresponding to the first debit accounts is equal to the repayment balances corresponding to the first repayment accounts, and determine that the double-entry accounting result is a successful double-entry accounting result.

[0048] Wherein, the first transfer unit comprises:

[0049] A first transfer subunit is used for performing numerical update processing on the account balances in the S first accounts based on the balance transfer relationship if the balance resource management accounts corresponding to the S first accounts are the same; an account balance is used to represent the amount of balance resources that can be exchanged for a first account from the balance resource management account;

[0050] The second transfer subunit is configured to perform balance resource transfer processing on the balance resource management accounts respectively corresponding to the S first accounts based on the balance transfer relationship if the balance resource management accounts respectively corresponding to the S first accounts are different, to obtain a balance resource transfer result;

[0051] The second transfer subunit is further used to perform numerical update processing on the account balances in the S first accounts according to the balance resource transfer result.

[0052] Among them, the micro-core components include the transaction accounting layer and the object resource layer;

[0053] The second transfer accounting module includes:

[0054] a second relationship determination unit, configured to determine, in a transaction accounting layer, a digital resource transfer relationship between L second accounts associated with the transaction task according to a transaction execution result if the resource type is a balance resource type;

[0055] The second accounting unit is used to perform equal-value accounting processing on the digital resources of the L second accounts based on the digital resource transfer relationship to obtain an equal-value accounting result;

[0056] The second transfer unit is used to perform digital resource transfer processing on the digital resources of the L second accounts based on the digital resource transfer relationship in the object resource layer if the equal value accounting result is a successful equal value accounting result.

[0057] The second accounting unit includes:

[0058] A second determining subunit is used to determine, based on the digital resource transfer relationship, a second account belonging to the transfer output type among the L second accounts as a second transfer-out account, and to determine a second account belonging to the transfer input type among the L second accounts as a second transfer-in account;

[0059] The second determining subunit is further used to determine the number of transfer-out unit digital resources corresponding to the second transfer-out accounts respectively according to the digital resource transfer relationship;

[0060] The second determining subunit is further used to determine the number of transferred digital resources corresponding to the second transferred accounts respectively according to the digital resource transfer relationship;

[0061] The second accounting sub-unit is used to record the number of transfer-out unit digital resources corresponding to the second transfer-in account and the number of transfer-in unit digital resources corresponding to the second transfer-in account if the sum of the number of transfer-out unit digital resources corresponding to the second transfer-in account is equal to the sum of the number of transfer-in unit digital resources corresponding to the second transfer-in account, and determine that the equal-value accounting result is a successful equal-value accounting result.

[0062] On the one hand, an embodiment of the present application provides a computer device, including: a processor, a memory, and a network interface;

[0063] 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 a data communication network element, the above-mentioned memory is used to store a computer program, and the above-mentioned processor is used to call the above-mentioned computer program to execute the method in the embodiment of the present application.

[0064] 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.

[0065] On the one hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method in the embodiment of the present application.

[0066] In the embodiment of the present application, a transaction task can be received through a target domain transaction component in one or more domain transaction components, and the transaction task can be executed through the target domain transaction component to obtain a transaction execution result, and the transaction execution result can be sent to the micro-core component; then, in the micro-core component, the resource type associated with the transaction execution result is determined; if the resource type is a balance resource type, the balance transfer relationship of the S first accounts associated with the transaction task is determined according to the transaction execution result, and the balance resources of the S first accounts are processed by double-entry transfer accounting based on the balance transfer relationship; if the resource type is a digital resource type, the digital resource transfer relationship between the L second accounts associated with the transaction task is determined according to the transaction execution result, and the digital resources of the L second accounts are processed by equal-value transfer accounting based on the digital resource transfer relationship. Wherein, S is a positive integer; L is a positive integer; among the L second accounts after the equal-value accounting processing, the total number of transferred-out digital resources corresponding to the second account belonging to the transfer output type is equal to the total number of transferred-in digital resources corresponding to the second account belonging to the transfer input type. Through the method provided in the embodiment of the present application, transaction tasks in different field transaction scenarios are handed over to the corresponding field transaction components to complete, and the transfer and accounting process of digital resources or balance resources is uniformly completed by the micro-core component, which decouples the execution process of the transaction task from the transfer and accounting process of the digital resources or balance resources involved in the transaction task, and can realize the integrated accounting of digital resources and balance resources in multiple field transaction scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] 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 of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0068] Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application;

[0069] Figure 2 This is a schematic diagram of a scenario of resource transfer accounting provided by an embodiment of the present application;

[0070] Figure 3 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0071] Figure 4 It is a schematic diagram of a double-entry bookkeeping process provided by an embodiment of the present application;

[0072] Figure 5 is a schematic diagram of a digital resource transfer process provided by an embodiment of the present application;

[0073] Figure 6 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0074] Figure 7 It is a product schematic diagram of an accounting system provided in an embodiment of the present application;

[0075] Figure 8 It is a schematic diagram of the architecture of an accounting system provided by an embodiment of the present application;

[0076] Figure 9a This is a schematic diagram of a first account operation model provided in an embodiment of the present application;

[0077] Figure 9b is a schematic diagram of a second account operation model provided in an embodiment of the present application;

[0078] Fig.10 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0079] Fig.11 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0081] Cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, allowing various application systems to obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". From the user's perspective, the resources in the "cloud" are infinitely scalable and can be obtained at any time, used on demand, expanded at any time, and paid for by use.

[0082] As a provider of basic cloud computing capabilities, a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform) will be established, and various types of virtual resources will be deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.

[0083] According to the logical function division, the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer can be deployed on the PaaS layer. SaaS can also be deployed directly on IaaS. PaaS is a platform for software operation, such as databases, web containers, etc. SaaS is a variety of business software, such as web portals, SMS mass senders, etc. Generally speaking, SaaS and PaaS are upper layers relative to IaaS.

[0084] The solution provided in the embodiments of the present application relates to cloud computing technology in the field of cloud technology, and the specific process is explained through the following embodiments.

[0085] See also Figure 1 , Figure 1 Schematic diagram of a network architecture provided by an embodiment of the present application. Figure 1 As shown, the network architecture may include an application server 100 and a terminal device cluster, wherein the terminal device cluster may include multiple terminal devices, such as Figure 1 As shown, it may specifically include terminal device 10a, terminal device 10b, terminal device 10c, ..., terminal device 10n. Figure 1 As shown, terminal device 10a, terminal device 10b, terminal device 10c, ..., terminal device 10n can respectively establish network connection with the above-mentioned application server 100, so that each terminal device can exchange data with the application server 100 through the network connection, so that each terminal device can receive business data from the above-mentioned application server 100.

[0086] It should be understood that Figure 1 Each terminal device in the terminal device cluster shown in the figure can be integrated with an application client corresponding to the target application. When the application client runs in each terminal device, it can be respectively connected to the above Figure 1 The application servers 100 shown in the figure perform data interaction, so that the application server 100 can receive business data from each terminal device. Among them, the application client can include game applications, video editing applications, social applications, instant messaging applications, live broadcast applications, short video applications, video applications, music applications, shopping applications, novel applications, payment applications, browsers and other application clients with data information functions such as displaying text, images, audio and video. Among them, the application client can be an independent client or an embedded sub-client integrated in a client (such as an instant messaging client, a social client, a video client, etc.), which is not limited here.

[0087] like Figure 1 As shown, one or more domain transaction components and micro-core components may be integrated and installed in the application server 100. Among them, a domain transaction component corresponds to a domain transaction scenario, which is used to process the transaction tasks in the domain transaction scenario sent by the terminal device. For example, the domain transaction component may be an insurance transaction component, which is responsible for processing the transaction tasks in the insurance transaction scenario. Among them, the micro-core component is used to account for and transfer the transaction resources involved in the transaction tasks. Among them, the transaction resources may include digital resources and balance resources. Among them, the balance resources refer to the traditional offline resources that serve as general equivalents in the transaction process; digital resources refer to a virtual resource based on a node network and a digital encryption algorithm.

[0088] Specifically, any terminal device in the terminal device cluster can send a transaction task under the target domain transaction scenario to the application server 100, and the application server 100 can receive the transaction task through the target domain transaction component, execute the transaction task through the target domain transaction component, obtain the transaction execution result, and send the transaction execution result to the micro-core component; then, in the micro-core component, determine the resource type associated with the transaction execution result; if the resource type is a balance resource type, then determine the balance transfer relationship of the S first accounts associated with the transaction task according to the transaction execution result, and perform double-entry transfer accounting processing on the balance resources of the S first accounts based on the balance transfer relationship; if the resource type is a digital resource type, then determine the digital resource transfer relationship between the L second accounts associated with the transaction task according to the transaction execution result, and perform equal-value transfer accounting processing on the digital resources of the L second accounts based on the digital resource transfer relationship. Wherein, S is a positive integer; L is a positive integer; among the L second accounts after the equal-value accounting processing, the total number of transferred-out digital resources corresponding to the second account belonging to the transfer output type is equal to the total number of transferred-in digital resources corresponding to the second account belonging to the transfer input type.

[0089] Among them, it can be understood that the above-mentioned network connection does not limit the connection method, and can be directly or indirectly connected through wired communication, directly or indirectly connected through wireless communication, or through other connection methods, which are not limited in this application.

[0090] It is understandable that the method provided in the embodiment of the present application can be executed by a computer device, and the computer device includes but is not limited to a terminal device or an application server. Among them, the application server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Among them, the terminal device may include a mobile phone, a tablet computer, a laptop computer, a PDA, an intelligent speaker, a mobile Internet device (MID, mobile internet device), a POS (Point Of Sales, point of sale) machine, a wearable device (such as a smart watch, a smart bracelet, etc.), a vehicle terminal, etc.

[0091] It is understandable that the above-mentioned device (such as the above-mentioned application server 100, terminal device 10a, terminal device 10b, terminal device 10c, ..., terminal device 10n) can be a node in a distributed system, wherein the distributed system can be a blockchain system, and the blockchain system can be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes can form a peer-to-peer (P2P, Peer To Peer) network, and the P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP, Transmission Control Protocol) protocol. In a distributed system, any form of computer equipment, such as servers, terminals and other electronic devices, can become a node in the blockchain system by joining the peer-to-peer network.

[0092] It can be understood that the embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, blockchain, insurance, financial management, smart wallets and the like.

[0093] It is understandable that in the specific implementation of this application, the data related to the transaction tasks, etc., when the above embodiments of this application are applied to specific products or technologies, need to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

[0094] To facilitate understanding of the above-mentioned integrated accounting process of digital resources and balance resources, we will take the procurement transaction scenario as an example. Figure 2 , Figure 2 is a schematic diagram of a scenario of resource transfer accounting provided by an embodiment of the present application. Figure 2 The terminal device 20 shown can be the above Figure 1Any terminal device in the terminal device cluster shown, for example, terminal device 20 may be terminal device 10a; Figure 2 The application server 200 shown may be the above Figure 1 An application server 100 is shown.

[0095] like Figure 2 As shown, a procurement application 21 may be integrated and installed in the terminal device 20, and the procurement application 21 may match the most suitable procurement plan for the object according to the needs and costs of the object. Assuming that object A has an association relationship with the terminal device 20, and object A needs to purchase 1,000 computers, object A may perform procurement operations through the procurement application 21, and the terminal device 20 may respond to the procurement operation of object A, generate a procurement transaction task 22, and then send the procurement transaction task 22 to the application server 200.

[0096] like Figure 2As shown, one or more domain transaction components may be integrated and installed in the application server 200, wherein different domain transaction components correspond to different domain transaction scenarios, i.e., are used to process transaction tasks in different domain transaction scenarios. For example, the application server 200 may include a purchase transaction component 201a, an insurance transaction component 201b, ..., and a financial transaction component 201n, wherein the purchase transaction component 201a is used to process transaction tasks in the purchase transaction scenario; the insurance transaction component 201b is used to process transaction tasks in the insurance transaction scenario; and the financial transaction component 201n is used to process transaction tasks in the financial transaction scenario. When the application server 200 receives the purchase transaction task 22, it may send the purchase transaction task 22 to the purchase transaction component 201a. After receiving the purchase transaction task 22 through the purchase transaction component 201a, the application server 200 can execute the purchase transaction task 22. For example, the application server 200 can match multiple purchase plans for the object A in the purchase transaction component 201a according to the purchase demand of the object A contained in the purchase transaction task 22, and then return the multiple purchase plans to the terminal device 20. The object A can select and confirm the target purchase plan from the multiple purchase plans through the terminal device 20. After receiving the confirmation information for the target purchase plan, the application server 200 can execute the target purchase plan through the purchase transaction component 201a to obtain the transaction execution result 202, wherein the transaction execution result 202 can include the purchase cost and transportation cost corresponding to the target purchase plan. Then, the application server 200 can send the transaction execution result 202 to the micro core component 203 through the purchase transaction component 201a. Among them, the micro-core component 203 is a component integrated and installed in the application server 200, which is responsible for accounting and resource transfer. It can be understood that each domain transaction component included in the application server 200 can communicate with the micro-core component 203 to complete the accounting of the corresponding transaction tasks and the transfer of resources.

[0097] like Figure 2As shown, the application server 200 can first determine the resource type associated with the transaction execution result in the micro core component 203, that is, whether the resource involved in this transaction task is a digital resource or a balance resource. If the resource type is determined to be a balance resource type, the application server 200 can determine the balance transfer relationship of the S first accounts associated with the transaction task according to the transaction execution result, wherein the S first accounts associated with the transaction task can include the first account corresponding to the object A, the first account corresponding to the computer manufacturer, and the first account corresponding to the transportation manufacturer, and then the application server 200 can perform double-entry transfer accounting processing on the balance resources of the S first accounts based on the balance transfer relationship. If the resource type is determined to be a digital resource type, the application server 200 can determine the balance transfer relationship of the L second accounts associated with the transaction task according to the transaction execution result, wherein the L second accounts associated with the transaction task can include the second account corresponding to the object A, the second account corresponding to the computer manufacturer, and the second account corresponding to the transportation manufacturer, and then the application server 200 can perform equal value transfer accounting processing on the digital resources of the L second accounts based on the balance transfer relationship.

[0098] For further information, see Figure 3 , Figure 3 is a flow chart of a data processing method provided by an embodiment of the present application. The method may be performed by a computer device (for example, the above Figure 1 The following will take the method executed by a computer device as an example for explanation, wherein the data processing method may at least include the following steps S101-S104:

[0099] Step S101, receiving a transaction task through a target domain transaction component, executing the transaction task through the target domain transaction component, obtaining a transaction execution result, and sending the transaction execution result to a micro core component; the target domain transaction component belongs to the one or more domain transaction components.

[0100] Specifically, the logic and methods of implementing transaction tasks in different domain transaction scenarios are very different. The more complex the domain transaction scenario, the more factors and requirements need to be considered for a transaction task. For example, in a shopping transaction scenario, the transaction task usually only needs to consider the buyer, the seller and the price of the product; in a financial transaction scenario, the transaction task needs to consider the buyer, the issuer of the financial product, the rate of return, the risk rate, the liquidity, etc. Therefore, by abstracting different domain transaction scenarios, the transaction tasks in different domain transaction scenarios can be handed over to different domain transaction components for implementation. Each domain transaction component only needs to focus on the processing and implementation of the transaction tasks in the corresponding domain transaction scenario. Optionally, when a new domain transaction scenario needs to be expanded, a new domain transaction component can be created to be responsible for the transaction tasks in the new domain transaction scenario, which will not affect the transaction tasks in the original domain transaction scenario, and facilitate the expansion of the domain transaction scenario.

[0101] Step S102: In the micro core component, determine the resource type associated with the transaction execution result.

[0102] Specifically, the resource type includes a balance resource type and a digital resource type. The resource type associated with the transaction execution result is a balance resource type, indicating that the resources involved in the transaction execution result are balance resources; the resource type associated with the transaction execution result is a digital resource type, indicating that the resources involved in the transaction execution result are digital resources.

[0103] Optionally, before determining the resource type associated with the transaction execution result, a transaction voucher for the transaction execution result can be generated in the target domain transaction component, and the transaction voucher can be sent to the micro-core component; in the micro-core component, the transaction voucher is verified to obtain a verification result. If the verification result is a verification pass result, the step of determining the resource type associated with the transaction execution result is executed. Among them, the transaction voucher can be understood as a document, which refers to a document that can be used to prove that the transaction execution result has occurred or been completed and to clarify the economic responsibility. Through the transaction voucher, it is possible to check at any time whether the transaction execution result corresponding to each transaction task has occurred or been completed, so it can be used as the original basis for accounting.

[0104] Optionally, the transaction voucher may include signature data. In the micro-core component, the transaction voucher is verified to obtain a feasible implementation process of the verification result, which may be: in the micro-core component, the voucher public key associated with the target domain transaction component is determined; the signature data is verified according to the voucher public key to obtain a verification result; if the verification result is a successful verification result, the verification result is determined to be a passed verification result; if the verification result is a failed verification result, the verification result is determined to be a failed verification result.

[0105] Step S103: If the resource type is a balance resource type, determine the balance transfer relationship of the S first accounts associated with the transaction task according to the transaction execution result, and perform double-entry transfer accounting processing on the balance resources of the S first accounts based on the balance transfer relationship; S is a positive integer.

[0106] Specifically, the micro core component may include a transaction accounting layer and an object resource layer; wherein the transaction accounting layer is used for accounting, and the object resource layer is used for transferring resources between different objects.

[0107] Specifically, if the resource type is a balance resource type, then the balance transfer relationship of the S first accounts associated with the transaction task is determined according to the transaction execution result, and a feasible implementation process of double-entry transfer accounting processing is performed on the balance resources of the S first accounts based on the balance transfer relationship. It can be: if the resource type is a balance resource type, then in the transaction accounting layer, the balance transfer relationship of the S first accounts associated with the transaction task is determined according to the transaction execution result; double-entry accounting processing is performed on the S first accounts based on the balance transfer relationship to obtain a double-entry accounting result; if the double-entry accounting result is a double-entry accounting success result, then in the object resource layer, the balance resource management accounts corresponding to the S first accounts are determined respectively; one balance resource management account is used to manage the balance resources of one or more first accounts; according to the balance transfer relationship and the balance resource management accounts corresponding to the S first accounts respectively, the balance resources of the S first accounts are transferred. Among them, double-entry bookkeeping is a bookkeeping method that takes the balance relationship between assets and equity as the basis for bookkeeping. For each transaction task, it must be registered in two or more interconnected accounts with equal amounts, and systematically reflects the results of resource movement changes. That is to say, the result of each transaction task is recorded in at least one debit account and one repayment account, and the total amount of the debit and repayment of the transaction task is equal, that is, "there must be a repayment for debit, and the debit and repayment must be equal." Among them, the account type of the first account may include a balance resource management type and a balance resource usage type; if the account type of the first account is a balance resource management type, it means that the first account can store balance resources, and the balance resource management account corresponding to the first account is itself; if the account type of the first account is a balance resource usage type, it means that the first account cannot store balance resources, but can store its own balance resources in a first account of a balance resource management type, and the first account of the balance resource management type is the balance resource management account corresponding to the first account of the balance resource usage type; it can be understood that first accounts of multiple balance resource usage types can store their own balance resources in the same first account of the balance resource management type.

[0108] Among them, a feasible implementation process of performing double-entry bookkeeping on S first accounts based on the balance transfer relationship to obtain the double-entry bookkeeping result can be: based on the balance transfer relationship, determine the first account belonging to the debit type among the S first accounts as the first debit account, and determine the first account belonging to the repayment type among the S first accounts as the first repayment account; determine the debit balances corresponding to the first debit accounts respectively according to the balance transfer relationship; determine the repayment balances corresponding to the first repayment accounts respectively according to the balance transfer relationship; if the sum of the debit balances corresponding to the first debit accounts respectively is equal to the repayment balances corresponding to the first repayment accounts respectively, then record the debit balances corresponding to the first debit accounts respectively and the repayment balances corresponding to the first repayment accounts respectively, and determine that the double-entry bookkeeping result is a successful double-entry bookkeeping result. Among them, when S is two, the balance transfer relationship can include a one-debit-one-repayment relationship, and when S is an integer greater than two, the balance transfer relationship can include a one-debit-multiple-repayment relationship and a multiple-debit-multiple-repayment relationship. Among them, a one-borrow-one-repay relationship means that the number of the first debit account is one and the number of the first repaying account is one; a one-borrow-multiple-repay relationship means that the number of the first debit account is one and the number of the first repaying account is multiple; a multiple-borrow-multiple-repay relationship means that the number of the first debit account is multiple and the number of the first repaying account is multiple.

[0109] To understand the double-entry bookkeeping process between S first accounts, please refer to Figure 4 , Figure 4 Schematic diagram of a double-entry bookkeeping process provided by an embodiment of the present application. Figure 4As shown, when the balance transfer relationship is a one-debit-one-repay relationship, for example, account A1 needs to transfer a balance resource of 200 to account B1, then in the transaction accounting layer, it is necessary to record the debit balance of account A1 as 200 and the repayment balance of account B1 as 200; when the balance transfer relationship is a one-debit-many-repay relationship, for example, account A2 needs to transfer a balance resource of 40 to account B2, account A2 needs to transfer a balance resource of 60 to account C2, and account A2 needs to transfer a balance resource of 100 to account D2, then in the transaction accounting layer, it is necessary to record the repayment balance of account B2 as 40 and the repayment balance of account C2 as The balance of account A3 and account B3 is 60, the repayment balance of account D2 is 100, and the debit balance of account A2 is 200; when the balance transfer relationship is a more-borrow-more-repay relationship, for example, account A3 and account B3 each provide a balance resource of 100, and then together transfer a balance resource of 80 to account C3, a balance resource of 80 to account D3, and a balance resource of 40 to account E3. In the transaction accounting layer, it can be recorded that the debit balance of account A3 is 100, the debit balance of account B3 is 100, the repayment balance of account C3 is 80, the repayment balance of account D3 is 80, and the repayment balance of account E3 is 40. It should be understood that before accounting in the transaction accounting layer, it is necessary to first verify whether the sum of the debit balances corresponding to the first debit account and the sum of the repayment balances corresponding to the first repayment account are equal. Only when the sum of the debit balances corresponding to the first debit account is equal to the sum of the repayment balances corresponding to the first repayment account, the debit balances corresponding to the first debit account and the repayment balances corresponding to the first repayment account are recorded, thereby determining that the double-entry accounting result is a successful double-entry accounting result. Figure 4 It can be seen that the debit balance of account A1 is equal to the repayment balance of account B1, the debit balance of account A2 is equal to the sum of the repayment balances corresponding to accounts B2, C2 and D2 respectively, and the sum of the debit balance of account A3 and the debit balance of account B3 is equal to the sum of the repayment balances corresponding to accounts C3, D3 and E3 respectively.

[0110] Specifically, a feasible implementation process for transferring the balance resources of the S first accounts according to the balance transfer relationship and the balance resource management accounts corresponding to the S first accounts may be: if the balance resource management accounts corresponding to the S first accounts are the same, the account balances in the S first accounts are numerically updated based on the balance transfer relationship; an account balance is used to represent the number of balance resources that can be exchanged for a first account from the balance resource management account; if the balance resource management accounts corresponding to the S first accounts are different, the balance resource transfer is performed on the balance resource management accounts corresponding to the S first accounts based on the balance transfer relationship to obtain a balance resource transfer result; and the account balances in the S first accounts are numerically updated based on the balance resource transfer result.

[0111] For ease of understanding, an example is given in which the S first accounts include the first account X and the first account Y, and the balance transfer relationship is that the first account X transfers 10 balance resources to the first account Y. Assume that the account balance of the first account X is 50, and the account balance of the first account Y is 60.

[0112] If the balance resource management accounts corresponding to the two first accounts are both management account Z1, it can be considered that the number of balance resources that can be exchanged by the first account X in the management account Z1 is 50, and the number of balance resources that can be exchanged by the first account Y in the management account Z1 is 60. Since both can exchange balance resources from the management account Z1, it can be considered that the balance resources of both are stored in the management account Z1, and the balance resources do not need to be transferred at this time. At this time, only the account balances of the first account X and the first account Y are numerically updated according to the balance transfer relationship, and the account balance of the first account X is 40 and the account balance of the first account Y is 70. It can be considered that the transfer process of the balance resources of the first account X and the first account Y is completed, because at this time, the number of balance resources that can be exchanged by the first account X in the management account Z1 is reduced to 40, and the number of balance resources that can be exchanged by the first account Y in the management account Z1 is increased to 70.

[0113] If the balance resource management account corresponding to the first account X is management account Z2, and the balance resource management account corresponding to the first account Y is management account Z3, since the balance resources of the two first accounts are stored in different balance resource management accounts, it is necessary to transfer 10 balance resources from management account Z2 to management account Z3. Obviously, after the transfer is completed, the number of balance resources that can be exchanged for the first account X in management account Z2 is reduced to 40. At this time, the account balance of the first account X needs to be updated to 40; the number of balance resources that can be exchanged for the first account Y in management account Z3 increases to 70. At this time, the account balance of the first account Y needs to be updated to 70.

[0114] Step S104: If the resource type is a digital resource type, determine the digital resource transfer relationship between L second accounts associated with the transaction task according to the transaction execution result, and perform equal-value transfer accounting processing on the digital resources of the L second accounts based on the digital resource transfer relationship; L is a positive integer.

[0115] Specifically, among the L second accounts after the equal-value accounting process, the total number of transferred-out digital resources corresponding to the second accounts belonging to the transfer-out type is equal to the total number of transferred-in digital resources corresponding to the second accounts belonging to the transfer-in type. Among them, the total number of transferred-out digital resources corresponding to the second accounts belonging to the transfer-out type is equal to the sum of the number of transferred-out digital resources corresponding to the second transferred-out accounts; the total number of transferred-in digital resources corresponding to the second accounts belonging to the transfer-in type is equal to the sum of the number of transferred-in digital resources corresponding to the second transferred-out accounts.

[0116] Specifically, if the resource type is a digital resource type, the digital resource transfer relationship between the L second accounts associated with the transaction task is determined according to the transaction execution result, and a feasible implementation process of equal value transfer accounting processing is performed on the digital resources of the L second accounts based on the digital resource transfer relationship. It can be: if the resource type is a balance resource type, then in the transaction accounting layer, the digital resource transfer relationship between the L second accounts associated with the transaction task is determined according to the transaction execution result; the digital resources of the L second accounts are processed with equal value accounting based on the digital resource transfer relationship to obtain an equal value accounting result; if the equal value accounting result is an equal value accounting success result, then in the object resource layer, the digital resources of the L second accounts are processed with digital resource transfer based on the digital resource transfer relationship. Among them, equal value accounting means that in each transaction task, the balance of the accounting equation must be maintained, that is, each transaction task must have an equal number of digital resources transferred out and transferred in. Among them, the second account may contain an account address, which is used to store the digital resources of the second account. It should be understood that different second accounts correspond to different account addresses.

[0117] Among them, the above-mentioned equal-value accounting processing of the digital resources of the L second accounts based on the digital resource transfer relationship to obtain a feasible implementation process of the equal-value accounting result can be: based on the digital resource transfer relationship, determine the second account belonging to the transfer output type among the L second accounts as the second transfer-out account, and determine the second account belonging to the transfer input type among the L second accounts as the second transfer-in account; determine the number of transfer-out units of digital resources corresponding to the second transfer-out accounts according to the digital resource transfer relationship; determine the number of transfer-in units of digital resources corresponding to the second transfer-in accounts according to the digital resource transfer relationship; if the sum of the number of transfer-out units of digital resources corresponding to the second transfer-out accounts is equal to the sum of the number of transfer-in units of digital resources corresponding to the second transfer-in accounts, then record the number of transfer-out units of digital resources corresponding to the second transfer-out accounts and the number of transfer-in units of digital resources corresponding to the second transfer-in accounts, and determine that the equal-value accounting result is a successful equal-value accounting result. Among them, the number of transfer-out units of digital resources refers to the number of units of digital resources contained in the digital resources transferred out by the second transfer-out account, and the unit of digital resources is a reference standard for measuring the amount of digital resources, which can be changed according to actual settings. The number of transferred-in digital resources per unit refers to the number of digital resources per unit contained in the digital resources acquired by the second transfer-in account.

[0118] Specifically, in the object resource layer, when the digital resources of L second accounts are transferred based on the digital resource transfer relationship, if L is two, the digital resource transfer relationship may include a one-out-one-in relationship, in which case the digital resources of the second transfer-out account may be transferred to the second transfer-in account through a direct transfer transaction; if L is an integer greater than two, the digital resource transfer relationship may include a one-out-multiple-in relationship and a multiple-out-one-in relationship, and when the digital resource transfer relationship is a one-out-multiple-in relationship, the digital resources of the second transfer-out account may be transferred to the second transfer-in account through a split-and-merge transfer transaction; when the digital resource transfer relationship is a multiple-out-one-in relationship, the digital resources of the second transfer-out account may be transferred to the second transfer-in account through a merge-and-transfer transaction. Among them, a direct transfer transaction refers to transferring digital resources from one transaction party to another in full; a split transfer transaction refers to splitting the digital resources of one transaction party into multiple smaller denominations, and then transferring the split digital resources to other transaction parties; a merge transfer transaction refers to merging the digital resources of multiple transaction parties into a larger denomination, and then transferring the merged digital resources to another transaction party.

[0119] To understand the process of transferring digital resources between L second accounts, please refer to Figure 5 , Figure 5 FIG. 1 is a schematic diagram of a digital resource transfer process provided by an embodiment of the present application. Figure 5As shown in the figure, when the digital resource transfer relationship is an out-and-in relationship, for example, when owner A1 needs to transfer 10 units of digital resources to owner A2, in the object resource layer, a direct transfer transaction can be used to directly transfer digital resource 1 containing 10 units of digital resources, and the owner of digital resource 1 will change from owner A1 to owner A2. Figure 5 As shown, when the digital resource transfer relationship is a one-out-many-in relationship, for example, owner A2 needs to transfer 10 units of digital resources to owner B2, 5 units of digital resources to owner C2, and 5 units of digital resources to owner D2, then in the object resource layer, the digital resource 2 containing 20 units of digital resources can be split and transferred through a split transfer transaction to obtain digital resource 3 containing 10 units of digital resources, digital resource 4 containing 5 units of digital resources, and digital resource 5 containing 10 units of digital resources, where digital resource 3 belongs to owner B2, digital resource 4 belongs to owner C2, and digital resource 5 belongs to owner D2. Figure 5 As shown, when the digital resource transfer relationship is a multiple-out-one-in relationship, for example, owner A3 and owner B3 need to transfer 10 units of digital resources to owner C3 together, then in the object resource layer, digital resource 6 containing 5 units of digital resources and digital resource 7 containing 5 units of digital resources can be merged and transferred through a merge transfer type transaction to obtain digital resource 8 containing 10 units of digital resources, which belongs to owner C3. It should be understood that the above-mentioned owner can refer to the account address corresponding to the second account, and when transferring digital resources, the sum of the number of transferred-out units of digital resources corresponding to the second transferred-in accounts should be equal to the sum of the number of transferred-in units of digital resources corresponding to the second transferred-in accounts.

[0120] Optionally, the computer device may record the corresponding digital resource balance of the digital resources owned by each second account in the object resource layer, wherein the digital resource balance may be the sum of the number of digital resources per unit contained in the digital resources owned by the second account. For example, the second account W may own digital resource 9 and digital resource 10, wherein digital resource 9 contains 5 digital resources per unit and digital resource 10 contains 12 digital resources per unit, then the digital resource balance corresponding to the second account may be 17.

[0121] Through the method provided in the embodiment of the present application, transaction tasks in different field transaction scenarios are handed over to the corresponding field transaction components to complete, and the transfer and accounting process of digital resources or balance resources is uniformly completed by the micro-core component, which decouples the execution process of the transaction task from the transfer and accounting process of the digital resources or balance resources involved in the transaction task, and can realize the integrated accounting of digital resources and balance resources in multiple field transaction scenarios.

[0122] For further information, see Figure 6 , Figure 6 is a flow chart of a data processing method provided by an embodiment of the present application. The method may be performed by a computer device (for example, the above Figure 1 The following will take the method executed by a computer device as an example for explanation, wherein the data processing method may at least include the following steps S201-S206:

[0123] Step S201: receiving a transaction task through a target domain transaction component, and determining a task type of the transaction task through the target domain transaction component.

[0124] Step S202: Acquire an accounting sequence matching the task type.

[0125] Specifically, an accounting sequence refers to a series of accounting operations that are predetermined in a specific business scenario, after being defined by business rules and logic. These operations may include asset transfer, transaction confirmation, fund settlement, etc. It is understandable that the task type of each transaction task may correspond to a specific business scenario in the transaction scenario of its field. Therefore, one or more common configuration task types may be configured in advance, and an accounting sequence may be pre-made for each configuration task type, and the accounting sequence and the corresponding configuration task type may be stored, for example, in an accounting sequence database.

[0126] Specifically, if the accounting sequence database contains one or more configuration task types and the accounting sequence bound to each configuration task type, then a feasible implementation process for obtaining the accounting sequence that matches the task type may be: obtaining the accounting sequence database associated with the target domain transaction component; and determining the accounting sequence bound to the configuration task type with the same task type in the accounting sequence database as the accounting sequence that matches the task type.

[0127] Step S203, executing the transaction task according to the accounting sequence, obtaining sequence transaction operation data corresponding to the transaction task, determining the sequence transaction operation data as a transaction execution result, and sending the transaction execution result to the micro core component.

[0128] Specifically, in a feasible embodiment, the accounting sequence may include M accounting operations; M is a positive integer; then the transaction task is executed according to the accounting sequence, the sequence transaction operation data corresponding to the transaction task is obtained, and the sequence transaction operation data is sent to the micro-core component. A feasible implementation process may be: traverse M accounting operations to obtain the kth accounting operation; k is a positive integer less than or equal to M; according to the kth accounting operation and k-1 transaction operation data, the transaction task is executed to obtain the kth transaction operation data; when the traversal of M accounting operations is completed, the kth transaction operation data is determined as the sequence transaction operation data; and the sequence transaction operation data is sent to the micro-core component. Among them, one accounting operation can be used to obtain one transaction operation data, and the transaction operation data can also be considered as a type of accounting information. The accounting information that can be obtained includes accounting subjects, borrowing and returning directions, amounts, etc. The accounting information obtained through the accounting operations of the accounting sequence forms a series of standard accounting entry sequences, that is, sequence transaction operation data.

[0129] Step S204: in the micro core component, determining the resource type associated with the transaction execution result.

[0130] Step S205: If the resource type is a balance resource type, determine the balance transfer relationship of the S first accounts associated with the transaction task according to the transaction execution result, and perform double-entry transfer accounting processing on the balance resources of the S first accounts based on the balance transfer relationship; S is a positive integer.

[0131] Step S206: If the resource type is a digital resource type, determine the digital resource transfer relationship between L second accounts associated with the transaction task according to the transaction execution result, and perform equal value transfer accounting processing on the digital resources of the L second accounts based on the digital resource transfer relationship; L is a positive integer.

[0132] Specifically, the implementation of steps S204 to S206 can refer to the above Figure 3 The description of step S102 to step S104 in the corresponding embodiment will not be repeated here.

[0133] Through the method provided in the embodiment of the present application, by pre-making accounting sequences for transaction tasks of different task types, the sequence transaction operation data of each transaction business can be obtained quickly and accurately. The sequence transaction operation data can be used as the accounting entry of the transaction business, avoiding errors and omissions in manual operations, and also providing an accurate and reliable data basis for accounting in subsequent micro-core components.

[0134] For further information, see Figure 7 , Figure 7 Schematic diagram of a bookkeeping system provided in an embodiment of the present application. Figure 7 As shown, the accounting system 70 provided in the embodiment of the present application may include a Software as a Service (SAAS) platform, a general domain layer and an accounting micro-core. Among them, the SAAS platform is used to realize the SAASization of the accounting system. Product SAASization refers to the reconstruction and transformation of traditional stand-alone software products or services, based on cloud computing technology and network technology, to transform them into a cloud-based service model, which is provided to users through the network. Users only need to access the cloud service through the network to use the software functions anytime and anywhere, without having to worry about software installation, configuration, updates, etc., nor do they need to worry about the software's operating environment and hardware equipment. This can greatly improve the software's use efficiency and user experience. Figure 7 As shown in the figure, in the transaction scenarios of banking, third-party payment, insurance or various applications, the terminal side can be integrated with the corresponding wallet, and then the wallet can interact with the SAAS platform to perform transaction tasks in the corresponding transaction scenarios. Among them, the general domain layer is obtained by abstracting the general domain of the transaction scenario, and its implementation can be achieved through the above Figure 3 The domain transaction component described in the corresponding embodiment is implemented. Among them, the implementation of the accounting micro core is actually the above Figure 3 The micro-core components mentioned in the corresponding embodiments. It should be understood that Figure 7 The accounting system 70 shown can provide a one-stop accounting SAAS service for transaction tasks in transaction scenarios in various fields.

[0135] Further, please see Figure 8 , Figure 8 Schematic diagram of the architecture of an accounting system provided by an embodiment of the present application. Figure 8 As shown in the figure, the accounting system can be divided into three layers in terms of specific implementation: domain model layer, transaction accounting layer, and object resource layer. Figure 8 As shown, the domain model layer is mainly used to implement Figure 7 The general domain layer shown in the figure can be split into business domain subsystems based on the idea of ​​microservices. Figure 7 The bank general domain layer, the three-party payment general domain layer, etc. shown in the figure, each business domain subsystem can perform corresponding transaction tasks through the pre-made accounting sequence in the business domain. For details, please refer to the above Figure 6 The implementation of step S203 in the corresponding embodiment will not be described here. In addition, as shown in the figure, different general domain layers in the domain model layer can generate different transaction vouchers after executing corresponding transaction tasks, such as original vouchers in the banking domain, original vouchers in the payment domain, and original vouchers in the insurance domain, etc. These transaction vouchers can be used to prove that the transaction task has occurred or been completed. Figure 8 As shown in the figure, the transaction accounting layer is responsible for distributed accounting transactions and performs accounting entry levels, thereby ensuring the equal transfer balance of M-in and N-out digital resources and the double transfer balance of balance resources. Figure 8 As shown in Figure 1, the object resource layer is mainly responsible for managing the transfer of digital resources or balance resources. The application of the transaction accounting layer and the object resource layer can be found in the above Figure 3 The description of step S104 in the corresponding embodiment will not be repeated here.

[0136] It should be understood that the object resource layer does not need to understand in what fields the object resources or balance resources are used, that is, the accounting system architecture provided by the embodiment of the present application can achieve the decoupling of accounting, resource transfer, and transaction tasks, thereby improving the scalability of the accounting system.

[0137] It should be understood that by Figure 8 The accounting system shown is used to ensure the balance of resource transfer according to the transaction voucher. When the first account associated with the balance resource or the second account associated with the digital resource is recorded through the accounting system, if the account is to be operated, it can be realized through the account operation model. In the account operation model, the necessary operation primitives can be defined, and then the sub-closed loop full enumeration space operation is defined for the account and resource (balance resource or digital resource). The operation mode deduced from the theory MICE (Multiple Imputation by Chained Equations, missing value filling method) is implemented, so as to obtain an account operation model that can meet the resource and account operations, thereby ensuring the scalability of the accounting system.

[0138] Please also see Figure 9a , Figure 9a Schematic diagram of a first account operation model provided in an embodiment of the present application. Figure 9a As shown in the figure, through the first account operation model, you can create / cancel the first account, and you can also freeze or unfreeze the first account. The first account can correspond to a balance resource, and through the first account, you can receive, pay, transfer, freeze, and unfreeze the balance resource. Similarly, please refer to Figure 9b , Figure 9b Schematic diagram of a second account operation model provided in an embodiment of the present application. Figure 9bAs shown, through the second account operation model, the second account can be created / cancelled, and the second account can also be frozen or unfrozen. For the digital resources of the second account, operations such as generation, consumption, splitting, merging, locking, unlocking, merge transfer, direct transfer, and split transfer can be performed. It can be understood that generating digital resources means generating digital resources with unique identifiers; consuming digital resources means using digital resources in transactions, and after the digital resources are used, the digital resources with unique identifiers are invalid; freezing digital resources or balance resources means controlling a certain amount of balance resources or digital resources to avoid other transactions; unfreezing digital resources or balance resources means removing the quantity control on the balance resources or digital resources and opening them to other transactions.

[0139] By adopting the accounting system and account operation model provided in the embodiments of the present application, it is possible to realize the integrated accounting of digital resources and balance resources in transaction scenarios in multiple fields.

[0140] See also Fig.10 , Fig.10 1 is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device may be a computer program (including program code) running on a computer device, for example, the data processing device is an application software; the data processing device 1 may be used to execute the corresponding steps in the data processing method provided in an embodiment of the present application. Fig.10 As shown, the data processing device 1 may include: a transaction execution module 11, a type determination module 12, a first transfer accounting module 13 and a second transfer accounting module 14.

[0141] The transaction execution module 11 is used to receive the transaction task through the target domain transaction component, execute the transaction task through the target domain transaction component, obtain the transaction execution result, and send the transaction execution result to the micro core component; the target domain transaction component belongs to one or more domain transaction components;

[0142] A type determination module 12, used to determine the resource type associated with the transaction execution result in the micro core component;

[0143] The first transfer accounting module 13 is used for determining the balance transfer relationship of S first accounts associated with the transaction task according to the transaction execution result if the resource type is a balance resource type, and performing double-entry transfer accounting processing on the balance resources of the S first accounts based on the balance transfer relationship; S is a positive integer;

[0144] The second transfer accounting module 14 is used to determine the digital resource transfer relationship between L second accounts associated with the transaction task according to the transaction execution result if the resource type is a digital resource type, and perform equal-value transfer accounting processing on the digital resources of the L second accounts based on the digital resource transfer relationship; L is a positive integer; among the L second accounts after the equal-value accounting processing, the total number of transferred-out digital resources corresponding to the second accounts belonging to the transfer output type is equal to the total number of transferred-in digital resources corresponding to the second accounts belonging to the transfer input type.

[0145] The specific implementation of the transaction execution module 11, the type determination module 12, the first transfer accounting module 13 and the second transfer accounting module 14 can be found in the above Figure 3 The description of step S101 to step S104 in the corresponding embodiment will not be repeated here.

[0146] Among them, the transaction execution results include sequence transaction operation data;

[0147] The transaction execution module 11 includes: a task determination unit 111 , a sequence acquisition unit 112 and a sequence execution unit 113 .

[0148] The task determination unit 111 is used to receive the transaction task through the target domain transaction component, and determine the task type of the transaction task through the target domain transaction component;

[0149] A sequence acquisition unit 112, used to acquire an accounting sequence matching the task type;

[0150] The sequence execution unit 113 is used to execute the transaction task according to the accounting sequence, obtain the sequence transaction operation data corresponding to the transaction task, and send the sequence transaction operation data to the micro core component.

[0151] The specific implementation of the task determination unit 111, the sequence acquisition unit 112 and the sequence execution unit 113 can be found in the above Figure 6 The description of steps S201 to S203 in the corresponding embodiment will not be repeated here.

[0152] The sequence acquisition unit 112 includes: a database acquisition subunit 1121 and a sequence determination subunit 1122 .

[0153] The database acquisition subunit 1121 is used to acquire an accounting sequence database associated with the target domain transaction component; the accounting sequence database includes one or more configuration task types and an accounting sequence bound to each configuration task type;

[0154] The sequence determination subunit 1122 is used to determine the accounting sequence bound to the configuration task type with the same task type in the accounting sequence database as the accounting sequence matching the task type.

[0155] The specific implementation of the database acquisition subunit 1121 and the sequence determination subunit 1122 can be found in the above Figure 6 The description of step S202 in the corresponding embodiment will not be repeated here.

[0156] Wherein, the bookkeeping sequence includes M bookkeeping operations; M is a positive integer;

[0157] The sequence execution unit 113 includes: a traversal subunit 1131 , an execution subunit 1132 and a determination subunit 1133 .

[0158] The traversal subunit 1131 is used to traverse the M accounting operations and obtain the kth accounting operation; k is a positive integer less than or equal to M;

[0159] The execution subunit 1132 is used to execute the transaction task according to the kth accounting operation and k-1 transaction operation data to obtain the kth transaction operation data;

[0160] The determination subunit 1133 is used to determine k transaction operation data as sequence transaction operation data when the traversal of M accounting operations is completed; and send the sequence transaction operation data to the micro core component.

[0161] The specific implementation of the traversal subunit 1131, the execution subunit 1132 and the determination subunit 1133 can be found in the above Figure 6 The description of step S203 in the corresponding embodiment will not be repeated here.

[0162] The data processing device 1 further includes: a credential generation module 15 , a credential verification module 16 and a verification module 17 .

[0163] The voucher generation module 15 is used to generate a transaction voucher for the transaction execution result in the target domain transaction component, and send the transaction voucher to the micro core component;

[0164] The credential verification module 16 is used to verify the transaction credential in the micro core component and obtain a verification result;

[0165] The verification pass module 17 is used to execute the step of determining the resource type associated with the transaction execution result if the verification result is a verification pass result.

[0166] The specific implementation of the certificate generation module 15, the certificate verification module 16 and the verification module 17 can be found in the above Figure 3The optional description of step S102 in the corresponding embodiment will not be repeated here.

[0167] Among them, the transaction voucher includes signature data;

[0168] The credential verification module 16 includes: a public key signature verification unit 161 and a result determination unit 162 .

[0169] The public key signature verification unit 161 is used to determine the credential public key associated with the target domain transaction component in the micro core component;

[0170] The public key signature verification unit 161 is also used to perform signature verification processing on the signature data according to the certificate public key to obtain a signature verification result;

[0171] A result determination unit 162 is used to determine the verification result as a verification pass result if the signature verification result is a signature verification success result;

[0172] The result determination unit 162 is configured to determine the verification result as a signature verification failure result if the signature verification result is a signature verification failure result.

[0173] The specific implementation of the public key signature verification unit 161 and the result determination unit 162 can be found in the above Figure 3 The optional description of step S102 in the corresponding embodiment will not be repeated here.

[0174] Among them, the micro-core components include the transaction accounting layer and the object resource layer;

[0175] The first transfer accounting module 13 includes: a first relationship determination unit 131 , a first accounting unit 132 , an account determination unit 133 and a first transfer unit 134 .

[0176] A first relationship determination unit 131, configured to determine, in a transaction accounting layer, a balance transfer relationship of S first accounts associated with the transaction task according to a transaction execution result if the resource type is a balance resource type;

[0177] A first accounting unit 132, configured to perform double-entry accounting processing on the S first accounts based on the balance transfer relationship to obtain a double-entry accounting result;

[0178] The account determination unit 133 is used to determine the balance resource management accounts corresponding to the S first accounts respectively in the object resource layer if the double-entry bookkeeping result is a double-entry bookkeeping success result; one balance resource management account is used to manage the balance resources of one or more first accounts;

[0179] The first transfer unit 134 is configured to transfer the balance resources of the S first accounts according to the balance transfer relationship and the balance resource management accounts respectively corresponding to the S first accounts.

[0180] The specific implementation of the first relationship determination unit 131, the first accounting unit 132, the account determination unit 133 and the first transfer unit 134 can refer to the above Figure 3 The description of step S103 in the corresponding embodiment will not be repeated here.

[0181] The first accounting unit 132 includes: a first determining subunit 1321 and a first accounting subunit 1322 .

[0182] The first determining subunit 1321 is used to determine, based on the balance transfer relationship, a first account belonging to the debit type among the S first accounts as a first debit account, and to determine a first account belonging to the repayment type among the S first accounts as a first repayment account;

[0183] The first determining subunit 1321 is further used to determine the debit balances respectively corresponding to the first debit accounts according to the balance transfer relationship;

[0184] The first determining subunit 1321 is further used to determine the repayment balances corresponding to the first repayment accounts respectively according to the balance transfer relationship;

[0185] The first accounting subunit 1322 is used to record the debit balances corresponding to the first debit accounts and the repayment balances corresponding to the first repayment accounts if the sum of the debit balances corresponding to the first debit accounts is equal to the repayment balances corresponding to the first repayment accounts, and determine that the double-entry accounting result is a successful double-entry accounting result.

[0186] The specific implementation of the first determination subunit 1321 and the first accounting subunit 1322 can refer to the above Figure 3 The description of step S103 in the corresponding embodiment will not be repeated here.

[0187] The first transfer unit 134 includes a first transfer sub-unit 1341 and a second transfer sub-unit 1342 .

[0188] The first transfer subunit 1341 is used to perform numerical update processing on the account balances in the S first accounts based on the balance transfer relationship if the balance resource management accounts corresponding to the S first accounts are the same; an account balance is used to represent the amount of balance resources that can be exchanged for a first account from the balance resource management account;

[0189] The second transfer subunit 1342 is configured to perform balance resource transfer processing on the balance resource management accounts respectively corresponding to the S first accounts based on the balance transfer relationship to obtain a balance resource transfer result if the balance resource management accounts respectively corresponding to the S first accounts are different;

[0190] The second transfer subunit 1342 is further configured to perform numerical update processing on the account balances in the S first accounts according to the balance resource transfer result.

[0191] The specific implementation of the first transfer subunit 1341 and the second transfer subunit 1342 can refer to the above Figure 3 The description of step S103 in the corresponding embodiment will not be repeated here.

[0192] Among them, the micro-core components include the transaction accounting layer and the object resource layer;

[0193] The second transfer accounting module 14 includes: a second relationship determination unit 141 , a second accounting unit 142 and a second transfer unit 143 .

[0194] The second relationship determination unit 141 is configured to determine, in the transaction accounting layer, a digital resource transfer relationship between L second accounts associated with the transaction task according to the transaction execution result if the resource type is a balance resource type;

[0195] The second accounting unit 142 is used to perform equal-value accounting processing on the digital resources of the L second accounts based on the digital resource transfer relationship to obtain an equal-value accounting result;

[0196] The second transfer unit 143 is configured to perform digital resource transfer processing on the digital resources of the L second accounts based on the digital resource transfer relationship in the object resource layer if the equal value accounting result is a successful equal value accounting result.

[0197] The specific implementation of the second relationship determination unit 141, the second accounting unit 142 and the second transfer unit 143 can refer to the above Figure 3 The description of step S104 in the corresponding embodiment will not be repeated here.

[0198] The second accounting unit 142 includes: a second determining subunit 1421 and a second accounting subunit 1422 .

[0199] The second determining subunit 1421 is used to determine, based on the digital resource transfer relationship, a second account belonging to the transfer output type among the L second accounts as a second transfer-out account, and to determine a second account belonging to the transfer input type among the L second accounts as a second transfer-in account;

[0200] The second determining subunit 1421 is further used to determine the number of transfer-out unit digital resources corresponding to the second transfer-out accounts respectively according to the digital resource transfer relationship;

[0201] The second determining subunit 1421 is further used to determine the number of transferred digital resources corresponding to the second transferred accounts according to the digital resource transfer relationship;

[0202] The second accounting subunit 1422 is used to record the number of transfer-out unit digital resources corresponding to the second transfer-in account and the number of transfer-in unit digital resources corresponding to the second transfer-in account if the sum of the number of transfer-out unit digital resources corresponding to the second transfer-in account is equal to the sum of the number of transfer-in unit digital resources corresponding to the second transfer-in account, and determine that the equal-value accounting result is a successful equal-value accounting result.

[0203] The specific implementation of the second determination subunit 1421 and the second accounting subunit 1422 can refer to the above Figure 3 The description of step S104 in the corresponding embodiment will not be repeated here.

[0204] See also Fig.11 , Fig.11 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.11 As shown above Fig.10 The data processing device 1 in the corresponding embodiment can be applied to a computer device 1000, and the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 may also include: a user interface 1003, 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, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be 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 Fig.11 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0205] In such Fig.11 In the computer device 1000 shown, the network interface 1004 can provide a network communication network element; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0206] Receive transaction tasks through the target domain transaction component, execute transaction tasks through the target domain transaction component, obtain transaction execution results, and send the transaction execution results to the micro core component; the target domain transaction component belongs to one or more domain transaction components;

[0207] In the microcore component, determine the resource type associated with the transaction execution result;

[0208] If the resource type is a balance resource type, the balance transfer relationship of the S first accounts associated with the transaction task is determined according to the transaction execution result, and the balance resources of the S first accounts are double-entry transferred and recorded based on the balance transfer relationship; S is a positive integer;

[0209] If the resource type is a digital resource type, the digital resource transfer relationship between the L second accounts associated with the transaction task is determined according to the transaction execution result, and the digital resources of the L second accounts are subjected to equal transfer accounting processing based on the digital resource transfer relationship; L is a positive integer; among the L second accounts after the equal value accounting processing, the total number of transferred-out digital resources corresponding to the second accounts belonging to the transfer output type is equal to the total number of transferred-in digital resources corresponding to the second accounts belonging to the transfer input type.

[0210] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 3 , Figure 6 The description of the data processing method in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here.

[0211] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device 1 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, the computer program can execute the above-mentioned data processing device 1. Figure 3 , Figure 6 The description of the above data processing method in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0212] The computer-readable storage medium may be the data processing 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 (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Further, 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.

[0213] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above Figure 3 , Figure 6 A method provided by any corresponding embodiment.

[0214] 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 term "comprising" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other step units inherent to these processes, methods, devices, products, or equipment.

[0215] Those of ordinary skill 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 network elements in the above description. Whether these network elements are executed 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 network elements for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0216] The above disclosure is only the preferred embodiment of the present application, which 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 server, the server includes one or more domain transaction components and a micro core component; the method includes: receiving a transaction task through a target domain transaction component, executing the transaction task through the target domain transaction component, obtaining a transaction execution result, and sending the transaction execution result to the micro core component; the target domain transaction component belongs to the one or more domain transaction components; In the micro core component, determining a resource type associated with the transaction execution result; If the resource type is a balance resource type, the balance transfer relationship of the S first accounts associated with the transaction task is determined according to the transaction execution result, and double-entry transfer accounting processing is performed on the balance resources of the S first accounts based on the balance transfer relationship; S is a positive integer; If the resource type is a digital resource type, the digital resource transfer relationship between L second accounts associated with the transaction task is determined according to the transaction execution result, and the digital resources of the L second accounts are subjected to equal-value transfer accounting processing based on the digital resource transfer relationship; L is a positive integer; among the L second accounts after the equal-value accounting processing, the total number of transferred-out digital resources corresponding to the second accounts belonging to the transfer output type is equal to the total number of transferred-in digital resources corresponding to the second accounts belonging to the transfer input type.

2. The method according to claim 1, characterized in that The transaction execution result includes sequence transaction operation data; The receiving of the transaction task through the target domain transaction component, executing the transaction task through the target domain transaction component, obtaining the transaction execution result, and sending the transaction execution result to the micro core component includes: Receive transaction tasks through target domain transaction components; Determining the task type of the transaction task through the target domain transaction component; Obtaining an accounting sequence matching the task type; The transaction task is executed according to the accounting sequence, sequence transaction operation data corresponding to the transaction task is obtained, and the sequence transaction operation data is sent to the micro core component.

3. The method according to claim 2, characterized in that The obtaining of an accounting sequence matching the task type includes: Acquire an accounting sequence database associated with the target domain transaction component; the accounting sequence database includes one or more configuration task types and an accounting sequence bound to each configuration task type; The accounting sequence in the accounting sequence database that is bound to the configuration task type that is the same as the task type is determined as the accounting sequence that matches the task type.

4. The method according to claim 2, characterized in that: The bookkeeping sequence includes M bookkeeping operations; M is a positive integer; The executing the transaction task according to the accounting sequence, obtaining the sequence transaction operation data corresponding to the transaction task, and sending the sequence transaction operation data to the micro core component includes: Traverse the M accounting operations and obtain the kth accounting operation; k is a positive integer less than or equal to M; Execute the transaction task according to the kth accounting operation and k-1 transaction operation data to obtain the kth transaction operation data; When the traversal of the M accounting operations is completed, the k transaction operation data are determined as sequence transaction operation data; and the sequence transaction operation data are sent to the micro core component.

5. The method according to claim 1, characterized in that Also includes: In the target domain transaction component, a transaction voucher for the transaction execution result is generated, and the transaction voucher is sent to the micro core component; In the micro core component, the transaction voucher is verified to obtain a verification result; If the verification result is a verification pass result, a step of determining a resource type associated with the transaction execution result is performed.

6. The method according to claim 5, characterized in that The transaction voucher includes signature data; in the micro core component, the transaction voucher is verified to obtain a verification result, including: In the micro core component, determining a credential public key associated with the target domain transaction component; Performing signature verification on the signature data according to the certificate public key to obtain a signature verification result; If the signature verification result is a successful signature verification result, then the verification result is determined to be a passed verification result; If the signature verification result is a signature verification failure result, then the verification result is determined to be a signature verification failure result.

7. The method according to claim 1, characterized in that The micro-core component includes a transaction accounting layer and an object resource layer; If the resource type is a balance resource type, determining the balance transfer relationship of the S first accounts associated with the transaction task according to the transaction execution result, and performing double-entry transfer accounting processing on the balance resources of the S first accounts based on the balance transfer relationship, including: If the resource type is a balance resource type, then in the transaction accounting layer, the balance transfer relationship of the S first accounts associated with the transaction task is determined according to the transaction execution result; Perform double-entry bookkeeping processing on the S first accounts based on the balance transfer relationship to obtain a double-entry bookkeeping result; If the double-entry bookkeeping result is a double-entry bookkeeping success result, then in the object resource layer, determining the balance resource management accounts corresponding to the S first accounts respectively; one balance resource management account is used to manage the balance resources of one or more first accounts; The balance resources of the S first accounts are transferred according to the balance transfer relationship and the balance resource management accounts respectively corresponding to the S first accounts.

8. The method according to claim 7, characterized in that The performing double-entry bookkeeping processing on the S first accounts based on the balance transfer relationship to obtain a double-entry bookkeeping result includes: Based on the balance transfer relationship, determining a first account belonging to the debit type among the S first accounts as a first debit account, and determining a first account belonging to the repay type among the S first accounts as a first repay account; Determine the debit balances respectively corresponding to the first debit accounts according to the balance transfer relationship; Determine the repayment balances corresponding to the first repayment accounts respectively according to the balance transfer relationship; If the sum of the debit balances corresponding to the first debit accounts is equal to the sum of the repayment balances corresponding to the first repayment accounts, the debit balances corresponding to the first debit accounts and the repayment balances corresponding to the first repayment accounts are recorded to determine that the double-entry bookkeeping result is a successful double-entry bookkeeping result.

9. The method according to claim 7, characterized in that: The transferring of the balance resources of the S first accounts according to the balance transfer relationship and the balance resource management accounts respectively corresponding to the S first accounts includes: If the balance resource management accounts corresponding to the S first accounts are the same, then the account balances in the S first accounts are numerically updated based on the balance transfer relationship; an account balance is used to represent the amount of balance resources that can be exchanged for a first account from the balance resource management account; If the balance resource management accounts respectively corresponding to the S first accounts are different, performing balance resource transfer processing on the balance resource management accounts respectively corresponding to the S first accounts based on the balance transfer relationship to obtain a balance resource transfer result; The account balances in the S first accounts are numerically updated according to the balance resource transfer result.

10. The method according to claim 1, characterized in that The micro-core component includes a transaction accounting layer and an object resource layer; If the resource type is a digital resource type, determining the digital resource transfer relationship between the L second accounts associated with the transaction task according to the transaction execution result, and performing equal-value transfer accounting processing on the digital resources of the L second accounts based on the digital resource transfer relationship, including: If the resource type is a balance resource type, then in the transaction accounting layer, a digital resource transfer relationship between L second accounts associated with the transaction task is determined according to the transaction execution result; Based on the digital resource transfer relationship, equal-value accounting processing is performed on the digital resources of the L second accounts to obtain an equal-value accounting result; If the equal-value accounting result is an equal-value accounting success result, then in the object resource layer, digital resource transfer processing is performed on the digital resources of the L second accounts based on the digital resource transfer relationship.

11. The method according to claim 9, characterized in that The performing equal-value accounting processing on the digital resources of the L second accounts based on the digital resource transfer relationship to obtain an equal-value accounting result includes: Based on the digital resource transfer relationship, determining a second account belonging to the transfer output type among the L second accounts as a second transfer-out account, and determining a second account belonging to the transfer input type among the L second accounts as a second transfer-in account; Determine the number of digital resources to be transferred out corresponding to each of the second transfer-out accounts according to the digital resource transfer relationship; Determine the number of transferred digital resources in units corresponding to each of the second transferred accounts according to the digital resource transfer relationship; If the sum of the number of transfer-out unit digital resources corresponding to the second transfer-in account is equal to the sum of the number of transfer-in unit digital resources corresponding to the second transfer-in account, then the number of transfer-out unit digital resources corresponding to the second transfer-out account and the number of transfer-in unit digital resources corresponding to the second transfer-in account are recorded, and the equal-value accounting result is determined to be a successful equal-value accounting result.

12. A data processing device, characterized in that: The device runs on a server, and the server includes one or more domain transaction components and a micro core component; the device includes: A transaction execution module, configured to receive a transaction task through a target domain transaction component, execute the transaction task through the target domain transaction component, obtain a transaction execution result, and send the transaction execution result to the micro core component; the target domain transaction component belongs to the one or more domain transaction components; A type determination module, used to determine, in the micro core component, a resource type associated with the transaction execution result; a first transfer accounting module, configured to determine, if the resource type is a balance resource type, a balance transfer relationship of S first accounts associated with the transaction task according to the transaction execution result, and perform double-entry transfer accounting processing on the balance resources of the S first accounts based on the balance transfer relationship; S is a positive integer; The second transfer accounting module is used to determine the digital resource transfer relationship between L second accounts associated with the transaction task according to the transaction execution result if the resource type is a digital resource type, and perform equal-value transfer accounting processing on the digital resources of the L second accounts based on the digital resource transfer relationship; L is a positive integer; among the L second accounts after the equal-value accounting processing, the total number of transferred-out digital resources corresponding to the second accounts belonging to the transfer output type is equal to the total number of transferred-in digital resources corresponding to the second accounts belonging to the transfer input type.

13. 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 program code, and the processor is used to call the program code to execute the method described in any one of claims 1-11.

14. 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 by a processor and executing the method according to any one of claims 1 to 11.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 11 can be performed.