Resource interaction risk data processing method, system and device based on block chain
By pre-execution processing and call the risk control service cluster on the resource interaction service data on the chain, target interaction service data that does not involve the risk resource pool is selected, and the problem of inefficient risk identification in the existing technology is solved, and comprehensive risk detection and efficient control of resource holders in the blockchain system is realized.
Patent Information
- Application Number
- CN202311243192.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2025-03-25
AI Technical Summary
In existing blockchain-based resource transfer services, it is difficult to accurately identify and timely control resource holders who have not undergone resource transfer operations, resulting in inefficient risk identification.
By obtaining the resource interaction business data to be put on the chain, performing business pre-execution processing, calling intelligent risk control contracts, determining the risk control service cluster, and obtaining a collection of risk resource pools to filter out the target interaction business data that does not involve the risk resource pool.
It has realized comprehensive risk detection of massive resource holders in the blockchain system, improved the efficiency of risk identification and control and processing, and ensured the security of data resources.
Smart Images

Figure CN119693131A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based resource interaction risk data processing method, system, device, computer equipment, storage medium and computer program product. Background Art
[0002] With the development of blockchain technology and the promotion and application of various blockchain-based businesses, the requirements for the security processing of various blockchain-based businesses are also increasing. Among them, blockchain-based businesses specifically include resource transactions and resource transfers. For blockchain-based resource transfer businesses, in order to ensure the security of data resources during business processing, it is necessary to identify and evaluate the risks of the resource transfer process and promptly resolve or eliminate the risk problems in the resource transfer process.
[0003] Traditionally, for business processing such as blockchain-based resource transfer, historical business processing data and historical transfer data are usually collected, and risk identification is carried out based on historical business processing data or historical transfer data to obtain one or more resource owner accounts that are at risk of resource leakage or malicious resource transfer, so as to achieve management and control of risky resource owner accounts and ensure data resource security.
[0004] However, the current risk identification method for blockchain-based business processing relies too much on historical transaction data, and cannot accurately identify and timely control resource holders who have not transferred resources. Therefore, the current risk identification method cannot fully detect the massive resource holders in the entire blockchain system, and its risk identification and control efficiency still needs to be improved. Summary of the invention
[0005] Based on this, it is necessary to provide a blockchain-based resource interaction risk data processing method, system, device, computer equipment, computer-readable storage medium and computer program product that can improve the efficiency of risk assessment and control processing in response to the above technical problems.
[0006] In a first aspect, the present application provides a resource interaction risk data processing method based on blockchain, comprising:
[0007] Acquire each resource interaction service data to be uploaded to the chain, and perform service pre-execution processing based on each resource interaction service data to be uploaded to the chain to obtain each service pre-execution result;
[0008] Calling the smart risk control contract deployed on the blockchain, determining the risk control service cluster that matches the pre-execution result of each of the services, and obtaining the risk resource pool set determined by each of the risk control service clusters; the risk control service cluster includes a plurality of risk control service nodes, and the risk control service nodes are used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-order resource pool set associated with the main resource pool, and the second-order resource pool set associated with the first-order resource pool set, and determine the risk resource pool according to the risk assessment data;
[0009] According to the risk resource pool set, each of the business pre-execution results is traversed and screened to obtain target interactive business data that does not involve the risk resource pool.
[0010] In the second aspect, the present application also provides a resource interaction risk data processing system based on blockchain. The system includes a blockchain master node and a risk control service cluster;
[0011] The blockchain master node is used to obtain each resource interaction business data to be uploaded to the chain, and perform business pre-execution processing based on each resource interaction business data to be uploaded to the chain to obtain each business pre-execution result; call the smart risk control contract deployed on the blockchain to determine the risk control service cluster that matches each business pre-execution result;
[0012] The risk control service cluster is used to determine a risk resource pool set corresponding to each of the business pre-execution results; the risk control service cluster includes a plurality of risk control service nodes, and the risk control service nodes are used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-order resource pool set associated with the main resource pool, and the second-order resource pool set associated with the first-order resource pool set, and determine the risk resource pool according to the risk assessment data;
[0013] The blockchain master node is also used to traverse and screen the pre-execution results of each of the businesses according to the risk resource pool set to obtain target interactive business data that does not involve the risk resource pool.
[0014] In a third aspect, the present application also provides a resource interaction risk data processing device based on blockchain, comprising:
[0015] A business pre-execution processing module is used to obtain each resource interaction business data to be uploaded to the chain, and perform business pre-execution processing based on each resource interaction business data to be uploaded to the chain to obtain each business pre-execution result;
[0016] A risk resource pool set acquisition module is used to call the smart risk control contract deployed on the blockchain, determine the risk control service cluster that matches the pre-execution result of each of the businesses, and obtain the risk resource pool set determined by each of the risk control service clusters; the risk control service cluster includes multiple risk control service nodes, and the risk control service nodes are used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-level resource pool set associated with the main resource pool, and the second-level resource pool set associated with the first-level resource pool set, and determine the risk resource pool according to the risk assessment data;
[0017] The target interactive service data acquisition module is used to traverse and screen the service pre-execution results according to the risk resource pool set to obtain the target interactive service data that does not involve the risk resource pool.
[0018] In a fourth aspect, the present application provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0019] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0020] In a sixth aspect, the present application provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0021] In the above-mentioned resource interaction risk data processing method, system, device, computer equipment, storage medium and computer program product based on blockchain, by obtaining each resource interaction business data to be uploaded to the chain, and performing business pre-execution processing based on each resource interaction business data to be uploaded to the chain, to obtain each business pre-execution result, and then by calling the intelligent risk control contract deployed by the blockchain, determine the risk control service cluster that matches each business pre-execution result, and obtain the risk resource pool set determined by each risk control service cluster. Among them, the risk control service cluster includes multiple risk control service nodes, and the risk control service node is used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-level resource pool set associated with the main resource pool, and the second-level resource pool set associated with the first-level resource pool set, and determine the risk resource pool according to the risk assessment data, so that based on the risk resource pool determined by multiple risk control service nodes, the risk resource pool set corresponding to the risk control service cluster can be further obtained. Furthermore, according to the risk resource pool set, the pre-execution results of each business are traversed and screened to obtain target interaction business data that does not involve the risk resource pool, thereby realizing the risk resource pool set determined by each risk control service cluster, and performing real-time risk assessment and risk identification on the current resource interaction business data to be uploaded to the chain, so as to eliminate the resource interaction business data involving the risk resource pool, block the risk interaction in the resource interaction process, and obtain the target interaction business data that does not involve the risk resource pool, so as to carry out business processing and chain processing based on the target interaction business data that does not involve the risk resource pool in the future, thereby improving the risk identification and management efficiency of resource interaction business based on blockchain. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are 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.
[0023] Figure 1 A schematic diagram of the structure of a data sharing system in one embodiment;
[0024] Figure 2 A schematic diagram of the structure of a blockchain in one embodiment;
[0025] Figure 3 Schematic diagram of a process of generating a new block in one embodiment;
[0026] Figure 4 This is an application environment diagram of a resource interaction risk data processing method based on blockchain in one embodiment;
[0027] Figure 5 The figure is a flowchart of a resource interaction risk data processing method based on blockchain in one embodiment;
[0028] Figure 6 A schematic diagram of a process for obtaining a risk resource pool set determined by each risk control service cluster in an embodiment;
[0029] Figure 7 A schematic diagram of a process for obtaining a risk resource pool set determined by each risk control service cluster in another embodiment;
[0030] Figure 8 A schematic diagram of a process for determining risk assessment data corresponding to each main resource pool in an embodiment;
[0031] Fig. 9 A schematic diagram of secondary resource interaction corresponding to the current risk control service node in one embodiment;
[0032] Fig.10 A schematic diagram of a process flow of a resource interaction risk data processing method based on blockchain in another embodiment;
[0033] Fig.11 It is a timing diagram of a resource interaction risk data processing method based on blockchain in one embodiment;
[0034] Fig.12 The present invention is a schematic diagram of the architecture of a resource interaction risk data processing system based on blockchain in one embodiment;
[0035] Fig.13 A schematic diagram of a process of processing resource interaction risk data using a blockchain-based resource interaction risk data processing system in one embodiment;
[0036] Fig.14 It is a schematic diagram of the architecture of a resource interaction risk data processing system based on blockchain in another embodiment;
[0037] Fig.15 It is a schematic diagram of a process of processing resource interaction risk data using a blockchain-based resource interaction risk data processing system in another embodiment;
[0038] Fig.16 It is a structural block diagram of a resource interaction risk data processing device based on blockchain in one embodiment;
[0039] Fig.17 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0041] Before going into detail, some terms involved in this application are explained first.
[0042] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0043] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, monitoring network status, monitoring node equipment health status, etc. The platform product service layer provides the basic capabilities and implementation framework of typical applications. Developers can complete the blockchain implementation of business logic based on these basic capabilities and superimpose business characteristics. The application service layer provides application services based on blockchain solutions for business participants to use.
[0044] The resource interaction risk data processing method based on blockchain provided in the embodiments of the present application specifically relates to blockchain technology and can be applied to data sharing systems. Figure 1 The data sharing system shown, the data sharing system 100 refers to a system for sharing data between nodes, and the data sharing system may include multiple nodes 101, and the multiple nodes 101 may refer to each client in the data sharing system. Each node 101 can receive input information when performing normal work, and maintain the shared data in the data sharing system based on the received input information. In order to ensure the information intercommunication within the data sharing system, there may be an information connection between each node in the data sharing system, and information can be transmitted between nodes through the above information connection. For example, when any node in the data sharing system receives input information, other nodes in the data sharing system obtain the input information according to the consensus algorithm, and store the input information as data in the shared data, so that the data stored on all nodes in the data sharing system are consistent.
[0045] Among them, each node in the data sharing system has a corresponding node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so that the generated blocks can be broadcast to other nodes in the data sharing system according to the node identifiers of other nodes. Each node can maintain a node identifier list as shown in the following table, and store the node name and node identifier in the node identifier list accordingly. Among them, the node identifier can be an IP (Internet Protocol, a protocol for interconnecting networks) address and any other information that can be used to identify the node. Each node in the data sharing system stores an identical blockchain (BlockChain). The blockchain consists of multiple blocks, see Figure 2 The blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores the input information characteristic value, version number, timestamp and difficulty value, and the block body stores the input information; the next block of the genesis block takes the genesis block as the parent block, and the next block also includes a block header and a block body. The block header stores the input information characteristic value of the current block, the block header characteristic value, version number, timestamp and difficulty value of the parent block, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.
[0046] The specific types of blockchain include public blockchain, private blockchain and consortium blockchain. Public blockchain is a public blockchain, and the access and writing permissions are open to everyone. Private blockchain is a private blockchain, and the access and writing permissions are only controlled by a certain organization or institution. Consortium blockchain is a blockchain of an institutional alliance, and the access and writing permissions are only open to nodes that join the alliance. The difference between different types of blockchain lies in the access and writing permissions, as well as the degree of decentralization. Specifically, when generating each block in the blockchain, refer to Figure 3 , including steps such as submitting transactions, broadcasting transactions, pre-executing transactions, proposing blocks, verifying blocks, consensus voting and submitting blocks. Specifically, the client submits a blockchain transaction, such as contract creation, calling transactions, certificate management transactions, etc. Then, the transaction is broadcast to other nodes in the alliance through the network. Then, the block-producing node selects a batch of transactions from the transaction pool, schedules and executes them in parallel to obtain the results, generates a directed acyclic graph, and broadcasts the generated blocks and directed acyclic graphs to other consensus nodes through the consensus module. In the process of verifying the block, the proposal block is received, the transaction is executed in parallel based on the directed acyclic graph, and the results are verified to be consistent. If the results are consistent, a consensus vote is performed on the proposal block based on the corresponding consensus mechanism. The block that completes the consensus vote is submitted to the ledger to complete the disk operation.
[0047] The resource interaction risk data processing method based on blockchain provided in the embodiments of the present application can be applied to Figure 4In the application environment shown. The application environment includes a block body 402, a blockchain master node 404, and a risk control service cluster 406, wherein the block body 402 stores the resource interaction business data to be chained, including both the resource interaction business data involving the normal resource pool (which can also be understood as the normal interaction account involved in the resource interaction business process) and the resource interaction business data involving the risk resource pool (which can also be understood as the normal interaction account involved in the resource interaction business process). The blockchain master node 404 obtains the resource interaction business data to be chained from the block body 402, and performs business pre-execution processing based on the resource interaction business data to be chained to obtain the pre-execution results of each business. Further, the blockchain master node 404 determines the risk control service cluster 406 that matches the pre-execution results of each business by calling the intelligent risk control contract deployed by the blockchain. The risk control service cluster 406 is used to determine the risk resource pool set after receiving the business pre-execution result, and feed the risk resource pool set back to the blockchain master node 404, so that the blockchain master node 404 can further traverse and filter the business pre-execution results according to the risk resource pool set to obtain the target interactive business data that does not involve the risk resource pool. After obtaining the target interactive business data that does not involve the risk resource pool, the blockchain master node 404 specifically performs execution processing and chain processing based on the target interactive business data that does not involve the risk resource pool, and eliminates the resource interaction business data involving the risk resource pool, thereby reducing the resource interaction risk in the blockchain.
[0048] Among them, the block body 402, the blockchain master node 404 and the risk control service cluster 406 can all be implemented through a terminal or a server. Among them, the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented with an independent server or a server cluster composed of multiple servers. The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.
[0049] In an exemplary embodiment, Figure 5 As shown in the figure, a resource interaction risk data processing method based on blockchain is provided, and the method is applied to Figure 1 The blockchain master node 404 in the example is used to illustrate, including the following steps S502 to S506. Among them:
[0050] Step S502: Acquire each resource interaction service data to be uploaded to the chain, and perform service pre-execution processing based on each resource interaction service data to be uploaded to the chain to obtain each service pre-execution result.
[0051] Among them, each resource interaction business data to be uploaded to the chain represents each resource interaction business data to be stored in the blockchain, and the resource interaction business data can be understood as data related to resource transaction business based on the blockchain, and the resource transaction business can be understood as the process of transferring certain resources or assets from one or some resource pools to other resource pools.
[0052] The resource pool in the blockchain can be understood as an account on the blockchain, which can include resource transferors and resource receivers, and the resource interaction business data to be uploaded specifically includes resource transferors, resource receivers, and resource interaction amounts. In order to perform service segmentation on the resource interaction business data to be uploaded, a corresponding interaction hash value is also set for the resource interaction business data to be uploaded. Among them, based on the interaction hash value corresponding to the resource interaction business data to be uploaded, after further processing such as remainder, the risk control service node matching the corresponding resource interaction business data to be uploaded can be determined according to the remainder result.
[0053] Specifically, by obtaining each resource interaction business data to be uploaded to the chain, and obtaining the pre-execution method corresponding to the business pre-execution processing, business pre-execution processing is performed based on each resource interaction business data to be uploaded to the chain in accordance with the pre-execution method that matches the business pre-execution processing, and the business pre-execution result corresponding to each resource interaction business data to be uploaded to the chain is obtained.
[0054] Among them, the pre-execution mode is a single execution, which does not change the data status of each resource interaction service data to be chained, which is different from the traditional standard service execution mode. Among them, in the traditional standard service execution mode, the status will be submitted after each resource interaction service is executed, and after the current resource interaction service is executed and the status is submitted, the next resource interaction service will be executed. That is, in the traditional standard service execution mode, each resource interaction service is executed serially, and the next resource interaction service is executed only after the previous resource interaction service is successfully executed. In addition, during the execution process, the data status of each resource interaction service data to be chained needs to be changed.
[0055] Furthermore, according to a single execution method that matches the business pre-execution processing, business pre-execution processing is performed based on each resource interaction business data to be uploaded to the chain, that is, the corresponding resource interaction business can be executed in parallel for each resource interaction business data to be uploaded to the chain, and there is no need to execute the next resource interaction business after the previous resource interaction business is successfully executed and the status is submitted, and the data status of each resource interaction business data to be uploaded to the chain is not changed. The pre-execution method can be adopted to execute each resource interaction business in the initial state, and the business pre-execution result corresponding to each resource interaction business data to be uploaded to the chain is obtained, so that each resource interaction business data to be uploaded to the chain can be effectively managed and controlled, avoiding the direct execution of resource interaction business involving risk resource pools, which may lead to resource interaction risks, and ensure the security of resource interaction based on blockchain.
[0056] Among them, the initial state of each resource interaction service is understood as the state of data resources in each resource pool when the resource interaction service has not been executed. Specifically, for example, for resource pool A, which stores 20 resource blocks, two resource interaction services need to be executed, resource interaction service 1: resource pool A transfers 10 resource blocks to resource pool B, and resource interaction service 2: resource pool A transfers 10 resource blocks to resource pool C. Among them, resource pool A stores 20 resource blocks (that is, the number of resource blocks stored in resource pool A is 20), which is the state of resource interaction service 1 and resource interaction service 2 at the beginning.
[0057] It is understandable that if the traditional standard service execution method is used, when resource interaction service 2 starts to be executed, since resource interaction service 1 needs to be executed first, that is, resource pool A needs to transfer 10 resource blocks to resource pool B first, after executing resource interaction service 1, the number of resource blocks stored in resource pool A changes from 20 blocks to 10 blocks, and its data resource state changes. Then, when executing resource interaction service 2, the number of resource blocks stored in resource pool A is 10 blocks, and after executing resource interaction service 2, the number of resource blocks stored in resource pool A is 0 blocks.
[0058] If the pre-execution mode is adopted, each resource interaction service is executed in the initial state, that is, when executing resource interaction service 1 and resource interaction service 2, the number of resource blocks in resource pool A is maintained at 20 blocks and is not modified. In other words, since there may be resource interaction risks in the resource interaction process, it is not certain whether resource interaction service 1 can be successfully executed, and resource interaction service 2 is not executed on the basis of the successful execution of resource interaction service 1. Instead, when executing resource interaction service 1 and resource interaction service 2, the number of resource blocks in resource pool A is maintained at the initial state, that is, the state of 20 resource blocks. Then, in the pre-execution mode, after executing resource interaction service 1, the number of resource blocks stored in resource pool A is 10 blocks. Similarly, after executing resource interaction service 2, the number of resource blocks stored in resource pool A is also 10 blocks.
[0059] Exemplarily, the pre-execution mode EXEC corresponding to the business pre-execution process is expressed by the following formula (1): pre :
[0060] EXEC pre =State1→TX1→State1→TX2→State1→… (1)
[0061] Among them, EXEC pre Indicates the pre-execution mode, TX1, TX2, etc. indicate multiple resource interaction services, and State1 indicates the initial data state of the resource interaction service data to be uploaded (i.e., the data resource state in each resource pool before the resource interaction service is executed). Combined with formula (1), it can be seen that during the service pre-execution processing, the data state of each resource interaction service does not change, and all are State1, i.e., the initial data state.
[0062] Furthermore, the standard service execution mode EXEC is expressed by the following formula (2): ori :
[0063] EXEC ori =State1→TX1→State2→TX2→State3→… (2)
[0064] Among them, EXEC oriIndicates the standard business execution mode, TX1, TX2, etc. indicate multiple resource interaction businesses, State1 indicates the initial data state of each resource interaction business data to be uploaded to the chain, and State2, State3, etc. indicate the completion state submitted after the execution of each resource interaction business data to be uploaded to the chain. According to formula (2), in the standard business execution process, each resource interaction business is executed serially, and the next resource interaction business is executed only after the previous resource interaction business is successfully executed. Therefore, in the standard business execution process, the data state of each resource interaction business data to be uploaded to the chain will be changed. Since each resource interaction business will be executed directly, it is impossible to perform risk control on each resource interaction business data to be uploaded to the chain in advance.
[0065] Optionally, the following formula (3) is specifically used to represent the service pre-execution result PreSet corresponding to the resource interaction service data to be uploaded to the chain:
[0066] PreSet=[<Hash,From,To,Value> (3)
[0067] Among them, PreSet represents the business pre-execution result, Hash represents the interaction hash value, From represents the resource transferor, To represents the resource receiver, and Value represents the resource interaction amount. In other words, the business pre-execution result is a list consisting of the interaction hash value, resource transferor, resource receiver, and resource interaction amount. Among them, the resource transferor From and the resource receiver To can be understood as the interaction resource pool on the blockchain, that is, the resource interaction account on the blockchain.
[0068] Step S504, calling the intelligent risk control contract deployed on the blockchain, determining the risk control service cluster that matches the pre-execution results of each business, and obtaining the risk resource pool set determined by each risk control service cluster. The risk control service cluster includes multiple risk control service nodes. The risk control service nodes are used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-order resource pool set associated with the main resource pool, and the second-order resource pool set associated with the first-order resource pool set, and determine the risk resource pool based on the risk assessment data.
[0069] Among them, a smart risk control contract is deployed on the blockchain. After obtaining the business pre-execution results, the blockchain master node will request to call the smart risk control contract deployed on the blockchain, and input the business pre-execution results into the smart risk control contract, so as to determine the risk control service cluster corresponding to each business pre-execution result based on the smart risk control contract. Among them, the smart risk control contract represents a smart contract running in the blockchain client (accounting program) and strongly coupled with its accounting packaging module. It can be compiled into an EVM contract (i.e., Ethereum virtual machine contract) and then deployed in the blockchain, or it can be directly encoded and precompiled into the blockchain client (accounting program).
[0070] Specifically, by calling the smart risk control contract deployed on the blockchain, and according to the risk control processing logic corresponding to the smart risk control contract, the risk control service cluster corresponding to each business pre-execution result is determined. Further, by triggering the resource interaction risk assessment request corresponding to each business pre-execution result, and sending each resource interaction risk assessment request to the corresponding risk control service cluster, the risk resource pool set determined by each risk control service cluster is obtained. Among them, the risk control processing logic corresponding to the smart risk control contract specifically includes the specified cluster logic and the sending logic. Specifically, the specified cluster logic is used to determine the risk control service cluster corresponding to each business pre-execution result, and the sending logic is used to trigger the resource interaction risk assessment request corresponding to each business pre-execution result, and send each resource interaction risk assessment request to the corresponding risk control service cluster.
[0071] Exemplarily, the specified cluster logic can be understood as the existence of a corresponding relationship between the risk control service cluster and the business resource pool of the business pre-execution results. For example, the business resource pools of multiple business pre-execution results can correspond to the same risk control service cluster, or the business resource pool of one business pre-execution result corresponds to one risk control service cluster, etc. Then, the smart risk control contract can determine the risk control service cluster corresponding to the business resource pool of the current business pre-execution result according to its corresponding specified cluster logic.
[0072] Optionally, the following formula (4) is used to represent the resource interaction risk assessment request Req initiated by triggering the smart risk control contract:
[0073] Req=SEND(PreSet) (4)
[0074] Among them, Req can be understood as a resource interaction risk assessment request triggered by a smart risk control contract, PreSet is the business pre-execution result, and the SEND() function represents the function that triggers the smart risk control contract to initiate a request to the risk control service cluster. It mainly consists of the designated cluster logic and sending logic of the smart risk control contract. That is, the smart risk control contract can be called through SEND(), and the corresponding risk control service cluster can be specified for the business pre-execution result according to its corresponding designated cluster logic. According to the sending logic, a resource interaction risk assessment request corresponding to the business pre-execution result is sent to the designated risk control service cluster to obtain the risk resource pool set determined by each risk control service cluster.
[0075] Exemplarily, the method of obtaining the risk resource pool set BlackAccounts is represented by the following formula (5):
[0076] BlackAccounts=Wait(Req) (5)
[0077] Among them, BlackAccounts is the risk resource pool set, and the Wait() function represents the function of waiting for the Req request to return. That is, the Wait() function is used to wait for the data returned by the resource interaction risk assessment request triggered by the smart risk control contract, and perform corresponding encoding and decoding processing to obtain the final risk resource pool set BlackAccounts.
[0078] Specifically, a smart risk control contract is deployed on the blockchain. After obtaining the business pre-execution results, the blockchain master node will request to call the smart risk control contract deployed on the blockchain, and input the business pre-execution results into the smart risk control contract, so as to determine the risk control service cluster corresponding to each business pre-execution result based on the smart risk control contract. Among them, by calling the smart risk control contract deployed on the blockchain, and according to the risk control processing logic corresponding to the smart risk control contract, the risk control service cluster corresponding to each business pre-execution result is determined. Furthermore, by triggering the resource interaction risk assessment request corresponding to each business pre-execution result, and sending each resource interaction risk assessment request to the corresponding risk control service cluster, the risk resource pool set determined by each risk control service cluster is obtained, that is, as a Wait() function, it can be used to wait for the acquisition of the risk resource pool set determined by each risk control service cluster.
[0079] Furthermore, the obtained risk resource pool set BlackAccounts is expressed by the following formula (6):
[0080] BlackAccounts=[Account1, Account2,...,Account n ] (6)
[0081] Among them, Account1, Account2, ..., Account n Etc., indicating that after encoding and decoding the data returned by the resource interaction risk assessment request, an array is obtained by decoding the obtained string data, that is, multiple risk resource pools for array representation.
[0082] In one embodiment, the risk control service cluster includes multiple risk control service nodes, and each risk control service node is used to determine the main resource pool involved in the historical resource interaction business data, and obtain the first-degree resource pool set associated with the main resource pool, and the second-degree resource pool set associated with the first-degree resource pool set, and then determine the risk assessment data corresponding to the main resource pool based on the first-degree resource pool set associated with the main resource pool and the second-degree resource pool set associated with the first-degree resource pool set, and determine the risk resource pool based on the risk assessment data.
[0083] Among them, since all risk control service nodes can determine the risk resource pool, the risk control service cluster including multiple risk control service nodes can determine the risk resource pool set corresponding to the historical resource interaction business data.
[0084] Step S506, traversing and screening the pre-execution results of each business according to the risk resource pool set, and obtaining target interactive business data that does not involve the risk resource pool.
[0085] Among them, the risk resource pool set can be specifically understood as the risk resource pools involving resource interaction risks determined by the risk control service cluster, that is, the risk interaction accounts involving resource interaction risks. Then, according to the risk resource pools involving resource interaction risks, the business resource pools of each business pre-execution result can be traversed and screened to determine whether there is a business resource pool that can be successfully matched with a certain risk resource pool, and the business resource pool that successfully matches the risk resource pool can be eliminated to obtain the target interaction business data that does not involve the risk resource pool.
[0086] Specifically, by parsing each business pre-execution result, the business resource pool carried by each business pre-execution result is obtained, and according to the risk resource pool set, each business resource pool is traversed and screened to determine each business resource pool involving the risk resource pool in the risk resource pool set. Further, by deleting each business resource pool involving the risk resource pool in the risk resource pool set, the target interactive business data not involving the risk resource pool is obtained.
[0087] Furthermore, when traversing and screening each business resource pool based on the risk resource pool set, it is specifically determined whether there is a business resource pool that can successfully match a certain risk resource pool. If there is a business resource pool that successfully matches the risk resource pool, the successfully matched business resource pools will be eliminated, thereby retaining the target interactive business data that does not involve the risk resource pool.
[0088] Exemplarily, the following formula (7) is used to determine whether there is a business resource pool that successfully matches the risk resource pool:
[0089] BlackAccounts.lenth==0 (7)
[0090] Among them, lenth represents the length of the risk resource pool set BlackAccounts, that is, the risk resource pool set usually includes multiple risk resource pools. Specifically, for each business resource pool, it is necessary to traverse the entire risk resource pool set BlackAccounts and make continuous judgments to determine whether there is a business resource pool that can successfully match a certain risk resource pool in the risk resource pool set. That is, if it is determined that the output result of formula (7) is not 0, it means that there are business resource pools that have successfully matched, and it is necessary to eliminate the resource interaction business data involving the business resource pools that have successfully matched, and continue to judge and eliminate until the output result of formula (7) is 0, that is, it means that there is no business resource pool that has successfully matched any risk resource pool in the risk resource pool set, and there is no resource interaction business data involving any risk resource pool, then stop the elimination process, and obtain the target interaction business data that does not involve the risk resource pool.
[0091] In an exemplary embodiment, after obtaining the target interactive service data not involving the risk resource pool, the method further includes:
[0092] Standard business execution processing is performed based on each target interaction business data, and each target interaction business data is processed on the chain; each target interaction business data is used as historical resource interaction business data for determining the risk resource pool set and stored in the risk control service cluster.
[0093] Specifically, after obtaining the target interaction business data that does not involve the risk resource pool, that is, after excluding the business resource pools involving the risk resource pool in the risk resource pool set, what is obtained is the resource interaction business data belonging to the security interaction, that is, the target interaction business data, so that standard business execution processing can be performed based on each target interaction business data, and further each target interaction business data can be processed on the chain, so as to timely block the risk interaction in the resource interaction process and ensure the security of resource interaction based on blockchain.
[0094] Furthermore, after obtaining the target interactive business data not involving the risk resource pool, each target interactive business data is further stored in the risk control service cluster as the historical resource interactive business data for determining the risk resource pool set. Among them, by storing the target interactive business data not involving the risk resource pool as the historical resource interactive business data in the risk control service cluster, the storage data of the risk control service cluster can be updated, so that accurate risk assessment and timely control of massive resource interactive business data can be achieved based on the updated risk control service cluster in the future.
[0095] In the above-mentioned resource interaction risk data processing method based on blockchain, by obtaining each resource interaction business data to be uploaded to the chain, and performing business pre-execution processing based on each resource interaction business data to be uploaded to the chain, the pre-execution results of each business are obtained, and then by calling the intelligent risk control contract deployed by the blockchain, the risk control service cluster matching the pre-execution results of each business is determined, and the risk resource pool set determined by each risk control service cluster is obtained. Among them, the risk control service cluster includes multiple risk control service nodes, and the risk control service node is used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-level resource pool set associated with the main resource pool, and the second-level resource pool set associated with the first-level resource pool set, and determine the risk resource pool according to the risk assessment data, so that based on the risk resource pool determined by multiple risk control service nodes, the risk resource pool set corresponding to the risk control service cluster can be further obtained. Furthermore, according to the risk resource pool set, the pre-execution results of each business are traversed and screened to obtain target interaction business data that does not involve the risk resource pool, thereby realizing the risk resource pool set determined by each risk control service cluster, and performing real-time risk assessment and risk identification on the current resource interaction business data to be uploaded to the chain, so as to eliminate the resource interaction business data involving the risk resource pool, block the risk interaction in the resource interaction process, and obtain the target interaction business data that does not involve the risk resource pool, so as to carry out business processing and chain processing based on the target interaction business data that does not involve the risk resource pool in the future, thereby improving the risk identification and management efficiency of resource interaction business based on blockchain.
[0096] In an exemplary embodiment, Figure 6 As shown, the step of obtaining the risk resource pool set determined by each risk control service cluster includes steps S602 to S610. Among them:
[0097] Step S602, obtaining each historical resource interaction business data based on the blockchain, and determining the main resource pool involved in each historical resource interaction business data.
[0098] Among them, during the normal maintenance and verification process of the blockchain by the blockchain master node in the blockchain, the historical resource interaction business data on the chain are transmitted to the blockchain resource interaction scheduling node, so that the historical resource interaction business data can be converted through the blockchain resource interaction scheduling node to obtain the data tuple corresponding to the historical resource interaction business data, so as to determine the main resource pool involved in the historical resource interaction business data based on the data tuple corresponding to the historical resource interaction business data.
[0099] Specifically, the historical resource interaction business data based on the blockchain is obtained, that is, the specific business data of each historical resource interaction business based on the blockchain, wherein the historical resource interaction business data specifically includes the interaction hash value, the resource transferor, the resource recipient, and the resource interaction amount.
[0100] Exemplarily, the historical resource interaction service data is represented by the following formula (8):
[0101] TX i =<Hash1,From1,To1,Value1> (8)
[0102] Among them, TX i Represents the business data of the i-th historical resource interaction business, Hash1 represents the interaction hash value corresponding to the current historical resource interaction business, From1 represents the resource transferor of the current historical resource interaction business, To1 represents the resource receiver of the current historical resource interaction business, and Value1 represents the resource interaction amount of the current historical resource interaction business.
[0103] Furthermore, the resource transferor From1 and the resource recipient To1 can be understood as the interactive resource pool involved in the current historical resource interaction business, that is, the main resource pool involved in the current historical resource interaction business data, and then the main resource pool involved in the historical resource interaction business data can be determined based on the specific business data of each historical resource interaction business based on the blockchain.
[0104] Step S604, performing service segmentation processing based on each historical resource interaction business data, and segmenting each historical resource interaction business data to a risk control service node matching the main resource pool involved according to the main resource pool involved.
[0105] The risk control service node is used to determine the risk assessment data corresponding to each historical resource interaction business data, and stores a resource interaction volume set indexed by the main resource pool and its first-level resource pool set. The risk control service node may include multiple main resource pools, each main resource pool corresponds to a first-level resource pool set directly associated with it (or having a direct mapping relationship), and each first-level resource pool set includes multiple first-level resource pools.
[0106] For example, the following formula (9) is used to represent the risk control service node S: j Storage data:
[0107] S j =map(Account=>[OneHopAccount])+map([Account|OneHopAccount]=>[TXs]) (9)
[0108] Among them, S j represents the jth risk control service node, Account represents the main resource pool stored on the risk control service node, OneHopAccount represents the first-order resource pool associated with the main resource pool stored on the risk control service node, and map(Account=>[OneHopAccount]) specifically represents the mapping relationship between the main resource pool Account stored on the risk control service node and its first-order resource pool OneHopAccount. [Account|OneHopAccount] represents the collection of the main resource pool stored on the risk control service node and its associated first-order resource pools, and TXs represents the historical resource interaction volume of the collection of the main resource pool stored on the risk control service node and its associated first-order resource pools.
[0109] Specifically, for each historical resource interaction business data, the interactive resource pool it includes is the main resource pool stored in the corresponding risk control service node, and the risk control service node to which the interactive resource pool (i.e., the main resource pool) involved in each historical resource interaction business data belongs can be determined by performing service segmentation processing based on the interactive resource pool (i.e., the main resource pool) it includes. Specifically, the risk control service nodes to which the resource transferor and the resource receiver in the main resource pool belong are determined respectively, and then each historical resource interaction business data can be segmented to the risk control service node matching the main resource pool involved according to the main resource pool involved.
[0110] Optionally, the process of performing service segmentation on historical resource interaction service data is represented by the following formula (10):
[0111] Indexs=IndexOf(From1), IndexOf(To1) (10)
[0112] Among them, the IndexOf() function represents a hash function, which is used to perform hash processing on the resource transferor From1 and the resource receiver To1 included in the historical resource interaction business data to obtain the hash processing result Index, and multiple hash processing results Index can constitute an Indexs set. Furthermore, according to the hash processing result Index, the resource transferor From1 and the resource receiver To1 are respectively divided into risk control service nodes corresponding to different Indexes. Among them, each risk control service node is provided with a risk control service node identifier, and different risk control service node identifiers correspond to different Indexes.
[0113] Exemplarily, the risk control service cluster, i.e., the Indexs set, includes risk control service node A, risk control service node B, and risk control service node C, etc., wherein the Index corresponding to the risk control service node identifier of risk control service node A is Index0, the Index corresponding to the risk control service node identifier of risk control service node B is Index1, and the Index corresponding to the risk control service node identifier of risk control service node C is Index2. If the resource transferor From1 and the resource receiver To1 are hashed by the IndexOf() function, and IndexOf(From1) is 0, it indicates that the resource transferor From1 included in the current historical resource interaction business data matches the risk control service node A. If IndexOf(To1) is 1, it indicates that the resource receiver To1 included in the current historical resource interaction business data matches the risk control service node B.
[0114] It can be understood that there are multiple risk control service nodes included in the risk control service cluster, not limited to the above-mentioned risk control service node A, risk control service node B and risk control service node C, and according to the different hash processing results obtained after hashing the resource transferor From1 and the resource receiver To1, the resource transferor From1 and the resource receiver To1 can be respectively divided into the risk control service nodes that match them.
[0115] Among them, the hash processing process of the obtained hash processing results can specifically include performing remainder processing or secondary remainder processing on the resource transferor From1 and the resource receiver To1, etc., until a value that can match the risk control service node identifier of the risk control service node is obtained. Among them, a corresponding hash value range can also be set for the risk control service node identifier of the risk control service node. After obtaining the hash processing results for the resource transferor From1 and the resource receiver To1, etc., it is determined by judging which risk control service node these hash processing results specifically belong to, and the determined risk control service node is used as the risk control service node that matches the resource transferor From1 and the resource receiver To1, etc.
[0116] Step S606: Determine the risk assessment data corresponding to each historical resource interaction business data according to each risk control service node.
[0117] Specifically, after the historical resource interaction business data is divided into corresponding risk control service nodes, based on each risk control service node, the second-degree resource pool set associated with the first-degree resource pool set under the current risk control service node is obtained, and according to the risk assessment logic corresponding to the risk control service node, based on the first-degree resource pool set and the second-degree resource pool set, the risk assessment data corresponding to each main resource pool is determined.
[0118] Among them, there are multiple main resource pools stored under the current risk control service node, each main resource pool corresponds to multiple first-degree resource pools (i.e., corresponds to a first-degree resource pool set), and each first-degree resource pool can correspond to multiple second-degree resource pools (i.e., corresponds to a second-degree resource pool set). Under the current risk control service node, there are direct resource interaction operation records between each main resource pool and each first-degree resource pool associated with it, while there are no direct resource interaction operation records between the second-degree resource pool and the main resource pool, but there are direct resource interaction operation records between the second-degree resource pool and the first-degree resource pool.
[0119] Exemplarily, the current risk control service node stores a main resource pool X, and the first-degree resource pools with direct resource interaction operation records include Y and A, the second-degree resource pools with direct resource interaction operation records with the first-degree resource pool Y include Z, and the second-degree resource pools with direct resource interaction operation records with the first-degree resource pool A include B, F, D, and E. Further, the main resource pool X, the first-degree resource pool Y associated with the main resource X, and the second-degree resource pool Z associated with the first-degree resource pool Y are specifically represented by X→Y→Z, and the main resource pool X, the first-degree resource pool A associated with the main resource X, and the second-degree resource pool B associated with the first-degree resource pool A are represented by X→A→B. Similarly, the second-degree resource pool D associated with the first-degree resource pool A is represented by D→A, and the second-degree resource pools D and F associated with the first-degree resource pool A are represented by E→A→F.
[0120] Furthermore, after obtaining the second-degree resource pool set associated with the first-degree resource pool set under the current risk control service node, the risk assessment logic corresponding to the current risk control service node is obtained, and according to the risk assessment logic, based on the first-degree resource pool set and the second-degree resource pool set under the current risk control service node, the risk assessment data corresponding to each main resource pool is determined.
[0121] In an exemplary embodiment, based on the first-order resource pool set and the second-order resource pool set under the current risk control service node, the process of determining the risk assessment data corresponding to each main resource pool specifically includes:
[0122] First, based on the first-degree resource pool set, determine the first-degree in-degree data and the first-degree out-degree data corresponding to the main resource pool of the current risk control service node, and determine the second-degree in-degree data and the second-degree out-degree data corresponding to the first-degree resource pool set under the current risk control service node based on the second-degree resource pool set. Among them, the first-degree in-degree data corresponding to the main resource pool indicates the number of incoming services detected by the current main resource pool within the preset risk control management cycle, and the first-degree out-degree data indicates the number of outgoing services detected by the current main resource pool within the preset risk control management cycle. In other words, based on each first-degree resource pool in the first-degree resource pool set, the number of incoming services of each first-degree resource pool transferring resources to the main resource pool can be determined, and the first-degree in-degree data can be obtained. Similarly, the first-degree out-degree data can be obtained by determining the number of outgoing services of each first-degree resource pool receiving resources transferred out of the main resource pool.
[0123] Similarly, the second-degree in-degree data corresponding to the first-degree resource pool set indicates the number of incoming services detected by the first-degree resource pool within the preset risk control management cycle, while the second-degree out-degree data indicates the number of outgoing services detected by the first-degree resource pool within the preset risk control management cycle. In other words, based on each second-degree resource pool in the second-degree resource pool set, the number of incoming services that transfer resources to the first-degree resource pool is determined to obtain the second-degree in-degree data. Similarly, the number of outgoing services that receive outgoing resources from the first-degree resource pool is determined to obtain the second-degree outgoing data.
[0124] Secondly, based on the first-degree resource pool set and the second-degree resource pool set, the average value of resource interaction corresponding to the main resource pool is determined.
[0125] Specifically, based on the main resource pool, the first-degree resource pool set and the second-degree resource pool set, a second-degree resource interaction graph corresponding to the current risk control service node is constructed, and based on each interaction edge and each resource interaction value in the second-degree resource interaction graph, the average resource interaction value corresponding to the main resource pool is determined.
[0126] Third, the risk assessment data corresponding to the main resource pool is determined based on the first-degree in-degree data, the first-degree out-degree data, the second-degree in-degree data, the second-degree out-degree data, and the average value of resource interactions.
[0127] Specifically, the corresponding first-degree risk assessment value is determined based on the first-degree in-degree data and the first-degree out-degree data, and the corresponding second-degree risk assessment value is determined based on the second-degree in-degree data and the second-degree out-degree data, and then based on the first-degree risk assessment value, the second-degree risk assessment value and the resource interaction average value, the risk assessment data corresponding to the main resource pool is obtained.
[0128] Furthermore, after obtaining the risk assessment data corresponding to each main resource pool, each risk assessment data is screened by obtaining a preset risk assessment threshold, and each risk assessment data greater than the preset risk assessment threshold is determined, and the main resource pool corresponding to the risk assessment data greater than the preset risk assessment threshold is determined as the risk resource pool, that is, the risk resource pool corresponding to the risk control service node is obtained.
[0129] Step S608: Based on each risk assessment data, risk resource pool screening is performed to obtain a risk resource pool corresponding to each risk control service node.
[0130] Specifically, by obtaining a preset risk assessment threshold set in advance for the risk assessment data, and comparing each risk assessment data with the preset risk assessment threshold, each risk assessment data greater than the preset risk assessment threshold is determined, and the main resource pools corresponding to these risk assessment data greater than the preset risk assessment threshold are obtained, so as to determine these screened main resource pools as risk resource pools, that is, obtain the risk resource pool corresponding to the current risk control server node.
[0131] Step S610: Obtain a risk resource pool set corresponding to the risk control service cluster according to the risk resource pool corresponding to each risk control service node.
[0132] Specifically, since the risk control service cluster includes multiple risk control service nodes, the risk resource pool set corresponding to the entire risk control service cluster can be obtained by integrating the risk resource pools determined by each risk control service node.
[0133] In this embodiment, by obtaining each historical resource interaction business data based on the blockchain and determining the main resource pool involved in each historical resource interaction business data, service segmentation processing is performed based on each historical resource interaction business data, and each historical resource interaction business data is respectively segmented to the risk control service node matching the main resource pool involved according to the main resource pool involved. Further, according to each risk control service node, the risk assessment data corresponding to each historical resource interaction business data is respectively determined, and based on each risk assessment data, the risk resource pool screening processing is performed to obtain the risk resource pool corresponding to each risk control service node, so that the risk resource pool set corresponding to the risk control service cluster can be obtained according to the risk resource pool corresponding to each risk control service node, and the matching risk control service node is determined according to the main resource pool involved in each historical resource interaction business data, so that the risk assessment processing of the corresponding historical resource interaction business data is performed based on different risk control service nodes, and the service resource occupation of each resource pool on the blockchain is shared by multiple risk control service nodes, reducing the situation of service resource shortage and low processing efficiency caused by the processing method of a single risk control service node, and improving the risk assessment processing efficiency for a large amount of historical resource interaction business data.
[0134] In an exemplary embodiment, Figure 7 As shown, the step of obtaining the risk resource pool set determined by each risk control service cluster specifically includes steps S702 to S716. Among them:
[0135] Step S702, obtaining each historical resource interaction business data based on the blockchain, and determining the main resource pool involved in each historical resource interaction business data.
[0136] Specifically, during the normal maintenance and verification process of the blockchain by the blockchain master node in the blockchain, the historical resource interaction business data on the chain are transmitted to the blockchain resource interaction scheduling node, so that the historical resource interaction business data can be converted through the blockchain resource interaction scheduling node to obtain the data tuple corresponding to the historical resource interaction business data, that is, the specific business data of each historical resource interaction business based on the blockchain is obtained, and then based on the data tuple corresponding to the historical resource interaction business data, the main resource pool involved in the historical resource interaction business data is determined.
[0137] The historical resource interaction service data specifically includes the interaction hash value Hash1, the resource transferor From1, the resource receiver To1, and the resource interaction amount Value1, that is, the historical resource interaction service data, which is specifically represented by the data tuple form of [Hash1, From1, To1, Value1]. The resource transferor From1 and the resource receiver To1 can be understood as the interaction resource pool involved in the current historical resource interaction service, that is, the main resource pool involved in the current historical resource interaction service data.
[0138] Step S704, performing service segmentation processing based on each historical resource interaction business data, and segmenting each historical resource interaction business data to a risk control service node matching the main resource pool involved according to the main resource pool involved.
[0139] The risk control service node is used to determine the risk assessment data corresponding to each historical resource interaction business data, and stores a resource interaction volume set indexed by the main resource pool and its first-level resource pool set. The risk control service node may include multiple main resource pools, each main resource pool corresponds to a first-level resource pool set directly associated with it (or having a direct mapping relationship), and each first-level resource pool set includes multiple first-level resource pools.
[0140] Specifically, for each historical resource interaction business data, the interactive resource pool it includes is the main resource pool stored in the corresponding risk control service node, and the risk control service node to which the interactive resource pool (i.e., the main resource pool) involved in each historical resource interaction business data belongs can be determined by performing service segmentation processing based on the interactive resource pool (i.e., the main resource pool) it includes. Specifically, the risk control service nodes to which the resource transferor From1 and the resource receiver To1 in the main resource pool belong are determined respectively, and then each historical resource interaction business data can be segmented to the risk control service node that matches the main resource pool involved according to the main resource pool involved.
[0141] Furthermore, the IndexOf() function, i.e., the hash function, is used to perform hash processing on the resource transferor From1 and the resource receiver To1 included in the historical resource interaction business data to obtain the hash processing result Index, and the resource transferor From1 and the resource receiver To1 are respectively divided into risk control service nodes corresponding to different Indexes according to the hash processing result Index. Among them, each risk control service node is provided with a risk control service node identifier, and different risk control service node identifiers correspond to different Indexes.
[0142] Exemplarily, the risk control service cluster, i.e., the Indexs set, includes risk control service node A, risk control service node B, and risk control service node C, etc., wherein the Index corresponding to the risk control service node identifier of risk control service node A is Index0, the Index corresponding to the risk control service node identifier of risk control service node B is Index1, and the Index corresponding to the risk control service node identifier of risk control service node C is Index2. If the resource transferor From1 and the resource receiver To1 are hashed by the IndexOf() function, and IndexOf(From1) is 0, it indicates that the resource transferor From1 included in the current historical resource interaction business data matches the risk control service node A. If IndexOf(To1) is 1, it indicates that the resource receiver To1 included in the current historical resource interaction business data matches the risk control service node B.
[0143] Step S706, obtaining a set of first-level resource pools associated with the main resource pool, and a resource transferor and a resource receiver carried by the historical resource interaction business data segmented to the current risk control service node.
[0144] Among them, there are multiple main resource pools stored under the current risk control service node, each main resource pool corresponds to multiple first-degree resource pools (that is, corresponds to a first-degree resource pool set). Under the current risk control service node, there are direct resource interaction operation records between each main resource pool and each first-degree resource pool associated with it.
[0145] Specifically, by obtaining a set of first-degree resource pools associated with the main resource pool of the current risk control service node, that is, obtaining multiple first-degree resource pools associated with the main resource pool, and obtaining the business resource pool involved in the historical resource interaction business data that is segmented to the current risk control service node, that is, obtaining the resource transferor and resource receiver carried by the historical resource interaction business data that is segmented to the current risk control service node. Among them, the business resource pool (including the resource transferor and the resource receiver) involved in the historical resource interaction business data corresponds to the main resource pool stored in the current risk control service node, that is, according to the resource transferor or resource receiver carried by the historical resource interaction business data, it is possible to determine the risk control service node that matches the main resource pool corresponding to the resource transferor, or determine the risk control service node that matches the main resource pool that stores the resource receiver.
[0146] Step S708: Based on the primary resource pool set, a secondary service segmentation judgment process is performed on the historical resource interaction business data segmented to the current risk control service node to obtain a secondary segmentation judgment result.
[0147] Specifically, a secondary service segmentation judgment process is performed on the resource transferors and resource receivers carried by the historical resource interaction business data segmented to the current risk control service node, that is, it is determined whether the resource transferors and resource receivers carried by the historical resource interaction business data segmented to the current risk control service node belong to the first-level resource pool set associated with the main resource pool stored in the current risk control service node, and the corresponding secondary segmentation judgment result is obtained.
[0148] Among them, the secondary split judgment results include: the resource transferor and resource receiver carried by the historical resource interaction business data split to the current risk control service node belong to the first-degree resource pool set associated with the main resource pool stored in the current risk control service node, and the resource transferor and resource receiver carried by the historical resource interaction business data split to the current risk control service node do not belong to the first-degree resource pool set associated with the main resource pool stored in the current risk control service node.
[0149] Exemplarily, the secondary service segmentation judgment process is represented by the following formula (11):
[0150]
[0151] Among them, S j represents the risk control server j, Indexs+ represents inserting the determined output data j into the set Indexs, IsOneHop(parameter 1, parameter 2) function is used to determine whether parameter 1 is in the first-order resource pool set of the risk control service node of parameter 2, IsOneHop(From1, S f) means to judge whether the resource transferor in the historical resource interaction business data divided into the current risk control service node is located in the first-order resource pool set of the current risk control service node, and IsOneHop(To1, S j ) means to determine whether the resource receiver in the historical resource interaction business data allocated to the current risk control service node is located in the first-degree resource pool set of the current risk control service node.
[0152] Furthermore, IsOneHop(From1, S j )orIsOneHo p (To1,S j ), indicating that the resource transferor in the historical resource interaction business data divided into the current risk control service node is located in the first-degree resource pool set of the current risk control service node, or the resource receiver in the historical resource interaction business data divided into the current risk control service node is located in the first-degree resource pool set of the current risk control service node, the output data j is obtained, and the determined output data j is inserted into the set Indexs.
[0153] Among them, the output data j can be understood as the hash processing result corresponding to the resource transferor and resource receiver in the historical resource interaction business data, that is, the hash processing result Index obtained after hashing the resource transferor From1 and the resource receiver To1 according to the IndexOf() function.
[0154] On the contrary, null and default are understood as when the resource transferor in the historical resource interaction business data assigned to the current risk control service node is not in the first-degree resource pool set of the current risk control service node, and the resource receiver in the historical resource interaction business data assigned to the current risk control service node is not in the first-degree resource pool set of the current risk control service node, then new data will not be inserted into the collection Indexs.
[0155] In step S710, if it is determined according to the secondary splitting judgment result that the resource transferor or resource receiver carried by the historical resource interaction business data split to the current risk control service node belongs to the first-level resource pool set, the resource pool of the current risk control service node is updated according to the historical resource interaction business data.
[0156] Specifically, if it is determined based on the secondary split judgment result that the resource transferor carried by the historical resource interaction business data split to the current risk control service node belongs to the first-degree resource pool set, or it is determined that the resource receiver carried by the historical resource interaction business data split to the current risk control service node belongs to the first-degree resource pool set, then it indicates that the historical resource interaction business data can be stored on the current risk control service node, and then it is necessary to perform resource pool update processing on the current risk control service node based on the historical resource interaction business data.
[0157] Furthermore, when the resource pool of the current risk control service node is updated based on the historical resource interaction business data, it is specifically done by taking out multiple hash processing result Indexes in the determined Indexs set, and inserting the historical resource interaction business data corresponding to the corresponding hash processing result Index into the risk control service node corresponding to the hash processing result Index, that is, inserting a new resource pool and its corresponding resource interaction volume and other data into the risk control service node, wherein the inserted resource pool may include a main resource pool and a secondary resource pool.
[0158] Exemplarily, the process of updating the resource pool of the current risk control service node is represented by the following formula (12):
[0159] S Index ←Tx i (12)
[0160] Among them, S Index Represents each risk control service node in the entire risk control service cluster, such as S Index0 Corresponding risk control servers A and S Index1 Corresponding to risk control server B and S Index2 Corresponding to the risk control server C and so on, the corresponding risk control server can be determined according to the determined hash processing result Index, and the historical resource interaction business data corresponding to the hash processing result Index can be inserted into the determined risk control service node.
[0161] For example, insert the historical resource interaction business data involving the resource receiver corresponding to Index0 in the hash processing result into the S Index0 In the corresponding risk control server A, for example, the historical resource interaction business data involving the resource transferor corresponding to Index1 with the hash processing result is inserted into the S Index1 The corresponding risk control server B and so on.
[0162] Step S712: Determine the risk assessment data corresponding to each historical resource interaction business data according to each risk control service node.
[0163] Specifically, after the resource pool of the current risk control service node is updated, based on the updated risk control service nodes, the second-degree resource pool set associated with the first-degree resource pool set under the current risk control service node is obtained, and according to the risk assessment logic corresponding to the risk control service node, based on the first-degree resource pool set and the second-degree resource pool set, the risk assessment data corresponding to each main resource pool is determined.
[0164] Among them, there are multiple main resource pools stored under the current risk control service node, each main resource pool corresponds to multiple first-degree resource pools (i.e., corresponds to a first-degree resource pool set), and each first-degree resource pool can correspond to multiple second-degree resource pools (i.e., corresponds to a second-degree resource pool set). Under the current risk control service node, there are direct resource interaction operation records between each main resource pool and each first-degree resource pool associated with it, while there are no direct resource interaction operation records between the second-degree resource pool and the main resource pool, but there are direct resource interaction operation records between the second-degree resource pool and the first-degree resource pool.
[0165] Furthermore, after obtaining the second-degree resource pool set associated with the first-degree resource pool set under the current risk control service node, the risk assessment logic corresponding to the current risk control service node is obtained, and according to the risk assessment logic, based on the first-degree resource pool set and the second-degree resource pool set, the risk assessment data corresponding to each main resource pool is determined.
[0166] Step S714: Based on each risk assessment data, risk resource pool screening is performed to obtain a risk resource pool corresponding to each risk control service node.
[0167] Specifically, by obtaining a preset risk assessment threshold set in advance for the risk assessment data, and comparing each risk assessment data with the preset risk assessment threshold, each risk assessment data greater than the preset risk assessment threshold is determined, and the main resource pools corresponding to these risk assessment data greater than the preset risk assessment threshold are obtained, so as to determine these screened main resource pools as risk resource pools, that is, obtain the risk resource pool corresponding to the current risk control server node.
[0168] Step S716: According to the risk resource pools corresponding to the risk control service nodes, a risk resource pool set corresponding to the risk control service cluster is obtained.
[0169] Specifically, since the risk control service cluster includes multiple risk control service nodes, the risk resource pool set corresponding to the entire risk control service cluster can be obtained by integrating the risk resource pools determined by each risk control service node.
[0170] In this embodiment, by obtaining each historical resource interaction business data based on the blockchain, the main resource pool involved in each historical resource interaction business data is determined, and service segmentation processing is performed based on each historical resource interaction business data, and each historical resource interaction business data is segmented to the risk control service node matching the main resource pool involved according to the main resource pool involved. By obtaining the first-order resource pool set associated with the main resource pool, and the resource transferor and resource receiver carried by the historical resource interaction business data segmented to the current risk control service node, the historical resource interaction business data segmented to the current risk control service node can be subjected to secondary service segmentation judgment processing based on the first-order resource pool set to obtain a secondary segmentation judgment result. Among them, if it is determined according to the secondary segmentation judgment result that the resource transferor or resource receiver carried by the historical resource interaction business data segmented to the current risk control service node belongs to the first-order resource pool set, the resource pool update processing is performed on the current risk control service node according to the historical resource interaction business data. Furthermore, according to each risk control service node after the update processing, the risk assessment data corresponding to each historical resource interaction business data is determined respectively, so as to screen and process the risk resource pool based on each risk assessment data, and obtain the risk resource pool corresponding to each risk control service node. Finally, according to the risk resource pool corresponding to each risk control service node, the risk resource pool set corresponding to the risk control service cluster can be obtained. It is realized that the matching risk control service node is determined according to the main resource pool involved in each historical resource interaction business data, so as to perform risk assessment processing on the corresponding historical resource interaction business data based on different risk control service nodes, and realize the use of multiple risk control service nodes to share the service resource occupation of each resource pool on the blockchain, reduce the situation of service resource shortage and low processing efficiency caused by the processing method of a single risk control service node, and improve the risk assessment processing efficiency for a large amount of historical resource interaction business data.
[0171] In an exemplary embodiment, Figure 8 As shown, the step of determining the risk assessment data corresponding to each main resource pool, that is, according to the risk assessment logic corresponding to the risk control service node, based on the first-level resource pool set and the second-level resource pool set, determines the risk assessment data corresponding to each main resource pool, specifically including steps S802 to S808. Among them:
[0172] Step S802: Based on the first-degree resource pool set, determine the first-degree in-degree data and the first-degree out-degree data corresponding to the main resource pool of the current risk control service node.
[0173] Among them, the first-degree in-degree data corresponding to the main resource pool indicates the number of incoming businesses detected by the current main resource pool within the preset risk control management cycle, and the first-degree out-degree data indicates the number of outgoing businesses detected by the current main resource pool within the preset risk control management cycle.
[0174] Specifically, based on each first-degree resource pool in the first-degree resource pool set, the number of inbound services of each first-degree resource pool to the main resource pool can be determined, and the first-degree in-degree data can be obtained. Similarly, by determining the number of outbound services of each first-degree resource pool receiving resources from the main resource pool, the first-degree outbound data can be obtained.
[0175] Exemplarily, the first-degree in-degree data id1 and the first-degree out-degree data od1 are respectively expressed by the following formula (13) and formula (14):
[0176] id1=InDgree(Account) (13)
[0177] od1=OutDgree(Account) (14)
[0178] Among them, id1 is the first-degree in-degree data, od1 is the first-degree out-degree data, Account represents the main resource pool, InDgree(Account) represents the function of obtaining the first-degree in-degree data of the main resource pool Account, and OutDgree(Account) represents the function of obtaining the first-degree out-degree data of the main resource pool Account.
[0179] For example, if the master resource pool Account detects that the number of times the first-degree resource pools transfer resources to the master resource pool Account is 10 during the last preset risk control management cycle, then its first-degree in-degree data is 10. For another example, if the master resource pool Account detects that the number of times the first-degree resource pools receive the transfer-out business of the master resource pool Account is 5 during the last preset risk control management cycle, then its first-degree out-degree data is 5.
[0180] Step S804: Determine the second-degree in-degree data and the second-degree out-degree data corresponding to the first-degree resource pool set under the current risk control service node according to the second-degree resource pool set.
[0181] Among them, the second-degree in-degree data corresponding to the first-degree resource pool set indicates the number of incoming businesses detected by the first-degree resource pool within the preset risk control management cycle, while the second-degree out-degree data indicates the number of outgoing businesses detected by the first-degree resource pool within the preset risk control management cycle.
[0182] Specifically, based on each second-degree resource pool in the second-degree resource pool set, the number of input services of each second-degree resource pool to the first-degree resource pool is determined, and the second-degree input data can be obtained. Similarly, the second-degree output data can be obtained by determining the number of output services of each second-degree resource pool receiving resources transferred out of the first-degree resource pool.
[0183] Exemplarily, the second-degree in-degree data id2 and the second-degree out-degree data od2 are respectively expressed by the following formula (15) and formula (16):
[0184] id2=∑InDgree(OneHopAccount i ) / n (15)
[0185] od2=∑OutDgree(OneHopAccount i ) / n (16)
[0186] Among them, id2 is the second-degree in-degree data, od2 is the second-degree out-degree data, OneHopAccount i Indicates the i-th first-degree resource pool, InDgree(OneHopAccount i ) indicates obtaining a OneHopAccount of a resource pool i The function of the initial second-degree in-degree data, OutDgree(OneHopAccount i ) indicates obtaining a OneHopAccount of a resource pool i is a function of the initial second-degree out-degree data, where n represents the number of first-degree resource pools.
[0187] Furthermore, specifically, after traversing each first-degree resource pool, the initial second-degree in-degree data of each first-degree resource pool is obtained, the sum is calculated and the average is calculated to obtain the final second-degree in-degree data id2, and after obtaining the initial second-degree out-degree data of each first-degree resource pool, the sum is calculated and the average is calculated to obtain the final second-degree out-degree data od2.
[0188] Step S806: Determine the average resource interaction value corresponding to the main resource pool based on the first-degree resource pool set and the second-degree resource pool set.
[0189] Specifically, based on the main resource pool, the first-degree resource pool set and the second-degree resource pool set, a second-degree resource interaction graph corresponding to the current risk control service node is constructed, and each interaction edge in the second-degree resource interaction graph and the resource interaction value corresponding to each interaction edge are obtained, and then the average resource interaction value corresponding to the main resource pool is determined according to each interaction edge and each resource interaction value.
[0190] Among them, there are multiple main resource pools stored under the current risk control service node, each main resource pool corresponds to multiple first-degree resource pools (i.e., corresponds to a first-degree resource pool set), and each first-degree resource pool can correspond to multiple second-degree resource pools (i.e., corresponds to a second-degree resource pool set). Under the current risk control service node, there are direct resource interaction operation records between each main resource pool and each first-degree resource pool associated with it, while there are no direct resource interaction operation records between the second-degree resource pool and the main resource pool, but there are direct resource interaction operation records between the second-degree resource pool and the first-degree resource pool, and then according to the resource interaction operation records between each main resource pool and each first-degree resource pool associated with it, and the resource interaction operation records between each second-degree resource pool and each first-degree resource pool, as well as the main resource pool, the first-degree resource pool set and the second-degree resource pool set, a second-degree resource interaction graph corresponding to the current risk control service node can be constructed.
[0191] In an exemplary embodiment, Fig. 9 As shown, a schematic diagram of the second-degree resource interaction corresponding to the current risk control service node is provided. Fig. 9 It can be seen that the current risk control service node stores the main resource pool X. The first-degree resource pools with direct resource interaction operation records include Y and A. The second-degree resource pools with direct resource interaction operation records with the first-degree resource pool Y include Z. The second-degree resource pools with direct resource interaction operation records with the first-degree resource pool A include B, F, D, and E.
[0192] Specifically, refer to Fig. 9 It can be seen that X→Y→Z is used to represent the main resource pool X, the first-degree resource pool Y associated with the main resource X, and the second-degree resource pool Z associated with the first-degree resource pool Y, that is, there are interactive edges between X and Y, and between Y and Z. Similarly, X→A→B is used to represent the main resource pool X, the first-degree resource pool A associated with the main resource X, and the second-degree resource pool B associated with the first-degree resource pool A, that is, there are interactive edges between X and A, and between A and B. Similarly, D→A represents the second-degree resource pool D associated with the first-degree resource pool A, that is, there is an interactive edge between D and A, and E→A→F represents the second-degree resource pools D and F associated with the first-degree resource pool A, that is, there are interactive edges between A and E, and between A and F.
[0193] Among them, by obtaining each interactive edge in the second-degree resource interaction graph, and taking the resource interaction value corresponding to each interactive edge, specifically obtaining the interactive edges between X and Y, and between Y and Z, and the resource interaction values corresponding to the interactive edges between X and Y, and between Y and Z, and also obtaining the interactive edges between X and A, and between A and B, and the resource interaction values corresponding to the interactive edges between X and A, and between A and B. Similarly, the interactive edges between D and A, and the resource interaction values corresponding to the interactive edges between D and A, the interactive edges between A and E, and between A and F, and the resource interaction values corresponding to the interactive edges between A and E, and between A and F are also required.
[0194] Further, according to each interaction edge and each resource interaction value, the resource interaction average value corresponding to the main resource pool is determined. Exemplarily, the resource interaction average value val corresponding to the main resource pool is determined by the following formula (17):
[0195] val=∑TX i .Value / m (17)
[0196] Among them, val is the average value of resource interaction, TX i represents the i-th interaction edge in the second-degree resource interaction graph, Value is the resource interaction value corresponding to the i-th interaction edge, m represents the total number of interaction edges in the second-degree resource interaction graph, and then ∑TX i .Value / m means that the resource interaction values corresponding to each interaction edge in the second-degree resource interaction graph are summed up and then the average value is taken to obtain the resource interaction average value val corresponding to the main resource pool.
[0197] Step S808, determining risk assessment data corresponding to the main resource pool according to the first-degree in-degree data, the first-degree out-degree data, the second-degree in-degree data, the second-degree out-degree data and the average value of resource interaction.
[0198] Specifically, the corresponding first-degree risk assessment value is determined based on the first-degree in-degree data and the first-degree out-degree data, and the corresponding second-degree risk assessment value is determined based on the second-degree in-degree data and the second-degree out-degree data, and then based on the first-degree risk assessment value, the second-degree risk assessment value and the resource interaction average value, the risk assessment data corresponding to the main resource pool is obtained.
[0199] Exemplarily, the risk assessment data Risk(Account) corresponding to the main resource pool is determined by the following formula (18):
[0200]
[0201] Among them, Risk(Account) is the risk assessment data corresponding to the main resource pool Account, id1 is the first-degree in-degree data, and od1 is the first-degree out-degree data. That is, the first-degree risk assessment value, id2 is the second-degree in-degree data, and od2 is the second-degree out-degree data. That is, the second risk assessment value, and val is the average value of resource interaction.
[0202] In an exemplary embodiment, after determining the risk assessment data Risk (Account) corresponding to the main resource pool, a preset risk assessment threshold R pre-set for the risk assessment data is further obtained, and each risk assessment data Risk (Account) is compared with the preset risk assessment threshold R to determine each risk assessment data greater than the preset risk assessment threshold R, and obtain the main resource pool Account corresponding to these risk assessment data Risk (Account) greater than the preset risk assessment threshold R, so as to determine these screened main resource pool Account as the risk resource pool, that is, to obtain the risk resource pool corresponding to the current risk control server node.
[0203] In an exemplary embodiment, according to the actual blockchain-based resource interaction business processing requirements, three-degree, four-degree, and other multi-degree blockchain resource interaction networks can be further realized, and distributed storage of multi-degree blockchain resource interaction networks can be realized. By adding three-degree resource pools and four-degree resource pools in the same manner as adding one-degree resource pools and two-degree resource pools, distributed storage of multi-degree blockchain resource interaction networks can be realized.
[0204] In this embodiment, based on the first-degree resource pool set, the first-degree in-degree data and the first-degree out-degree data corresponding to the main resource pool of the current risk control service node are determined, and based on the second-degree resource pool set, the second-degree in-degree data and the second-degree out-degree data corresponding to the first-degree resource pool set under the current risk control service node are determined. Further, based on the first-degree resource pool set and the second-degree resource pool set, the average resource interaction value corresponding to the main resource pool is determined, and the risk assessment data corresponding to the main resource pool is determined based on the first-degree in-degree data, the first-degree out-degree data, the second-degree in-degree data, the second-degree out-degree data and the average resource interaction value, so as to realize the full storage of the first-degree resource pool and the second-degree resource pool, so as to realize the scalable storage of the resource interaction business data of the massive business resource pool, improve the resource storage capacity based on the blockchain, and more comprehensively store the resource interaction business data of the massive business resource pool and its corresponding risk assessment data, further improve the risk assessment and real-time control of the newly added massive resource interaction business data to be chained, and improve the risk identification and control processing efficiency of the resource interaction business based on the blockchain.
[0205] In an exemplary embodiment, Fig.10As shown, a resource interaction risk data processing method based on blockchain is provided, which specifically includes the following steps:
[0206] Step S1001, the blockchain resource interaction scheduling node obtains each historical resource interaction business data based on the blockchain, and determines the main resource pool involved in each historical resource interaction business data.
[0207] In step S1002, the blockchain resource interaction scheduling node performs service segmentation processing based on each historical resource interaction business data, and segments each historical resource interaction business data to a risk control service node that matches the main resource pool involved according to the main resource pool involved.
[0208] Step S1003: Determine the risk assessment data corresponding to each historical resource interaction business data according to each risk control service node.
[0209] In step S1004, the risk control service node performs risk resource pool screening based on each risk assessment data to obtain a risk resource pool corresponding to each risk control service node, and obtains a risk resource pool set corresponding to the risk control service cluster based on the risk resource pool corresponding to each risk control service node.
[0210] Step S1005, the blockchain master node obtains the resource interaction business data to be uploaded to the chain, and obtains the pre-execution method corresponding to the business pre-execution processing. The pre-execution method is a single execution and does not change the data status of the resource interaction business data to be uploaded to the chain.
[0211] Step S1006: The blockchain master node performs business pre-execution processing based on each resource interaction business data to be uploaded to the chain in a pre-execution manner that matches the business pre-execution processing, and obtains the business pre-execution results corresponding to each resource interaction business data to be uploaded to the chain.
[0212] In step S1007, the blockchain master node calls the smart risk control contract deployed by the blockchain, and determines the risk control service cluster corresponding to the pre-execution results of each business according to the risk control processing logic corresponding to the smart risk control contract.
[0213] Step S1008: The blockchain master node triggers a resource interaction risk assessment request corresponding to each business pre-execution result, and sends each resource interaction risk assessment request to the corresponding risk control service cluster.
[0214] Step S1009: The blockchain master node obtains the risk resource pool set determined by the risk control service cluster.
[0215] Step S1010, the blockchain master node parses each business pre-execution result and obtains the business resource pool carried by each business pre-execution result.
[0216] In step S1011, the blockchain master node traverses and screens each business resource pool according to the risk resource pool set, determines each business resource pool involving the risk resource pool in the risk resource pool set, and deletes each business resource pool involving the risk resource pool in the risk resource pool set to obtain target interactive business data that does not involve the risk resource pool.
[0217] Step S1012: The blockchain master node performs standard business execution processing based on each target interactive business data, and uploads each target interactive business data to the chain.
[0218] In step S1013, the blockchain master node stores each target interactive business data as historical resource interactive business data for determining a risk resource pool set in the risk control service cluster.
[0219] In the above-mentioned resource interaction risk data processing method based on blockchain, by obtaining each resource interaction business data to be chained, and performing business pre-execution processing based on each resource interaction business data to be chained, to obtain each business pre-execution result, and then by calling the intelligent risk control contract deployed by the blockchain, determine the risk control service cluster that matches each business pre-execution result, and obtain the risk resource pool set determined by each risk control service cluster. Further, according to the risk resource pool set, the pre-execution results of each business are traversed and screened to obtain the target interaction business data that does not involve the risk resource pool, so as to achieve the risk resource pool set determined by each risk control service cluster, and perform risk assessment and risk identification on the current resource interaction business data to be chained in real time, so as to eliminate each resource interaction business data involving the risk resource pool, block the risk interaction in the resource interaction process, and obtain the target interaction business data that does not involve the risk resource pool, so as to perform business processing and chain processing based on the target interaction business data that does not involve the risk resource pool in the future, and improve the risk identification and control processing efficiency of the resource interaction business based on blockchain.
[0220] In an exemplary embodiment, Fig.11 As shown, a resource interaction risk data processing method based on blockchain is provided, which specifically involves a blockchain resource interaction scheduling node, multiple risk control service nodes and a blockchain master node. The method specifically includes the following steps:
[0221] Step S1101, the blockchain resource interaction scheduling node obtains each historical resource interaction business data based on the blockchain, and determines the main resource pool involved in each historical resource interaction business data.
[0222] In step S1102, the blockchain resource interaction scheduling node performs service segmentation processing based on each historical resource interaction business data, and segments each historical resource interaction business data to a risk control service node that matches the main resource pool involved according to the main resource pool involved.
[0223] Step S1103, the blockchain resource interaction scheduling node obtains a set of first-level resource pools associated with the main resource pool, as well as resource transferors and resource receivers carried by the historical resource interaction business data segmented to the current risk control service node.
[0224] Step S1104: The blockchain resource interaction scheduling node performs secondary service segmentation judgment processing on the historical resource interaction business data segmented to the current risk control service node based on the primary resource pool set to obtain a secondary segmentation judgment result.
[0225] Step S1105: If the blockchain resource interaction scheduling node determines, based on the secondary segmentation judgment result, that the resource transferor or resource receiver carried by the historical resource interaction business data segmented to the current risk control service node belongs to the first-level resource pool set, the resource pool of the current risk control service node is updated based on the historical resource interaction business data.
[0226] Step S1106: Based on each risk control service node, obtain a second-degree resource pool set associated with the first-degree resource pool set under the current risk control service node.
[0227] Step S1107, through each risk control service node, based on the first-degree resource pool set, determine the first-degree in-degree data and the first-degree out-degree data corresponding to the main resource pool of the current risk control service node, and determine the second-degree in-degree data and the second-degree out-degree data corresponding to the first-degree resource pool set under the current risk control service node according to the second-degree resource pool set.
[0228] Step S1108, through each risk control service node, based on the main resource pool, the first-level resource pool set and the second-level resource pool set, construct a second-level resource interaction graph corresponding to the current risk control service node.
[0229] Step S1109: Obtain each interaction edge in the second-degree resource interaction graph and the resource interaction value corresponding to each interaction edge through each risk control service node, and determine the resource interaction average value corresponding to the main resource pool according to each interaction edge and each resource interaction value.
[0230] Step S1110, through each risk control service node, according to the first-degree in-degree data, the first-degree out-degree data, the second-degree in-degree data, the second-degree out-degree data and the average value of resource interaction, determine the risk assessment data corresponding to the main resource pool.
[0231] In step S1111, the blockchain resource interaction scheduling node performs risk resource pool screening based on the risk assessment data to obtain the risk resource pool corresponding to each risk control service node, and obtains the risk resource pool set corresponding to the risk control service cluster based on the risk resource pool corresponding to each risk control service node.
[0232] In step S1112, the blockchain master node obtains each resource interaction business data to be uploaded to the chain, as well as the pre-execution method corresponding to the business pre-execution processing, and performs business pre-execution processing based on each resource interaction business data to be uploaded to the chain in accordance with the pre-execution method that matches the business pre-execution processing, to obtain the business pre-execution result corresponding to each resource interaction business data to be uploaded to the chain.
[0233] In step S1113, the blockchain master node calls the smart risk control contract deployed by the blockchain, and determines the risk control service cluster corresponding to the pre-execution results of each business according to the risk control processing logic corresponding to the smart risk control contract.
[0234] In step S1114, the blockchain master node triggers a resource interaction risk assessment request corresponding to each business pre-execution result, and sends each resource interaction risk assessment request to the corresponding risk control service cluster to obtain a risk resource pool set fed back by the risk control service cluster.
[0235] Step S1115, the blockchain master node parses each business pre-execution result and obtains the business resource pool carried by each business pre-execution result.
[0236] In step S1116, the blockchain master node traverses and screens each business resource pool according to the risk resource pool set, determines each business resource pool involving the risk resource pool in the risk resource pool set, and deletes each business resource pool involving the risk resource pool in the risk resource pool set to obtain target interactive business data that does not involve the risk resource pool.
[0237] Step S1117, the blockchain master node performs standard business execution processing based on each target interactive business data, and uploads each target interactive business data to the chain.
[0238] In step S1118, the blockchain master node stores each target interaction business data as historical resource interaction business data for determining a risk resource pool set in the risk control service cluster.
[0239] In the above-mentioned resource interaction risk data processing method based on blockchain, by obtaining each resource interaction business data to be chained, and performing business pre-execution processing based on each resource interaction business data to be chained, to obtain each business pre-execution result, and then by calling the intelligent risk control contract deployed by the blockchain, determine the risk control service cluster that matches each business pre-execution result, and obtain the risk resource pool set determined by each risk control service cluster. Further, according to the risk resource pool set, the pre-execution results of each business are traversed and screened to obtain the target interaction business data that does not involve the risk resource pool, so as to achieve the risk resource pool set determined by each risk control service cluster, and perform risk assessment and risk identification on the current resource interaction business data to be chained in real time, so as to eliminate each resource interaction business data involving the risk resource pool, block the risk interaction in the resource interaction process, and obtain the target interaction business data that does not involve the risk resource pool, so as to perform business processing and chain processing based on the target interaction business data that does not involve the risk resource pool in the future, and improve the risk identification and control processing efficiency of the resource interaction business based on blockchain.
[0240] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0241] In an exemplary embodiment, Fig.12 As shown, a resource interaction risk data processing system based on blockchain is provided, referring to Fig.12 It can be seen that the resource interaction risk data processing system based on blockchain specifically includes: blockchain master node 1202 and risk control service cluster 1204. Among them:
[0242] The blockchain master node 1202 is used to obtain the resource interaction business data to be uploaded to the chain, and perform business pre-execution processing based on the resource interaction business data to be uploaded to the chain to obtain the pre-execution results of each business; and call the intelligent risk control contract deployed on the blockchain to determine the risk control service cluster that matches the pre-execution results of each business.
[0243] The resource interaction risk data processing system based on blockchain also includes a block body 1206, in which each resource interaction business data to be put on the chain is stored, that is, the blockchain master node 1202, specifically, each resource interaction business data to be put on the chain is obtained from the block body 1206. The blockchain master node 1202 also needs to obtain the pre-execution method corresponding to the business pre-execution processing, and perform business pre-execution processing based on each resource interaction business data to be put on the chain according to the pre-execution method matching the business pre-execution processing, and obtain the business pre-execution result corresponding to each resource interaction business data to be put on the chain. The pre-execution method is a single execution, which does not change the data status of each resource interaction business data to be put on the chain.
[0244] Furthermore, the blockchain-based resource interaction risk data processing system also includes an intelligent risk control contract 1208 deployed on the blockchain, and then the blockchain master node 1202 determines the risk control service cluster corresponding to each business pre-execution result by calling the intelligent risk control contract 1208 deployed on the blockchain and according to the risk control processing logic corresponding to the intelligent risk control contract 1208. Specifically, the blockchain master node 1202 triggers a resource interaction risk assessment request corresponding to each business pre-execution result, and sends each resource interaction risk assessment request to the corresponding risk control service cluster 1204, so as to obtain the risk resource pool set determined by each risk control service cluster 1204.
[0245] The risk control service cluster 1204 is used to determine the risk resource pool set corresponding to each business pre-execution result. The risk control service cluster includes multiple risk control service nodes, which are used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-order resource pool set associated with the main resource pool, and the second-order resource pool set associated with the first-order resource pool set, and determine the risk resource pool according to the risk assessment data.
[0246] Among them, since the risk control service cluster 1204 may include multiple risk control service nodes, and each risk control service node is used to determine different risk resource pools respectively, by integrating the risk resource pools respectively determined by multiple risk control service nodes, a risk resource pool set corresponding to the entire risk control service cluster 1204 can be obtained.
[0247] The blockchain master node 1202 is also used to traverse and filter the pre-execution results of each business according to the risk resource pool set to obtain target interactive business data that does not involve the risk resource pool.
[0248] Specifically, the blockchain master node 1202 parses each business pre-execution result to obtain the business resource pool carried by each business pre-execution result, and traverses and screens each business resource pool according to the risk resource pool set to determine each business resource pool involving the risk resource pool in the risk resource pool set, so as to delete each business resource pool involving the risk resource pool in the risk resource pool set and obtain the target interactive business data that does not involve the risk resource pool.
[0249] Furthermore, after obtaining the target interaction business data that does not involve the risk resource pool, the blockchain master node 1202 performs standard business execution processing based on each target interaction business data, and performs on-chain processing on each target interaction business data, and stores each target interaction business data as historical resource interaction business data for determining the risk resource pool set in the risk control service cluster 1204.
[0250] In an exemplary embodiment, Fig.13 As shown, a resource interaction risk data processing process using a blockchain-based resource interaction risk data processing system is provided, wherein: the block body 1206 stores the resource interaction business data to be uploaded to the chain, including both the resource interaction business data involving the normal resource pool (which can also be understood as the normal interaction account involved in the resource interaction business process) and the resource interaction business data involving the risk resource pool (which can also be understood as the normal interaction account involved in the resource interaction business process). Specifically, the following processing steps are included:
[0251] P1. Obtain each resource interaction business data to be uploaded to the chain from the block body 1206, and perform business pre-execution processing based on each resource interaction business data to be uploaded to the chain to obtain each business pre-execution result.
[0252] The blockchain master node 1202 obtains each resource interaction business data to be uploaded to the chain from the block body 1206, and obtains the pre-execution method corresponding to the business pre-execution processing, and performs business pre-execution processing based on each resource interaction business data to be uploaded to the chain according to the pre-execution method matching the business pre-execution processing, and obtains the business pre-execution result corresponding to each resource interaction business data to be uploaded to the chain.
[0253] Among them, the pre-execution mode is a single execution, which does not change the data status of each resource interaction service data to be chained, which is different from the traditional standard service execution mode. Among them, in the traditional standard service execution mode, the status will be submitted after each resource interaction service is executed, and after the current resource interaction service is executed and the status is submitted, the next resource interaction service will be executed. That is, in the traditional standard service execution mode, each resource interaction service is executed serially, and the next resource interaction service is executed only after the previous resource interaction service is successfully executed. In addition, during the execution process, the data status of each resource interaction service data to be chained needs to be changed.
[0254] Furthermore, since the blockchain master node 1202 performs business pre-execution processing based on each resource interaction business data to be chained in a single execution mode that matches the business pre-execution processing, it can be understood that the resource interaction business corresponding to each resource interaction business data to be chained can be executed in parallel, without the need to execute the next resource interaction business after the previous resource interaction business is successfully executed and the status is submitted, and the data status of each resource interaction business data to be chained is not changed. In other words, by adopting the pre-execution mode, each resource interaction business can be executed in the initial state to obtain the business pre-execution result corresponding to each resource interaction business data to be chained, so that each resource interaction business data to be chained can be effectively managed and controlled, avoiding the direct execution of resource interaction business involving risk resource pools, which leads to resource interaction risks, and ensures the security of resource interaction based on blockchain.
[0255] Exemplarily, the service pre-execution result is a list consisting of the interaction hash value, the resource transferor, the resource receiver, and the resource interaction amount, which is specifically expressed by formula (3), namely, “PreSet=[<Hash,From,To,Value> " is used to represent it. In formula (3), PreSet represents the business pre-execution result, Hash represents the interaction hash value, From represents the resource transferor, To represents the resource receiver, and Value represents the resource interaction amount. Among them, the resource transferor From and the resource receiver To can be understood as the interaction resource pool on the blockchain, that is, the resource interaction account on the blockchain.
[0256] P2. Call the smart risk control contract 1208 to trigger a resource interaction risk assessment request
[0257] The blockchain master node 1202 determines the risk control service cluster corresponding to each business pre-execution result by calling the smart risk control contract 1208 deployed on the blockchain and according to the risk control processing logic corresponding to the smart risk control contract 1208. Furthermore, the blockchain master node 1202 specifically triggers the resource interaction risk assessment request corresponding to each business pre-execution result and sends each resource interaction risk assessment request to the corresponding risk control service cluster 1204.
[0258] P3. Obtain the risk resource pool set fed back by the risk control service cluster 1204.
[0259] The risk control service cluster 1204 receives the resource interaction risk assessment request, responds to the resource interaction risk assessment request, and determines a risk resource pool set. The risk control service cluster 1204 includes multiple risk control service nodes, each of which is used to determine a different risk resource pool. By integrating the risk resource pools determined by the multiple risk control service nodes, the risk resource pool set corresponding to the entire risk control service cluster 1204 can be obtained.
[0260] P4. Eliminate the business resource pools involved in the risk resource pool and obtain the target interactive business data that does not involve the risk resource pool.
[0261] The blockchain master node 1202 parses each business pre-execution result, obtains the business resource pool carried by each business pre-execution result, and traverses and screens each business resource pool according to the risk resource pool set, determines each business resource pool involving the risk resource pool in the risk resource pool set, deletes each business resource pool involving the risk resource pool in the risk resource pool set, and obtains the target interactive business data that does not involve the risk resource pool.
[0262] P5. Write the target interactive business data into the risk control service cluster 1204 as historical resource interactive business data.
[0263] After obtaining the target interaction business data that does not involve the risk resource pool, the blockchain master node 1202 performs standard business execution processing based on each target interaction business data, and performs chain processing on each target interaction business data, and stores each target interaction business data as historical resource interaction business data for determining the risk resource pool set in the risk control service cluster 1204.
[0264] In the above-mentioned blockchain-based resource interaction risk data processing system, by obtaining each resource interaction business data to be uploaded to the chain, and performing business pre-execution processing based on each resource interaction business data to be uploaded to the chain, the pre-execution results of each business are obtained, and then by calling the intelligent risk control contract deployed by the blockchain, the risk control service cluster matching the pre-execution results of each business is determined, and the risk resource pool set determined by each risk control service cluster is obtained. Among them, the risk control service cluster includes multiple risk control service nodes, and the risk control service node is used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-level resource pool set associated with the main resource pool, and the second-level resource pool set associated with the first-level resource pool set, and determine the risk resource pool according to the risk assessment data, so that based on the risk resource pool determined by multiple risk control service nodes, the risk resource pool set corresponding to the risk control service cluster can be further obtained. Furthermore, according to the risk resource pool set, the pre-execution results of each business are traversed and screened to obtain target interaction business data that does not involve the risk resource pool, thereby realizing the risk resource pool set determined by each risk control service cluster, and performing real-time risk assessment and risk identification on the current resource interaction business data to be uploaded to the chain, so as to eliminate the resource interaction business data involving the risk resource pool, block the risk interaction in the resource interaction process, and obtain the target interaction business data that does not involve the risk resource pool, so as to carry out business processing and chain processing based on the target interaction business data that does not involve the risk resource pool in the future, thereby improving the risk identification and management efficiency of resource interaction business based on blockchain.
[0265] In an exemplary embodiment, Fig.14 As shown, a resource interaction risk data processing system based on blockchain is provided, referring to Fig.14 It can be seen that the resource interaction risk data processing system based on blockchain specifically includes: a blockchain resource interaction scheduling node 1402, and a risk control service cluster 1406 including multiple risk control service nodes 1404. Among them:
[0266] The blockchain resource interaction scheduling node 1402 is used to obtain each historical resource interaction business data based on the blockchain, and determine the main resource pool involved in each historical resource interaction business data; and perform service segmentation processing based on each historical resource interaction business data, and segment each historical resource interaction business data according to the main resource pool involved to the risk control service node matching the main resource pool involved. Among them, the blockchain resource interaction scheduling node 1402 is also used to obtain a set of first-level resource pools associated with the main resource pool, and the resource transferor and resource receiver carried by the historical resource interaction business data segmented to the current risk control service node.
[0267] Furthermore, the blockchain resource interaction scheduling node 1402 is used to perform secondary service segmentation judgment processing on the historical resource interaction business data segmented to the current risk control service node based on the first-level resource pool set, obtain the secondary segmentation judgment result, and when it is determined based on the secondary segmentation judgment result that the resource transferor or resource receiver carried by the historical resource interaction business data segmented to the current risk control service node belongs to the first-level resource pool set, the resource pool update processing is performed on the current risk control service node based on the historical resource interaction business data.
[0268] Each risk control service node 1404 in the risk control service cluster 1406 is used to respectively determine the risk assessment data corresponding to each historical resource interaction business data; and based on each risk assessment data, perform risk resource pool screening and processing to obtain the risk resource pool corresponding to each risk control service node, and according to the risk resource pool corresponding to each risk control service node, obtain the risk resource pool set corresponding to the risk control service cluster.
[0269] Among them, based on each risk control service node 1404, a second-degree resource pool set associated with the first-degree resource pool set under the current risk control service node is obtained, and based on the first-degree resource pool set, the first-degree in-degree data and the first-degree out-degree data corresponding to the main resource pool of the current risk control service node are determined, and according to the second-degree resource pool set, the second-degree in-degree data and the second-degree out-degree data corresponding to the first-degree resource pool set under the current risk control service node are determined.
[0270] Furthermore, through each risk control service node 1404, based on the main resource pool, the first-degree resource pool set and the second-degree resource pool set, a second-degree resource interaction graph corresponding to the current risk control service node is constructed to obtain each interaction edge in the second-degree resource interaction graph, and the resource interaction value corresponding to each interaction edge, and according to each interaction edge and each resource interaction value, the average resource interaction value corresponding to the main resource pool is determined, and then according to the first-degree in-degree data, the first-degree out-degree data, the second-degree in-degree data, the second-degree out-degree data and the resource interaction average value, the risk assessment data corresponding to the main resource pool is determined.
[0271] Among them, after obtaining each risk assessment data, the blockchain resource interaction scheduling node 1402 is also used to: based on each risk assessment data, perform risk resource pool screening and processing, obtain the risk resource pool corresponding to each risk control service node, and obtain the risk resource pool set corresponding to the risk control service cluster 1406 according to the risk resource pool corresponding to each risk control service node 1404.
[0272] In an exemplary embodiment, Fig.15 As shown, a resource interaction risk data processing process using a blockchain-based resource interaction risk data processing system is provided, which specifically includes the following processing steps:
[0273] S1. The historical resource interaction business data on the chain is transmitted to the blockchain resource interaction scheduling node 1402
[0274] Specifically, during the normal maintenance and verification process of the blockchain by the blockchain master node in the blockchain, each historical resource interaction business data on the chain is transmitted to the blockchain resource interaction scheduling node 1402, so that the historical resource interaction business data is converted through the blockchain resource interaction scheduling node 1402 to obtain the data tuple corresponding to the historical resource interaction business data, that is, to obtain the specific business data of each historical resource interaction business based on the blockchain, and then based on the data tuple corresponding to the historical resource interaction business data, determine the main resource pool involved in the historical resource interaction business data.
[0275] The historical resource interaction service data specifically includes the interaction hash value Hash1, the resource transferor From1, the resource receiver To1, and the resource interaction amount Value1, that is, the historical resource interaction service data, which is specifically represented by the data tuple form of [Hash1, From1, To1, Value1]. The resource transferor From1 and the resource receiver To1 can be understood as the interaction resource pool involved in the current historical resource interaction service, that is, the main resource pool involved in the current historical resource interaction service data.
[0276] S2. Service segmentation based on the interactive business data of each historical resource
[0277] The risk control service node 1404 is used to determine the risk assessment data corresponding to each historical resource interaction business data, and stores a resource interaction volume set indexed by the main resource pool and its first-level resource pool set. The risk control service node 1404 may include multiple main resource pools, each main resource pool corresponds to a first-level resource pool set directly associated with it (or having a direct mapping relationship), and each first-level resource pool set includes multiple first-level resource pools.
[0278] Specifically, for each historical resource interaction service data, the interactive resource pool included therein is the main resource pool stored in the corresponding risk control service node, and the risk control service node 1404 to which the interactive resource pool (i.e., the main resource pool) involved in each historical resource interaction service data belongs can be determined by performing service segmentation processing based on the interactive resource pool (i.e., the main resource pool). Specifically, the risk control service nodes to which the resource transferor From1 and the resource receiver To1 in the main resource pool belong are determined respectively, and then each historical resource interaction service data can be segmented to the risk control service node matching the main resource pool involved according to the main resource pool involved.
[0279] Furthermore, the IndexOf() function, i.e., a hash function, is used to perform hash processing on the resource transferor From1 and the resource receiver To1 included in the historical resource interaction business data to obtain the hash processing result Index, and the resource transferor From1 and the resource receiver To1 are respectively divided into risk control service nodes corresponding to different Indexes according to the hash processing result Index. Each risk control service node is provided with a risk control service node identifier, and different risk control service node identifiers correspond to different Indexes.
[0280] For example, refer to Fig.15 It can be seen that the risk control service cluster, i.e., the Indexs set, includes risk control service node A, risk control service node B, and risk control service node C, etc., among which the Index corresponding to the risk control service node identifier of risk control service node A is Index0, the Index corresponding to the risk control service node identifier of risk control service node B is Index1, and the Index corresponding to the risk control service node identifier of risk control service node C is Index2. If the resource transferor From1 and the resource receiver To1 are hashed by the IndexOf() function, and IndexOf(From1) is 0, it indicates that the resource transferor From1 included in the current historical resource interaction business data matches the risk control service node A. If IndexOf(To1) is 1, it indicates that the resource receiver To1 included in the current historical resource interaction business data matches the risk control service node B.
[0281] S3. Call the smart risk control contract deployed on the blockchain to trigger a resource interaction risk assessment request
[0282] Among them, when the blockchain master node packages and verifies the resource interaction business data, it triggers a resource interaction risk assessment request to a certain risk control service cluster 1406 by calling the intelligent risk control contract deployed by the blockchain.
[0283] S4. Each risk control service node 1404 in the risk control service cluster 1406 determines the risk assessment data corresponding to the historical resource interaction business data.
[0284] Specifically, based on each risk control service node 1404, a second-degree resource pool set associated with the first-degree resource pool set under the current risk control service node is obtained, and based on the first-degree resource pool set, the first-degree in-degree data and the first-degree out-degree data corresponding to the main resource pool of the current risk control service node are determined, and according to the second-degree resource pool set, the second-degree in-degree data and the second-degree out-degree data corresponding to the first-degree resource pool set under the current risk control service node are determined.
[0285] Among them, through the risk control service node 1404, based on the main resource pool, the first-degree resource pool set and the second-degree resource pool set, a second-degree resource interaction graph corresponding to the current risk control service node is constructed, and each interaction edge in the second-degree resource interaction graph and the resource interaction value corresponding to each interaction edge are obtained, so as to determine the average resource interaction value corresponding to the main resource pool according to each interaction edge and each resource interaction value.
[0286] Furthermore, through the risk control service node 1404, the risk assessment data corresponding to the main resource pool is determined based on the first-degree in-degree data, the first-degree out-degree data, the second-degree in-degree data, the second-degree out-degree data and the average value of resource interaction, that is, the risk assessment data corresponding to the historical resource interaction business data involving the same main resource pool is obtained.
[0287] S5. Update the storage data of the smart risk control contract
[0288] After obtaining the risk assessment data corresponding to each historical resource interaction business data, further, obtain a preset risk assessment threshold value pre-set for the risk assessment data, and compare each risk assessment data with the preset risk assessment threshold value to determine each risk assessment data greater than the preset risk assessment threshold value, and obtain the main resource pools corresponding to these risk assessment data greater than the preset risk assessment threshold value, so as to determine these screened main resource pools as risk resource pools, that is, to obtain the risk resource pool corresponding to the current risk control server node.
[0289] Furthermore, the risk resource pool corresponding to the current risk control server node is written into the storage of the smart contract for subsequent real-time blocking of each resource interaction business data to be uploaded to the chain.
[0290] In the resource interaction risk data processing system based on blockchain, by obtaining each historical resource interaction business data based on blockchain and determining the main resource pool involved in each historical resource interaction business data, service segmentation processing is performed based on each historical resource interaction business data, and each historical resource interaction business data is segmented according to the main resource pool involved to the risk control service node matching the main resource pool involved. Among them, the risk control service cluster includes multiple risk control service nodes, and the risk control service nodes are used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-degree resource pool set associated with the main resource pool, and the second-degree resource pool set associated with the first-degree resource pool set, and determine the risk resource pool based on the risk assessment data, so that based on the risk resource pool determined by multiple risk control service nodes, the risk resource pool set corresponding to the risk control service cluster can be further obtained. Furthermore, according to each risk control service node, the risk assessment data corresponding to each historical resource interaction business data is determined respectively, and based on each risk assessment data, the risk resource pool screening process is performed to obtain the risk resource pool corresponding to each risk control service node, so that the risk resource pool set corresponding to the risk control service cluster can be obtained according to the risk resource pool corresponding to each risk control service node, and the matching risk control service node is determined according to the main resource pool involved in each historical resource interaction business data, so that the corresponding historical resource interaction business data is risk assessed and processed respectively based on different risk control service nodes, and the service resource occupation of each resource pool on the blockchain is shared by multiple risk control service nodes, reducing the shortage of service resources and low processing efficiency caused by the processing method of a single risk control service node, and improving the risk assessment processing efficiency for a large amount of historical resource interaction business data.
[0291] Based on the same inventive concept, the embodiment of the present application also provides a blockchain-based resource interaction risk data processing device for implementing the above-mentioned blockchain-based resource interaction risk data processing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more blockchain-based resource interaction risk data processing device embodiments provided below can refer to the limitations of the blockchain-based resource interaction risk data processing method above, and will not be repeated here.
[0292] In an exemplary embodiment, Fig.16 As shown, a resource interaction risk data processing device based on blockchain is provided, including: a business pre-execution processing module 1602, a risk resource pool set acquisition module 1604 and a target interaction business data acquisition module 1606, wherein:
[0293] The business pre-execution processing module 1602 is used to obtain each resource interaction business data to be uploaded to the chain, and perform business pre-execution processing based on each resource interaction business data to be uploaded to the chain to obtain each business pre-execution result;
[0294] The risk resource pool set acquisition module 1604 is used to call the intelligent risk control contract deployed by the blockchain, determine the risk control service cluster that matches the pre-execution result of each business, and obtain the risk resource pool set determined by each risk control service cluster; the risk control service cluster includes multiple risk control service nodes, and the risk control service nodes are used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-level resource pool set associated with the main resource pool, and the second-level resource pool set associated with the first-level resource pool set, and determine the risk resource pool according to the risk assessment data;
[0295] The target interactive service data acquisition module 1606 is used to traverse and filter the pre-execution results of each service according to the risk resource pool set to obtain the target interactive service data that does not involve the risk resource pool.
[0296] In the above-mentioned resource interaction risk data processing device based on blockchain, by obtaining each resource interaction business data to be chained, and performing business pre-execution processing based on each resource interaction business data to be chained, to obtain each business pre-execution result, and then by calling the intelligent risk control contract deployed by the blockchain, determine the risk control service cluster that matches each business pre-execution result, and obtain the risk resource pool set determined by each risk control service cluster. Among them, the risk control service cluster includes multiple risk control service nodes, and the risk control service node is used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-level resource pool set associated with the main resource pool, and the second-level resource pool set associated with the first-level resource pool set, and determine the risk resource pool according to the risk assessment data, so that based on the risk resource pool determined by multiple risk control service nodes, the risk resource pool set corresponding to the risk control service cluster can be further obtained. Furthermore, according to the risk resource pool set, the pre-execution results of each business are traversed and screened to obtain target interaction business data that does not involve the risk resource pool, thereby realizing the risk resource pool set determined by each risk control service cluster, and performing real-time risk assessment and risk identification on the current resource interaction business data to be uploaded to the chain, so as to eliminate the resource interaction business data involving the risk resource pool, block the risk interaction in the resource interaction process, and obtain the target interaction business data that does not involve the risk resource pool, so as to carry out business processing and chain processing based on the target interaction business data that does not involve the risk resource pool in the future, thereby improving the risk identification and management efficiency of resource interaction business based on blockchain.
[0297] In an exemplary embodiment, the risk control service cluster includes multiple risk control service nodes; the risk resource pool set acquisition module is also used to: obtain each historical resource interaction business data based on the blockchain, and determine the main resource pool involved in each historical resource interaction business data; perform service segmentation processing based on each historical resource interaction business data, and respectively segment each historical resource interaction business data according to the main resource pool involved to the risk control service node matching the main resource pool involved; determine the risk assessment data corresponding to each historical resource interaction business data according to each risk control service node; perform risk resource pool screening processing based on each risk assessment data to obtain the risk resource pool corresponding to each risk control service node; and obtain the risk resource pool set corresponding to the risk control service cluster according to the risk resource pool corresponding to each risk control service node.
[0298] In an exemplary embodiment, the risk resource pool set acquisition module is also used to: obtain a first-level resource pool set associated with the main resource pool, and a resource transferor and a resource receiver carried by the historical resource interaction business data that is segmented to the current risk control service node; based on the first-level resource pool set, perform a secondary service segmentation judgment process on the historical resource interaction business data that is segmented to the current risk control service node to obtain a secondary segmentation judgment result; if, based on the secondary segmentation judgment result, it is determined that the resource transferor or the resource receiver carried by the historical resource interaction business data that is segmented to the current risk control service node belongs to the first-level resource pool set, perform a resource pool update process on the current risk control service node based on the historical resource interaction business data.
[0299] In an exemplary embodiment, the risk resource pool set acquisition module is also used to: based on each risk control service node, obtain the second-degree resource pool set associated with the first-degree resource pool set under the current risk control service node; according to the risk assessment logic corresponding to the risk control service node, based on the first-degree resource pool set and the second-degree resource pool set, determine the risk assessment data corresponding to each main resource pool.
[0300] In an exemplary embodiment, the risk resource pool set acquisition module is also used to: determine the first-degree in-degree data and the first-degree out-degree data corresponding to the main resource pool of the current risk control service node based on the first-degree resource pool set; determine the second-degree in-degree data and the second-degree out-degree data corresponding to the first-degree resource pool set under the current risk control service node based on the second-degree resource pool set; determine the resource interaction average value corresponding to the main resource pool based on the first-degree resource pool set and the second-degree resource pool set; determine the risk assessment data corresponding to the main resource pool based on the first-degree in-degree data, the first-degree out-degree data, the second-degree in-degree data, the second-degree out-degree data and the resource interaction average value.
[0301] In an exemplary embodiment, the risk resource pool set acquisition module is also used to: construct a second-degree resource interaction graph corresponding to the current risk control service node based on the main resource pool, the first-degree resource pool set and the second-degree resource pool set; obtain each interaction edge in the second-degree resource interaction graph, and the resource interaction value corresponding to each interaction edge; determine the average resource interaction value corresponding to the main resource pool based on each interaction edge and each resource interaction value.
[0302] In an exemplary embodiment, the business pre-execution processing module is also used to: obtain a pre-execution method corresponding to the business pre-execution processing; the pre-execution method is a single execution, and the data status of each resource interaction business data to be uploaded to the chain is not changed; according to the pre-execution method matching the business pre-execution processing, business pre-execution processing is performed based on each resource interaction business data to be uploaded to the chain, and a business pre-execution result corresponding to each resource interaction business data to be uploaded to the chain is obtained.
[0303] In an exemplary embodiment, the risk resource pool set acquisition module is also used to: call the intelligent risk control contract deployed on the blockchain, and determine the risk control service cluster corresponding to each business pre-execution result according to the risk control processing logic corresponding to the intelligent risk control contract; trigger the resource interaction risk assessment request corresponding to each business pre-execution result; send each resource interaction risk assessment request to the corresponding risk control service cluster respectively, and obtain the risk resource pool set determined by each risk control service cluster.
[0304] In an exemplary embodiment, the target interactive business data acquisition module is also used to: parse each business pre-execution result to obtain the business resource pool carried by each business pre-execution result; traverse and screen each business resource pool according to the risk resource pool set to determine each business resource pool involving the risk resource pool in the risk resource pool set; delete each business resource pool involving the risk resource pool in the risk resource pool set to obtain target interactive business data that does not involve the risk resource pool.
[0305] In an exemplary embodiment, a blockchain-based resource interaction risk data processing device is provided, which also includes an on-chain processing module, which is used to: perform standard business execution processing based on each target interaction business data, and on-chain processing of each target interaction business data; store each target interaction business data as historical resource interaction business data for determining a risk resource pool set in a risk control service cluster.
[0306] Each module in the resource interaction risk data processing device based on blockchain can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0307] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.17 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as resource interaction business data to be chained, pre-execution results of each business, smart risk control contracts, risk control service clusters, risk resource pool sets, and target interaction business data that does not involve risk resource pools. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a resource interaction risk data processing method based on blockchain is implemented.
[0308] Those skilled in the art will understand that Fig.17 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0309] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps in the above-mentioned blockchain-based resource interaction risk data processing method are implemented.
[0310] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned blockchain-based resource interaction risk data processing method are implemented.
[0311] In an exemplary embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps in the above-mentioned blockchain-based resource interaction risk data processing method.
[0312] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0313] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0314] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0315] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A resource interaction risk data processing method based on blockchain, characterized in that: The method comprises: Acquire each resource interaction service data to be uploaded to the chain, and perform service pre-execution processing based on each resource interaction service data to be uploaded to the chain to obtain each service pre-execution result; Calling the smart risk control contract deployed on the blockchain, determining the risk control service cluster that matches the pre-execution result of each of the services, and obtaining the risk resource pool set determined by each of the risk control service clusters; the risk control service cluster includes a plurality of risk control service nodes, and the risk control service nodes are used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-order resource pool set associated with the main resource pool, and the second-order resource pool set associated with the first-order resource pool set, and determine the risk resource pool according to the risk assessment data; According to the risk resource pool set, each of the business pre-execution results is traversed and screened to obtain target interactive business data that does not involve the risk resource pool.
2. The method according to claim 1, characterized in that: Obtaining the risk resource pool set determined by each of the risk control service clusters, including: Obtaining each historical resource interaction service data based on blockchain, and determining the main resource pool involved in each of the historical resource interaction service data; Performing service segmentation processing based on each historical resource interaction service data, segmenting each historical resource interaction service data to a risk control service node matching the main resource pool involved according to the main resource pool involved; According to each of the risk control service nodes, respectively determine the risk assessment data corresponding to each of the historical resource interaction business data; Based on each of the risk assessment data, a risk resource pool screening process is performed to obtain a risk resource pool corresponding to each of the risk control service nodes; According to the risk resource pool corresponding to each of the risk control service nodes, a risk resource pool set corresponding to the risk control service cluster is obtained.
3. The method according to claim 2, characterized in that After the historical resource interaction service data are respectively divided into risk control service nodes matching the main resource pool involved according to the main resource pool involved, the method further includes: Acquire a set of primary resource pools associated with the primary resource pool, and a resource transferor and a resource receiver carried by the historical resource interaction service data segmented to the current risk control service node; Based on the first-level resource pool set, performing secondary service segmentation judgment processing on the historical resource interaction business data segmented to the current risk control service node to obtain a secondary segmentation judgment result; If, based on the secondary split judgment result, it is determined that the resource transferor or resource receiver carried by the historical resource interaction business data split to the current risk control service node belongs to the first-level resource pool set, the resource pool of the current risk control service node is updated based on the historical resource interaction business data.
4. The method according to claim 2 or 3, characterized in that: Determining the risk assessment data corresponding to each of the historical resource interaction business data according to each of the risk control service nodes includes: Based on each of the risk control service nodes, obtaining a second-degree resource pool set associated with the first-degree resource pool set under the current risk control service node; According to the risk assessment logic corresponding to the risk control service node, based on the first-degree resource pool set and the second-degree resource pool set, risk assessment data corresponding to each of the main resource pools is determined.
5. The method according to claim 4, characterized in that The step of determining risk assessment data corresponding to each of the primary resource pools based on the first-level resource pool set and the second-level resource pool set according to the risk assessment logic corresponding to the risk control service node includes: Based on the first-degree resource pool set, determine the first-degree in-degree data and the first-degree out-degree data corresponding to the main resource pool of the current risk control service node; According to the second-degree resource pool set, determine the second-degree in-degree data and the second-degree out-degree data corresponding to the first-degree resource pool set under the current risk control service node; Determine a resource interaction average value corresponding to the primary resource pool based on the primary resource pool set and the secondary resource pool set; The risk assessment data corresponding to the main resource pool is determined according to the first-degree in-degree data, the first-degree out-degree data, the second-degree in-degree data, the second-degree out-degree data and the resource interaction average value.
6. The method according to claim 5, characterized in that The determining, based on the first-degree resource pool set and the second-degree resource pool set, a resource interaction average value corresponding to the main resource pool includes: Based on the main resource pool, the first-level resource pool set and the second-level resource pool set, a second-level resource interaction graph corresponding to the current risk control service node is constructed; Obtaining each interaction edge in the second-degree resource interaction graph and a resource interaction value corresponding to each interaction edge; According to each of the interaction edges and each of the resource interaction values, an average resource interaction value corresponding to the main resource pool is determined.
7. The method according to any one of claims 1 to 3, characterized in that: Based on the resource interaction service data to be uploaded to the chain, service pre-execution processing is performed to obtain the pre-execution results of each service, including: Acquire a pre-execution mode corresponding to the business pre-execution process; the pre-execution mode is a single execution, and does not change the data state of each resource interaction business data to be uploaded to the chain; According to the pre-execution mode matching the business pre-execution processing, business pre-execution processing is performed based on each resource interaction business data to be uploaded to the chain, and a business pre-execution result corresponding to each resource interaction business data to be uploaded to the chain is obtained.
8. The method according to any one of claims 1 to 3, characterized in that: The calling of the smart risk control contract deployed on the blockchain, determining the risk control service cluster matching the pre-execution result of each business, and obtaining the risk resource pool set determined by each risk control service cluster, includes: Calling the smart risk control contract deployed on the blockchain, and determining the risk control service cluster corresponding to each of the business pre-execution results according to the risk control processing logic corresponding to the smart risk control contract; Triggering a resource interaction risk assessment request corresponding to each of the business pre-execution results; Each resource interaction risk assessment request is sent to the corresponding risk control service cluster respectively, and a risk resource pool set determined by each risk control service cluster is obtained.
9. The method according to any one of claims 1 to 3, characterized in that: The step of traversing and screening the business pre-execution results according to the risk resource pool set to obtain target interactive business data not involving the risk resource pool includes: Parsing each of the service pre-execution results to obtain a service resource pool carried by each of the service pre-execution results; According to the risk resource pool set, traverse and screen each of the business resource pools to determine each business resource pool related to the risk resource pool in the risk resource pool set; Each business resource pool involving the risk resource pool in the risk resource pool set is deleted to obtain target interactive business data not involving the risk resource pool.
10. The method according to claim 2 or 3, characterized in that: After obtaining the target interactive business data that does not involve the risk resource pool, it also includes: Performing standard service execution processing based on each of the target interactive service data, and uplinking each of the target interactive service data; Each of the target interactive business data is used as historical resource interactive business data for determining the risk resource pool set and is stored in the risk control service cluster.
11. A resource interaction risk data processing system based on blockchain, characterized in that: The system includes a blockchain master node and a risk control service cluster; The blockchain master node is used to obtain each resource interaction business data to be uploaded to the chain, and perform business pre-execution processing based on each resource interaction business data to be uploaded to the chain to obtain each business pre-execution result; call the smart risk control contract deployed on the blockchain to determine the risk control service cluster that matches each business pre-execution result; The risk control service cluster is used to determine a risk resource pool set corresponding to each of the business pre-execution results; the risk control service cluster includes a plurality of risk control service nodes, and the risk control service nodes are used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-order resource pool set associated with the main resource pool, and the second-order resource pool set associated with the first-order resource pool set, and determine the risk resource pool according to the risk assessment data; The blockchain master node is also used to traverse and screen the pre-execution results of each of the businesses according to the risk resource pool set to obtain target interactive business data that does not involve the risk resource pool.
12. The system according to claim 11, characterized in that The system also includes a blockchain resource interaction scheduling node; The blockchain resource interaction scheduling node is used to obtain each historical resource interaction business data based on the blockchain, and determine the main resource pool involved in each historical resource interaction business data; perform service segmentation processing based on each historical resource interaction business data, and segment each historical resource interaction business data according to the main resource pool involved to the risk control service node matching the main resource pool involved; Each of the risk control service nodes is used to respectively determine the risk assessment data corresponding to each of the historical resource interaction business data; based on each of the risk assessment data, a risk resource pool screening process is performed to obtain a risk resource pool corresponding to each of the risk control service nodes; According to the risk resource pool corresponding to each of the risk control service nodes, a risk resource pool set corresponding to the risk control service cluster is obtained.
13. A resource interaction risk data processing device based on blockchain, characterized in that: The device comprises: A business pre-execution processing module is used to obtain each resource interaction business data to be uploaded to the chain, and perform business pre-execution processing based on each resource interaction business data to be uploaded to the chain to obtain each business pre-execution result; A risk resource pool set acquisition module is used to call the smart risk control contract deployed on the blockchain, determine the risk control service cluster that matches the pre-execution result of each of the businesses, and obtain the risk resource pool set determined by each of the risk control service clusters; the risk control service cluster includes multiple risk control service nodes, and the risk control service nodes are used to: determine the risk assessment data corresponding to the main resource pool based on the main resource pool involved in the historical resource interaction business data, the first-level resource pool set associated with the main resource pool, and the second-level resource pool set associated with the first-level resource pool set, and determine the risk resource pool according to the risk assessment data; The target interactive service data acquisition module is used to traverse and screen the service pre-execution results according to the risk resource pool set to obtain the target interactive service data that does not involve the risk resource pool.
14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Cited By
Resource transfer risk identification method and system
CN121724762A
Resource transfer control method and related device
CN121724763A