Resource processing method and device based on block chain network, and computer equipment

By deploying smart contracts in the blockchain network to process resources shared by multiple users, the problem of low resource processing efficiency in traditional technologies is solved, and efficient, transparent and traceable resource processing is achieved.

CN120106846APending Publication Date: 2025-06-06TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311668261.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-05
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

In traditional technology, resource processing efficiency is low for resources shared by multiple users, and one user usually needs to trigger the computer device to process it.

Method used

By deploying smart contracts in the blockchain network, a resource processing strategy authorized by multiple users is determined, the associated resource items are determined from the blockchain network, and the resource status is collected. When the state meets the triggering conditions, the resources are processed according to the policy, and the processing results are recorded to the blockchain network.

Benefits of technology

The efficiency of resource processing shared by multiple users is improved. With the help of the automatic fulfillment function of smart contracts, the efficiency of resource processing is achieved. Through the decentralized characteristics of blockchain, the resource processing results are more open, transparent and traceable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120106846A_ABST
    Figure CN120106846A_ABST
Patent Text Reader

Abstract

The invention relates to a resource processing method and device based on a block chain network, computer equipment, a storage medium and a computer program product. The method comprises the steps of determining resource processing strategies authorized by a plurality of users in an intelligent contract based on the intelligent contract deployed for a block chain network; according to the resource processing strategy, determining a resource item associated with the resource processing strategy from the block chain network, the resource indicated by the resource item being shared by a plurality of users; determining a resource management platform associated with the resource project, and collecting the state of the resource indicated by the resource project from the resource management platform; when the state of the resource meets a resource processing trigger condition indicated by the resource processing strategy, processing the resource according to a resource processing mode indicated by the resource processing strategy to obtain a resource processing result; and recording the resource processing result to the block chain network. By adopting the method, the resource processing efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a resource processing method, apparatus, computer equipment, storage medium and computer program product based on a blockchain network. Background Art

[0002] With the development of computer technology, resources can be processed through computer equipment, such as transferring resources, converting resources, etc. The resources here can be resources held by a single user or resources shared by multiple users. Multiple means at least two. For example, resources shared by multiple users can be the common property of a husband and wife, or company assets shared by multiple partners.

[0003] In conventional technology, for resources shared by multiple users, one of the multiple users usually triggers a computer device to process the resources, resulting in low resource processing efficiency. Summary of the invention

[0004] Provided are a resource processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product based on a blockchain network that can improve resource processing efficiency.

[0005] In a first aspect, the present application provides a resource processing method based on a blockchain network. The method comprises:

[0006] Determining, based on a smart contract deployed for a blockchain network, a resource processing strategy authorized by a plurality of users in the smart contract;

[0007] According to the resource processing strategy, determining a resource item associated with the resource processing strategy from the blockchain network, where the resource indicated by the resource item is shared by the multiple users;

[0008] Determine a resource management platform associated with the resource project, and collect the status of the resources indicated by the resource project from the resource management platform;

[0009] When the state of the resource meets the resource processing trigger condition indicated by the resource processing policy, the resource is processed according to the resource processing method indicated by the resource processing policy to obtain a resource processing result;

[0010] The resource processing result is recorded in the blockchain network.

[0011] In a second aspect, the present application also provides a resource processing device based on a blockchain network. The device comprises:

[0012] A resource processing strategy determination module, for determining, based on a smart contract deployed for a blockchain network, resource processing strategies authorized by multiple users in the smart contract;

[0013] A resource project determination module, configured to determine, from the blockchain network, a resource project associated with the resource processing strategy according to the resource processing strategy, wherein the resource indicated by the resource project is shared by the multiple users;

[0014] A resource status collection module, used to determine the resource management platform associated with the resource project, and collect the status of the resources indicated by the resource project from the resource management platform;

[0015] A resource processing result obtaining module, used to process the resource in a resource processing manner indicated by the resource processing strategy to obtain a resource processing result when the resource status satisfies the resource processing trigger condition indicated by the resource processing strategy;

[0016] The resource processing result recording module is used to record the resource processing result to the blockchain network.

[0017] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0018] Determining, based on a smart contract deployed for a blockchain network, a resource processing strategy authorized by a plurality of users in the smart contract;

[0019] According to the resource processing strategy, determining a resource item associated with the resource processing strategy from the blockchain network, where the resource indicated by the resource item is shared by the multiple users;

[0020] Determine a resource management platform associated with the resource project, and collect the status of the resources indicated by the resource project from the resource management platform;

[0021] When the state of the resource meets the resource processing trigger condition indicated by the resource processing policy, the resource is processed according to the resource processing method indicated by the resource processing policy to obtain a resource processing result;

[0022] The resource processing result is recorded in the blockchain network.

[0023] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0024] Determining, based on a smart contract deployed for a blockchain network, a resource processing strategy authorized by a plurality of users in the smart contract;

[0025] According to the resource processing strategy, determining a resource item associated with the resource processing strategy from the blockchain network, where the resource indicated by the resource item is shared by the multiple users;

[0026] Determine a resource management platform associated with the resource project, and collect the status of the resources indicated by the resource project from the resource management platform;

[0027] When the state of the resource meets the resource processing trigger condition indicated by the resource processing policy, the resource is processed according to the resource processing method indicated by the resource processing policy to obtain a resource processing result;

[0028] The resource processing result is recorded in the blockchain network.

[0029] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0030] Determining, based on a smart contract deployed for a blockchain network, a resource processing strategy authorized by a plurality of users in the smart contract;

[0031] According to the resource processing strategy, determining a resource item associated with the resource processing strategy from the blockchain network, where the resource indicated by the resource item is shared by the multiple users;

[0032] Determine a resource management platform associated with the resource project, and collect the status of the resources indicated by the resource project from the resource management platform;

[0033] When the state of the resource meets the resource processing trigger condition indicated by the resource processing policy, the resource is processed according to the resource processing method indicated by the resource processing policy to obtain a resource processing result;

[0034] The resource processing result is recorded in the blockchain network.

[0035] The resource processing method, device, computer equipment, storage medium and computer program product based on the blockchain network are based on the smart contract deployed for the blockchain network, determine the resource processing strategy authorized by multiple users in the smart contract, determine the resource project associated with the resource processing strategy from the blockchain network according to the resource processing strategy, the resource indicated by the resource project is shared by multiple users, determine the resource management platform associated with the resource project, collect the state of the resource indicated by the resource project from the resource management platform, and when the state of the resource meets the resource processing trigger condition indicated by the resource processing strategy, process the resource in accordance with the resource processing method indicated by the resource processing strategy to obtain the resource processing result, so that the resources shared by multiple users can be processed through the smart contract deployed for the blockchain, so that the resources shared by multiple users can be efficiently processed with the help of the automatic performance function of the smart contract, thereby improving the resource processing efficiency, and further the resource processing results can be recorded in the blockchain network, and the characteristics of data stored in the decentralized blockchain such as non-repudiation, non-tampering, and security irreversibility can be utilized to make the resource processing results of resources shared by multiple users more open, transparent and traceable. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of an architecture based on a blockchain network in some embodiments;

[0037] Figure 2 A schematic diagram of a blockchain-based structure in some embodiments;

[0038] Figure 3 A schematic diagram of the process of generating and uploading blocks to the blockchain in some embodiments;

[0039] Figure 4 It is an application environment diagram of a resource processing method based on a blockchain network in some embodiments;

[0040] Figure 5 A schematic diagram of a process of resource processing based on a blockchain network in some embodiments;

[0041] Figure 6 A schematic diagram of a process flow for determining a target resource interaction item in some embodiments;

[0042] Figure 7 A schematic diagram of a flow chart of steps for calculating a demand matching degree in some other embodiments;

[0043] Figure 8 A flowchart of smart contract deployment steps in some embodiments;

[0044] Fig. 9 A schematic diagram of operating and managing the common property of a couple in some embodiments;

[0045] Fig.10 A schematic diagram of the timing of buying financial products through smart contracts in some embodiments;

[0046] Fig.11 It is a structural block diagram of a resource processing device based on a blockchain network in some embodiments;

[0047] Fig.12 is an internal structure diagram of a computer device in some embodiments;

[0048] Fig.13 1 is a diagram of the internal structure of a computer device in some embodiments. DETAILED DESCRIPTION

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

[0050] The resource processing method based on the blockchain network provided in the embodiment of the present application can be executed by nodes in the blockchain network. Figure 1 The blockchain network 100 includes a plurality of nodes 101. Each node 101 can receive input information when performing normal work, and maintain the shared data in the blockchain network based on the received input information. In order to ensure the information intercommunication in the blockchain network, there can be an information connection between each node in the blockchain network, and the nodes can transmit information through the above information connection. For example, when any node in the blockchain network receives input information, other nodes in the blockchain network 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 blockchain network are consistent.

[0051] Each node in the blockchain network has a corresponding node identifier, and each node in the blockchain network can store the node identifiers of other nodes in the blockchain network, so that the generated blocks can be broadcast to other nodes in the blockchain network based on 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 or any other information that can be used to identify the node. Table 1 only uses the IP address as an example for explanation.

[0052] Table 1

[0053]

[0054] Each node in the blockchain network stores the same 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.

[0055] When generating each block in the blockchain, see Figure 3 When the node where the blockchain is located receives the input information, it verifies the input information. After the verification is completed, the input information is stored in the memory pool and the hash tree used to record the input information is updated. After that, the update timestamp is updated to the time when the input information is received, and different random numbers are tried to calculate the eigenvalue multiple times so that the calculated eigenvalue can satisfy the following formula:

[0056]

[0057] Among them, SHA256 is the eigenvalue algorithm used to calculate the eigenvalue; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header eigenvalue of the parent block of the current block; merkle_root is the eigenvalue of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value within a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the eigenvalue threshold, which can be determined based on nbits.

[0058] In this way, when the random number that satisfies the above formula is calculated, the information can be stored accordingly, the block header and block body can be generated, and the current block can be obtained. Subsequently, the node where the blockchain is located sends the newly generated block to other nodes in the blockchain network according to the node identification of other nodes in the blockchain network. Other nodes verify the newly generated block and add the newly generated block to the blockchain stored in it after the verification is completed, so as to realize the blockchain chain.

[0059] The resource processing method based on blockchain network provided in the embodiment of the present application can be applied to Figure 4In the application environment shown in the figure, the terminal 402 corresponding to the user communicates with one of the blockchain nodes 406 in the blockchain network through the network, and the blockchain node 406 communicates with the resource management platform 404 through the network.

[0060] The blockchain node 406 can determine the resource processing strategy authorized by multiple users in the smart contract based on the smart contract deployed for the blockchain network, determine the resource project associated with the resource processing strategy from the blockchain network according to the resource processing strategy, the resource indicated by the resource project is shared by multiple users, determine the resource management platform associated with the resource project, collect the status of the resource indicated by the resource project from the resource management platform, and when the status of the resource meets the resource processing trigger condition indicated by the resource processing strategy, process the resource in the resource processing method indicated by the resource processing strategy, obtain the resource processing result, and record the resource processing result to the blockchain network.

[0061] The blockchain node 406 may be a terminal or a server. The terminal may be, but is not limited to, various desktop computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be intelligent voice interaction devices, smart home appliances, vehicle terminals, aircraft, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server may be implemented as an independent server or a server cluster composed of multiple servers. The computing resource 406 may be an independent server or a node in a distributed cluster.

[0062] It is understandable that if Figure 4 The application environment shown is not intended to limit the present application. In some other embodiments, the application environment may also be in other forms. Optionally, the resource management platform may also be connected to the user's corresponding terminal through a network. Optionally, the blockchain node may be connected to multiple resource processing platforms through a network.

[0063] In some embodiments, Figure 5 As shown, a resource processing method based on a blockchain network is provided, and the method is applied to Figure 4 Taking the blockchain node 406 in the example as an example, the following steps are included:

[0064] Step 502, based on the smart contract deployed for the blockchain network, determine the resource processing strategy authorized by multiple users in the smart contract.

[0065] Among them, smart contract is a contract written in code form, which can be automatically executed on the blockchain; it can realize multiple functions, such as transfer, identity verification, and creation of digital identity. Smart contract is a contract that relies on computers to run in cyberspace. It is transmitted, verified or executed in an information-based manner, read and executed by computers, and has the characteristics of self-service. The decentralization of blockchain and the tamper-proof nature of data determine that smart contracts are more suitable for implementation on blockchain. Therefore, the development of blockchain technology has given smart contracts a broader development prospect. Resources can be circulated through the network, and resources include at least one of virtual resources, digital resources or physical resources. Digital resources are resources generated by digitizing real resources. Virtual resources can specifically include but are not limited to at least one of various virtual assets, funds, stocks, bonds, virtual image products, virtual recharge cards, game equipment, etc. Physical resources can be any item with a real form that can be owned by users, and can specifically include but are not limited to houses, vehicles, electronic products, toys, crafts or signed photos.

[0066] Resource processing strategy refers to the strategy for processing resources. Resource processing can be any of the following: interactive processing of resources, resource transfer processing of resources, or resource ownership change processing of resources. For example, if the resource is a fund, the resource processing strategy can be that when the fund income reaches the preset threshold, the fund is automatically sold. For another example, if the resource is a digital resource, the resource processing strategy can be that when the amount of digital resources reaches the preset threshold, a fund and a stock are purchased in a ratio of 3:7. For another example, if the resource is a vehicle, the resource processing strategy can be that when the transaction quotation for the vehicle is greater than a preset value, the vehicle is automatically traded. The resource processing strategy can be a user-defined setting when triggering the deployment of a smart contract. The resource processing strategy is authorized by multiple users, which can be understood as the resource processing strategy is written into the smart contract after the consent of multiple users. The multiple users here refer to at least two users.

[0067] Specifically, the blockchain node can determine the resource processing strategy authorized by multiple users in the smart contract based on the smart contract deployed for the blockchain network.

[0068] In specific applications, there is a certain relationship between multiple users. For example, multiple users may be two users who are husband and wife. By deploying smart contracts in the blockchain, the common property of the husband and wife can be managed to improve the efficiency of the management of the common property of the husband and wife.

[0069] Step 504, according to the resource processing strategy, determine the resource items associated with the resource processing strategy from the blockchain network, and the resources indicated by the resource items are shared by multiple users.

[0070] Among them, the resource processing strategy is associated with one or more resource items. The resource item can be understood as the representation information of the resource. One resource item indicates an actual resource. The resource item can be a resource identifier or a string used to represent the resource, such as a stock name, a fund name, a real estate certificate number, etc. The resource indicated by the resource item is shared by multiple users, which can be understood as the resource indicated by the resource item belongs to multiple users. For example, the resource item is a real estate certificate number, and the real estate indicated by the real estate certificate number is shared by Zhang San and Li Si.

[0071] Specifically, before the smart contract is deployed, one or more of the multiple users can store the resource items shared by the multiple users in the blockchain network. After the blockchain node determines the resource processing strategy authorized by multiple users in the smart contract, it can query the resource items commonly associated with these user identifiers from the blockchain network according to the user identifiers of the multiple users corresponding to the resource processing strategy, thereby obtaining the resource items associated with the resource processing strategy.

[0072] Step 506: determine the resource management platform associated with the resource item, and collect the status of the resources indicated by the resource item from the resource management platform.

[0073] Among them, the resource management platform refers to a platform that can perform resource management. Optionally, the resource processing platform can be a platform that can directly process resources. Different resource projects can be associated with different resource management platforms. For example, vehicles can be associated with vehicle trading platforms, and funds can be associated with platforms that can buy and sell funds. Different resource projects can also be associated with the same resource management platform. For example, funds, stocks, bonds, etc. can be associated with the same financial management platform. Optionally, the resource processing platform can also be a platform that can interact with other platforms to indirectly realize resource processing. For example, the resource management platform can be an asset management platform of a bank, or a platform that can manage digital resources of multiple different banks. The state of the resource indicated by the resource project can be the current state of the resource indicated by the resource project, such as the current amount of digital resources, the current rate of return of funds or stocks, the current listing price of real estate, etc.

[0074] Specifically, the blockchain node can determine the resource management platform associated with the resource project associated with the resource processing strategy, and send an instruction to the resource management platform to collect the status of the resources indicated by the resource project. After receiving the instruction, the resource management platform can return the status of the resources indicated by the resource project to the blockchain node, so that the blockchain node can collect the status of the resources.

[0075] Optionally, when there are multiple resource items associated with the resource processing strategy, for each resource item, the blockchain node can determine the resource management platform associated with the resource item, and then collect the status of the resources indicated by the resource item from the resource management platform.

[0076] Step 508: When the resource status meets the resource processing trigger condition indicated by the resource processing policy, the resource is processed according to the resource processing method indicated by the resource processing policy to obtain a resource processing result.

[0077] Among them, the resource processing trigger condition refers to the condition that triggers resource processing. Optionally, the resource processing trigger condition can be a resource interaction trigger condition, which is used to trigger the interaction between different types of resources. Resource conversion can be achieved through resource interaction. For example, stocks can be bought or sold through the interaction between digital resources and stocks. For example, taking the resource as a fund as an example, the resource processing strategy can be that the fund income reaches a preset threshold and the fund is automatically sold. The resource interaction trigger condition indicated by the resource processing strategy is that the fund income reaches the preset threshold. Optionally, the resource processing trigger condition can be a resource ownership change trigger condition. The resource ownership change is used to trigger the change of the ownership of a resource from one user to another user through a transaction. For example, taking the resource as a vehicle as an example, the resource processing strategy can be that when the transaction quotation for the vehicle is greater than a preset value, the vehicle is automatically traded. The resource processing trigger condition indicated by the resource processing strategy can be that the transaction quotation for the vehicle is greater than a preset value. The resource processing method indicated by the resource processing strategy is the method indicated by the resource processing strategy for implementing the strategy. Different resource processing strategies indicate different resource processing methods. The resource processing result may be relevant data obtained after processing the resource in accordance with the resource processing method indicated by the resource processing policy.

[0078] Specifically, when the status of the resources indicated by the resource items collected by the blockchain node from the resource management platform meets the resource processing trigger conditions indicated by the resource processing strategy, the blockchain node can call the smart contract to which the resource processing strategy belongs, and obtain the resource processing results by executing the smart contract to process the resources in accordance with the resource processing method indicated by the resource processing strategy.

[0079] Step 510, record the resource processing results to the blockchain network.

[0080] Specifically, the blockchain node can package the resource processing results into blocks, and upload the blocks to the blockchain through the blockchain consensus mechanism, thereby recording the resource processing results to the blockchain network.

[0081] As a possible implementation method, the blockchain result can also feed back the resource processing results to the terminal corresponding to each user among multiple users, so that each user can be informed of the resource processing status in a timely manner.

[0082] In the above-mentioned resource processing method based on the blockchain network, based on the smart contract deployed for the blockchain network, the resource processing strategy authorized by multiple users in the smart contract is determined, and according to the resource processing strategy, the resource project associated with the resource processing strategy is determined from the blockchain network, the resources indicated by the resource project are shared by multiple users, and the resource management platform associated with the resource project is determined. The state of the resource indicated by the resource project is collected from the resource management platform. When the state of the resource meets the resource processing trigger condition indicated by the resource processing strategy, the resource is processed in accordance with the resource processing method indicated by the resource processing strategy to obtain the resource processing result, so that the resources shared by multiple users can be processed through the smart contract deployed for the blockchain, so that the resources shared by multiple users can be efficiently processed with the help of the automatic performance function of the smart contract, thereby improving the resource processing efficiency, and further the resource processing results can be recorded in the blockchain network, and the characteristics of data stored in the decentralized blockchain such as non-repudiation, non-tampering, and security irreversibility can be utilized to make the resource processing results of resources shared by multiple users more open, transparent and traceable.

[0083] In some embodiments, the resource indicated by the resource project is a basic resource; when the state of the resource meets the resource processing trigger condition indicated by the resource processing policy, the resource is processed in accordance with the resource processing method indicated by the resource processing policy to obtain a resource processing result, including: when the resource value of the resource indicated by the resource project meets the resource interaction trigger condition indicated by the resource processing policy, the resource interaction demand information corresponding to multiple users is determined; the smart contract is called to send a resource interaction instruction to the resource management platform associated with the resource project according to the resource interaction demand information, and the resource interaction instruction is used to instruct the resource management platform to perform resource interaction based on the resource indicated by the resource project; and the resource interaction result returned by the resource management platform is received.

[0084] Among them, basic resources refer to resources that can be used as a basis for exchange to obtain other resources. Basic resources can be various physical resources or digital resources with resource purchase attributes. Resource interaction demand information refers to information used to determine the user's resource interaction needs. Optionally, the resource interaction demand information can specifically be the expected holding time corresponding to the resource and the expected resource change rate corresponding to the expected holding time. In some embodiments, the target resource demand parameter may also include other parameters, such as the user's resource transfer amount and the resource liquidity requirements. For example, if the resource transfer amount indicated by the resource interaction demand information is 30,000, it means that the user needs a resource project with a resource investment amount threshold of no more than 30,000. If the user requires high resource liquidity, it means that the user needs a resource project that does not exceed a certain period, such as 2 years. The resource interaction trigger condition indicated by the resource processing strategy can be that the resource value of the resource indicated by the resource project associated with the resource processing strategy in the smart contract is greater than the preset resource threshold.

[0085] Specifically, when the resource value of the resource indicated by the resource project meets the resource interaction triggering condition indicated by the resource processing strategy, the blockchain node can obtain the resource interaction demand information corresponding to the multiple users who authorized the resource processing strategy, and then call the smart contract, generate a resource interaction instruction according to the resource interaction demand information and send the resource interaction instruction to the resource management platform associated with the resource project, and the resource interaction instruction can carry the resource project. After receiving the resource interaction instruction, the resource management platform performs resource interaction based on the resource project carried in the resource interaction instruction to obtain the resource interaction result. The resource management platform can further return the resource interaction result to the smart contract, and the smart contract can send the resource interaction result to the blockchain node, so that the blockchain node can obtain the resource processing result. The resource interaction result refers to the relevant data generated after the resource interaction. For example, assuming that the resource indicated by the resource project is a digital resource, the resource interaction instruction is used to instruct the resource management platform to purchase financial products based on the digital resource indicated by the resource project, that is, to interact the digital resource indicated by the resource project with financial products such as funds and bonds. The resource interaction result can be the successful resource interaction, the identification information of the purchased financial product, and the amount of the purchased financial product.

[0086] In some embodiments, the user's resource interaction demand information can be jointly negotiated by multiple users and stored in the blockchain network, so that when resource processing is required, the blockchain node can determine the resource interaction demand information corresponding to multiple users from the blockchain network.

[0087] In this embodiment, by determining the resource interaction demand information corresponding to multiple users, calling the smart contract, and sending resource interaction instructions to the resource management platform associated with the resource project according to the resource interaction demand information, the resource interaction instructions are used to instruct the resource management platform to perform resource interaction based on the resources indicated by the resource project, and receive the resource interaction results returned by the resource management platform. Basic resources can be interactively processed through smart contracts, thereby improving the processing efficiency of basic resources.

[0088] In some embodiments, a resource interaction instruction is sent to a resource management platform associated with a resource project based on resource interaction demand information, including: determining at least one target resource interaction project and a resource interaction value corresponding to each target resource interaction project based on the resource interaction demand information; sending a resource interaction instruction to the resource management platform associated with the resource project based on at least one target resource interaction project and a resource interaction value corresponding to each target resource interaction project; the resource interaction instruction is used to instruct the resource management platform to divide the resources indicated by the resource project according to the resource interaction values ​​corresponding to each target resource interaction project, and to perform resource interaction between each resource obtained by the division and its corresponding target resource interaction project.

[0089] Among them, the target resource interaction project refers to the resource project used for resource interaction with the resource project associated with the resource processing strategy. The resource interaction value corresponding to the target resource interaction project refers to the value of the resource indicated by the resource project associated with the resource processing strategy that is used to interact with the target resource interaction project. For example, assuming that the resource indicated by the resource project associated with the resource processing strategy is a digital resource, the amount of the digital resource is 10,000, and the target resource interaction projects are Fund A and Fund B, where the resource interaction value corresponding to Fund A is 8,000, and the resource interaction value corresponding to Fund B is 2,000, that is, 8,000 of the digital resource is used to purchase Fund A, and 2,000 is used to purchase Fund B.

[0090] Specifically, the blockchain node can call a smart contract, and determine at least one target resource interaction project and the resource interaction value corresponding to each target resource interaction project through the smart contract according to the resource interaction demand information, and then generate a resource interaction instruction according to the at least one target resource interaction project and the resource interaction value corresponding to each target resource interaction project through the smart contract, and send the resource interaction instruction to the resource management platform associated with the resource project, and the resource interaction instruction carries the resource project associated with the resource processing strategy, each target resource interaction project and the resource interaction value corresponding to each target resource interaction project, and then after receiving the resource interaction instruction, the resource management platform can divide the resources indicated by the resource project according to the resource interaction value corresponding to each target resource interaction project, and respectively interact with the target resource interaction project corresponding to each resource obtained by the division. Among them, the target resource interaction project corresponding to the resource obtained by the division, that is, the resource is obtained by dividing according to the resource interaction value corresponding to the target resource interaction project.

[0091] For example, assuming that the resource items associated with the resource processing strategy carried in the resource interaction instruction are the digital resource account, fund A, the resource interaction value of fund A corresponding to 8000, fund B, and the resource interaction value of fund B corresponding to 2000, then after the resource management platform receives the resource interaction instruction, it divides the 10000 in the digital resources into 8000 and 2000, of which 8000 buys fund A and 2000 buys fund B.

[0092] In the above embodiment, a resource interaction instruction is sent to a resource management platform associated with the resource project based on at least one target resource interaction project and the resource interaction value corresponding to each target resource interaction project, so that the resource management platform can divide the resources indicated by the resource project according to the resource interaction value corresponding to each target resource interaction project, and perform resource interaction with each resource obtained by the division with its corresponding target resource interaction project, so that resource interaction can be realized according to user needs through smart contracts, thereby improving the flexibility and accuracy of resource interaction.

[0093] In some embodiments, Figure 6 As shown, the resource interaction demand information includes the expected holding time corresponding to the resource and the expected resource change rate corresponding to the expected holding time; according to the resource interaction demand information, at least one target resource interaction item and the resource interaction value corresponding to each target resource interaction item are determined, including:

[0094] Step 602, for each candidate interactive resource item in the candidate interactive resource item set corresponding to the resource management platform, obtain the target historical resource change rate corresponding to multiple target historical periods of the candidate interactive resource item, and the duration corresponding to the target historical period matches the expected holding duration.

[0095] Step 604 : According to the difference between each target historical resource change rate and the expected resource change rate, the matching degree between the candidate interactive resource items and the needs of multiple users is calculated.

[0096] Among them, the holding period refers to the length of time a resource is held, and the time interval obtained by subtracting the time of buying the resource from the time of selling the resource represents the holding period. The expected holding period refers to the expected length of time the resource is held. The resource change rate is obtained based on the change in the value of the resource. For example, the resource change rate can be the ratio of the change in the final value relative to the initial value of the resource to the initial value. The final value of the resource is the unit value of the resource when it is sold, and the initial value of the resource is the unit value of the resource when it is bought. The resource change rate can be positive or negative. When the value of the resource increases, the resource change rate is positive, and the resource change rate can be called the resource growth rate. When the value of the resource decreases or remains unchanged, the resource change rate is negative or 0, so the resource change rate can be called the resource reduction rate. The expected resource change rate refers to the expected and / or tolerable resource change rate when the resource is held for the expected holding period. The expected resource change rate can include one or more of the expected resource growth rate and the expected resource reduction rate. For users who purchase resources, they expect to obtain certain profits and minimize losses as much as possible. Therefore, the expected resource growth rate is the resource change rate expected by the user, that is, the expected rate of return, and the expected resource reduction rate is the resource change rate that the user can bear, that is, the tolerable loss rate.

[0097] The demand matching degree is used to indicate the matching degree between resources and users. The higher the matching degree, the better the matching degree. The range corresponding to the matching degree value can be set as needed, for example, from 0 to 1. A cycle refers to a period of time, and a historical cycle refers to a period of time in the past. The number of target historical cycles can be set as needed, for example, it can be 6. The duration corresponding to the target historical cycle matches the expected holding duration, which means that the difference between the duration corresponding to the expected holding duration and the duration corresponding to the target historical cycle is less than the preset duration threshold. The preset duration threshold can be set as needed, for example, it can be 0. When it is 0, it means that the duration corresponding to the target historical cycle is consistent with the expected holding duration. If the expected holding duration is 6 months, the duration corresponding to the target historical cycle is also 6 months. When it is not 0, it means that the duration corresponding to the target historical cycle may differ from the expected holding duration to a certain extent. For example, the duration corresponding to the target historical cycle is 1 year, while the expected holding duration may be 1 year and 1 month.

[0098] In some embodiments, the demand matching degree can be obtained according to the numerical value of the difference between the target historical resource change rate and the expected resource change rate and / or the number of matching historical resource change rates obtained by matching the size difference. When the demand matching degree is obtained according to the numerical value of the difference between the target historical resource change rate and the expected resource change rate, the numerical value of the difference between the target historical resource change rate and the expected resource change rate is positively correlated with the demand matching degree, that is, the greater the difference between the target historical resource change rate and the expected resource change rate, the greater the demand matching degree. For example, the demand matching degree can be the value obtained by weighted summing the difference between the target historical resource change rate and the expected resource change rate and the preset weight. When the demand matching degree is obtained according to the number of matching historical resource change rates obtained by matching the size difference, according to the size relationship between the target historical resource change rate and the expected resource change rate, the matching historical resource change rate that matches the expected resource change rate is screened from the target historical resource change rate, and the demand matching degree is obtained according to the number of matching historical resource change rates.

[0099] In some embodiments, the matching degree between each candidate interactive resource item and the needs of multiple users may be pre-stored or calculated in real time based on the resource interaction demand information. For example, the matching degree corresponding to the candidate interactive resource item under the expected holding time and expected resource change rate of multiple candidates may be pre-calculated. When the resource interaction demand information corresponding to multiple users is obtained, the matching degree corresponding to the candidate interactive resource item corresponding to the resource interaction demand information is obtained as the matching degree between the candidate interactive resource item and the needs of multiple users. For example, the matching degree corresponding to each candidate resource is pre-calculated when the holding time is 6 months and 12 months, the corresponding expected resource growth rate is 5% and 10%, and the expected resource reduction rate is -10% and 0. At this time, the resource interaction demand information corresponding to the user may be the target resource demand parameter selected from the candidate resource demand parameters. For example, the expected holding period corresponding to the target resource demand parameter is one selected from 6 months and 12 months, the expected resource growth rate corresponding to the target resource demand parameter is one selected from 5% and 10%, and the expected resource reduction rate of the target resource demand parameter is one selected from -10% and 0. When the target resource demand parameter selected by the user is obtained, the matching degree of each pre-stored candidate resource corresponding to the corresponding candidate resource demand parameter is obtained as the matching degree of the user's demand with the candidate interactive resource item.

[0100] Step 606: Determine at least one target resource interaction item and a resource interaction value corresponding to each target resource interaction item according to the demand matching degree corresponding to each candidate interaction resource item.

[0101] Specifically, the candidate resource interaction project with a target matching degree greater than a preset matching degree and / or a matching degree ranking before the preset ranking can be used as the target resource interaction project, wherein the matching degree ranking is sorted from large to small, and the greater the demand matching degree, the higher the ranking. After the target resource interaction project is determined, the resource interaction value corresponding to the target resource interaction project can be further determined. Optionally, if there is only one target resource interaction project, the resource interaction value corresponding to the target resource interaction project is the resource value of the resource indicated by the resource project associated with the resource processing strategy. If there are multiple target resource interaction projects, the resource interaction value can be determined according to the matching degree ranking of each target resource interaction project. The higher the matching degree ranking, the larger the resource interaction value. For example, the resource value of the resource indicated by the resource project associated with the resource processing strategy is 12000. Assuming that there are 3 target resource interaction projects and the matching degree rankings are target resource interaction project 1, target resource interaction project 2 and target resource interaction project 3, the target resource interaction project 1, target resource interaction project 2 and target resource interaction project 3 are 6000, 4000 and 2000 respectively.

[0102] In the above embodiment, when calling the smart contract to determine the target resource interaction project, the matching degree between the candidate interaction resource project and the needs of multiple users can be calculated, and then according to the matching degree of the needs corresponding to each candidate interaction resource project, at least one target resource interaction project and the resource interaction value corresponding to each target resource interaction project are determined. By quantifying the matching degree between the user and the candidate resource project, the target resource interaction project can be determined according to the user's needs, and the accuracy of the resource interaction can be submitted.

[0103] In some embodiments, Figure 7 As shown, according to the difference between each target historical resource change rate and the expected resource change rate, the matching degree between the candidate interactive resource items and the needs of multiple users is calculated, including:

[0104] Step 702: According to the expected holding time, multiple target historical periods of the candidate interactive resource item are matched and obtained.

[0105] Specifically, the duration corresponding to the target historical period matches the expected holding period. According to the current time, multiple different time points in the past period are used as initial time points, and the time point obtained by adding the initial time point to the preset holding period is used as the end time point to obtain multiple different target historical periods.

[0106] In some embodiments, the interval between the time corresponding to the target historical period and the current time is less than a certain time threshold, for example, the time corresponding to the past year corresponding to the current time. In this way, by taking the recent change rate of the candidate interactive resource items as a reference, the accuracy of the demand matching calculation can be further improved.

[0107] In some embodiments, there may be repeated time periods between target historical periods. For example, the first period may be from February 1, 2017 to August 1, 2017, and the second period may be from March 1, 2017 to September 1, 2017.

[0108] In some embodiments, the target historical period is continuous, and there is no period of time in the middle that does not belong to any historical period. In this way, the calculated matching degree can be made more accurate through the performance of resources in a continuous period of historical time. For example, assuming that the current time is November 1, 2017, there are 4 target historical periods. Then the first period can be from February 1, 2017 to August 1, 2017, the second period can be from March 1, 2017 to September 1, 2017, the third period can be from April 1, 2017 to October 1, 2017, and the fourth period can be from May 1, 2017 to November 1, 2017.

[0109] Step 704: Obtain the target historical resource change rate corresponding to each target historical period.

[0110] Specifically, the target historical resource change rate corresponding to the target historical period can be pre-stored or calculated in real time, and the target historical resource change rate is calculated according to the type of data obtained and the corresponding resource change rate calculation rule. The type of data can be the value of the resource indicated by the candidate interactive resource item, or the change rate of the resource indicated by the candidate interactive resource item in each sub-period of the target historical period. If the type of data is the value of the resource, the target historical resource change rate can be calculated according to the final value of the resource at the end time point of each target historical period and the initial value of the resource at the initial time point. For example, the target historical resource change rate can be the ratio of the change amount of the final value of the target historical period relative to the initial value of the resource to the initial value. If the change rate of each sub-period is obtained, the corresponding change rate calculation rule can be obtained according to whether the resource is compound interest or simple interest, and the target historical resource change rate corresponding to the target historical period is obtained according to the change rate of the sub-period. For example, assume that a certain target historical period is from March 1, 2017 to May 1, 2017, a total of 2 months, wherein the growth rate of the first month is 5%, and the monthly interest rate of the second month is 3%. According to the simple interest calculation, the target historical resource change rate of the resources indicated by candidate interactive resource project A in the target historical period is 5%+3%=8%. According to the compound interest calculation, if a sub-period, i.e., the income settlement period, is one month, the target historical resource change rate of the resources indicated by candidate interactive resource project A in the target historical period is (1.05*1.03-1)*100%=8.15%.

[0111] Step 706 , based on the difference between the target historical resource change rate and the expected resource change rate, a matching historical resource change rate that matches the expected resource change rate is screened from the target historical resource change rate.

[0112] Specifically, the matching rules can be set as needed. Matching can include one or more of positive matching and negative matching. Positive matching means that the historical resource change rate meets the requirements of the expected resource change rate, and negative matching means that the historical resource change rate does not meet the requirements of the expected resource change rate. For example, for the growth rate, if the difference between the target historical resource growth rate and the expected resource growth rate is that the target historical resource growth rate is greater than the expected resource growth rate, it is a positive match, and if the difference between the target historical resource growth rate and the expected resource growth rate is that the target historical resource growth rate is less than the expected resource growth rate, it is a negative match. For the reduction rate, if the difference between the target historical resource reduction rate and the expected resource reduction rate is that the target historical resource reduction rate is greater than the expected resource reduction rate, it is a positive match, and if the difference between the target historical resource reduction rate and the expected resource reduction rate is that the target historical resource reduction rate is less than the expected resource reduction rate, it is a negative match. It can be understood that in the present application, the reduction rate is a negative number or 0. For example, if it is reduced by 40%, the reduction rate is -40%, and if it is reduced by 20%, the reduction rate is -20%. Therefore, the greater the reduction rate, the less loss it means. Therefore, when the target historical resource reduction rate is greater than the expected resource reduction rate, the user's expected resource change rate requirement is met. Since positive matching means that the historical resource change rate meets the expected resource change rate requirement, and negative matching means that the historical resource change rate does not meet the expected resource change rate requirement, the positive matching historical resource change rate contributes positively to the target matching degree, which will improve the matching degree, and the negative matching historical resource change rate contributes negatively to the target matching degree, which will reduce the matching degree.

[0113] In some embodiments, when the matching historical resource change rate that matches the expected resource change rate is obtained from the target historical resource change rate, the matching directions corresponding to the growth rate and the reduction rate are different. If the growth rate obtains the matching historical resource growth rate of the positive matching, the reduction rate obtains the matching historical resource reduction rate of the negative matching. If the growth rate obtains the matching historical resource growth rate of the negative matching, the reduction rate obtains the matching historical resource reduction rate of the positive matching. In this way, the difference between the target historical resource change rate and the expected resource change rate of the resource indicated by the candidate interactive resource item can be measured from different angles to improve the accuracy of the matching degree. For example, for general users, the pursuit is to obtain as much profit as possible without loss. For resources with a high probability of loss and a high probability of obtaining a large profit, if the growth rate corresponds to a positive matching degree and the reduction rate corresponds to a negative matching degree, then in the case where the positive matching degree corresponding to the growth rate is relatively high, since the matching degree corresponding to the reduction rate is negative, the addition of the two can balance the matching degree, so that the matching degree of such resources is a reasonable value.

[0114] Step 708: Calculate the matching degree between the candidate interactive resource items and the needs of multiple users according to the number of matching historical resource change rates and the number of target historical resource change rates.

[0115] Specifically, it can be obtained based on the number of matching historical resource change rates and the number of target historical resource change rates. For example, it can be obtained by dividing the number of matching historical resource change rates by the number of target historical resource change rates to obtain a ratio. For a positive match, the first ratio obtained by dividing the number of matching historical resource change rates by the number of target historical resource change rates is positively correlated with the target matching degree. For a negative match, the second ratio obtained by dividing the number of matching historical resource change rates by the number of target historical resource change rates is negatively correlated with the target matching degree. For example, the target matching degree can be the difference obtained by subtracting the second ratio from the first ratio. Of course, the first matching degree can also be obtained by multiplying the first ratio by a preset first weight, the second matching degree can be obtained by multiplying the second ratio by a preset second weight, and then the target matching degree can be obtained based on the first matching degree and the second matching degree.

[0116] For example, suppose that there are 8 target historical periods corresponding to the resources indicated by candidate interactive resource item A, and the expected resource change rate is an expected growth rate of 10%, an expected reduction rate of -5%, or a tolerable loss rate of -5%. The target historical resource change rates of the target historical periods corresponding to the resources indicated by candidate interactive resource item A are 12%, 11%, 13%, 3%, -10%, 18%, -6%, and 7% respectively. For the growth rate, the positive matches, i.e., the target historical resource change rates greater than 10%, are 12%, 11%, 13%, and 18%, for a total of 4. The ratio obtained by dividing the number of matching historical resource change rates by the number of target historical resource change rates is 4 / 8=0.5. For the reduction rate, the negative matches, i.e., the target historical resource change rates less than -5%, are -10% and -6%, for a total of 2. The ratio obtained by dividing the number of matching historical resource change rates by the number of target historical resource change rates is 2 / 8=0.25. Therefore, the target matching degree is equal to 0.5-0.25=0.25.

[0117] In the above embodiment, the matching degree between the candidate interactive resource items and the needs of multiple users is calculated based on the number of matching historical resource change rates and the number of target historical resource change rates. The obtained demand matching degree is more accurate and can better reflect the matching degree between user needs and resource items.

[0118] In some embodiments, the resource indicated by the resource project is a resource obtained by performing resource interaction on the basic resource; when the state of the resource meets the resource processing trigger condition indicated by the resource processing policy, the resource is processed in accordance with the resource processing method indicated by the resource processing policy to obtain a resource processing result, including: when the resource change state of the resource indicated by the resource project meets the resource interaction trigger condition indicated by the resource processing policy, the unit resource interaction value corresponding to the resource indicated by the resource project in the resource change state is obtained; the smart contract is called to send a resource interaction instruction to the resource management platform associated with the resource project according to the unit resource interaction value, the resource interaction instruction is used to instruct the resource management platform to perform resource interaction on the resource project associated with the resource processing policy and the preset resource project according to the unit resource interaction value to obtain a resource interaction result; and the resource interaction result returned by the resource management platform is received.

[0119] Among them, the resource indicated by the resource item is a resource obtained by resource interaction with the basic resource, for example, it can be a financial product such as purchased stocks, funds, bonds, etc. The resource obtained by resource interaction with the basic resource, its unit resource interaction value is the basic resource that one unit of the resource needs to interact with, for example, when the resource is a stock, the unit resource interaction value is the unit price of the stock per share. The resource change state of the resource indicated by the resource item is used to indicate the resource change, which can be the current resource change rate or the current resource change value. For example, assuming that the resource indicated by the resource item is a fund, the resource change state of the resource indicated by the resource item can be any one of the fund's income, yield or rise and fall. The resource change state meets the resource interaction trigger condition indicated by the resource processing strategy, which can be the resource change state of the resource indicated by the resource item reaches the preset state set by the resource interaction trigger condition. For example, it can be the current resource change rate reaches the resource change rate set by the resource interaction trigger condition. The preset resource item is the resource item corresponding to the basic resource, and the preset resource item can be, for example, a bank account.

[0120] Specifically, when the resource change state of the resource indicated by the resource item meets the resource interaction trigger condition indicated by the resource processing strategy, the unit resource interaction value corresponding to the resource indicated by the resource item in the resource change state is obtained, and then the smart contract is called to generate a resource interaction instruction according to the unit resource interaction value. The resource interaction instruction carries the resource item associated with the resource processing strategy, the unit resource interaction value and the preset resource item. The resource interaction instruction is sent to the resource management platform through the smart contract. After receiving the resource interaction instruction, the resource management platform performs resource interaction on the resource item associated with the resource processing strategy and the preset resource item according to the unit resource interaction value to obtain the resource interaction result. The resource management platform further returns the resource interaction result to the smart contract, and the smart contract sends the resource interaction result to the blockchain node, so that the blockchain node can obtain the resource processing result. The resource processing result can be a result indicating a successful interaction, or a result indicating a failed interaction.

[0121] For example, assuming that the resource indicated by the resource project is a certain stock, when the profit of the stock reaches the preset profit value or exceeds the preset profit value, the blockchain node can obtain the unit price of each share of the stock from the financial management platform, and then call the smart contract to send a stock selling instruction to the financial management platform, so that the financial management platform sells the stock at the unit price and transfers the funds to the preset account.

[0122] In the above embodiment, a smart contract is called to send a resource interaction instruction to a resource management platform associated with a resource project according to the unit resource interaction value, so that the resource management platform performs resource interaction on the resource projects associated with the resource processing strategy and the preset resource projects according to the unit resource interaction value, thereby improving the interaction efficiency of resources obtained by resource interaction with basic resources.

[0123] In some embodiments, the resource processing method based on the blockchain network provided by the present application also includes a smart contract deployment step, which specifically includes the following steps: obtaining a resource processing strategy authorized by multiple users; obtaining a preset smart contract template, generating an initial smart contract based on the resource processing strategy and the smart contract template, and performing formal verification on the initial smart contract. When the verification passes, the smart contract is obtained; and the smart contract is deployed to the blockchain network.

[0124] Among them, the preset smart contract template is established based on the code with fixed characteristics in the smart contract. The code with fixed characteristics refers to the code segment with the same function, the same attribute and the same method in the smart contract. Specifically, the code with fixed characteristics in multiple smart contracts can be extracted, and the extracted code can be saved in the database to obtain the preset smart contract template. When the smart contract needs to be generated next time, the smart contract template is searched from the database, and then the smart contract is generated according to the resource processing strategy. For example, the code generated according to the real estate certificate is a code with the same function, and the code of this part is saved in the database. When generating a smart contract, the code of this part is obtained. As long as the parameters corresponding to the real estate certificate are modified, the code corresponding to the real estate certificate in the smart contract can be generated, thereby improving the generation efficiency of the smart contract.

[0125] Specifically, after obtaining the resource processing strategy authorized by multiple users, the blockchain node can further obtain the preset smart contract template, generate the initial smart contract according to the resource processing strategy and the smart contract template, and perform formal verification on the initial smart contract, that is, verify whether the initial smart contract meets the requirements of the specification. The SPIN (SimplePromela Interpreter, suitable for parallel systems, especially auxiliary analysis and detection tools for protocol consistency) tool is used for verification. First, the Promela (SPIN modeling language) model of the initial smart contract is established using a parallel process. The SPIN tool is used to verify whether the Promela model meets the security described by the linear temporal logic (LTL) formula. The verification results are used to determine whether the execution of the contract meets the requirements of the specification. When a counterexample appears in the verification result, it means that there are defects in the smart contract, and the defects in the smart contract are modified. When all the verification results are correct, the smart contract is obtained.

[0126] Blockchain nodes can further deploy smart contracts into the blockchain network.

[0127] In the above embodiment, since the initial smart contract can be generated through the smart contract template and the initial smart contract can be formally verified, the generation efficiency and accuracy of the smart contract are improved.

[0128] In some embodiments, reference Figure 8 , the smart contract deployment steps include:

[0129] Step 802: Receive a smart contract deployment request, and parse the smart contract deployment request to obtain a target user identifier and a resource processing policy.

[0130] Specifically, one of the multiple users can trigger a smart contract deployment request through a terminal. The blockchain node receives the smart contract deployment request and can parse the target user identifier and resource processing strategy from the smart contract deployment request.

[0131] Step 804: determine the corresponding associated user identifier according to the target user identifier, and send a resource processing policy to the terminal corresponding to the associated user identifier.

[0132] The user identified by the associated user identifier is the user who holds resources together with the user who triggers the smart contract deployment request. During the registration process, the user can bind with the user who holds resources together with him / her, so that the blockchain node can record the association relationship between users in the blockchain network.

[0133] Specifically, the blockchain node can determine the corresponding associated user identifier from the blockchain network according to the target user identifier, and send the parsed resource processing policy to the terminal corresponding to the associated user identifier.

[0134] Step 806: upon receiving feedback information indicating successful authorization returned by the terminal corresponding to the associated user identifier, the parsed resource processing policy is determined to be a resource processing policy jointly authorized by the user corresponding to the target user identifier and the user corresponding to the associated user identifier.

[0135] Specifically, after receiving the resource processing policy, the terminal corresponding to the associated user identifier can prompt the user to authorize. After the authorization is successful, the terminal corresponding to the associated user identifier can send feedback information indicating successful authorization to the blockchain node. After receiving the feedback information, the blockchain node can determine the resource processing policy parsed from the smart contract deployment request as the resource processing policy jointly authorized by the user corresponding to the target user identifier and the user corresponding to the associated user identifier.

[0136] It can be understood that if there are multiple associated user identifiers determined based on the target user identifier, the blockchain node can send a resource processing policy to the terminal corresponding to each associated user identifier respectively. When feedback information indicating successful authorization is returned by the terminals corresponding to all associated user identifiers, the resource processing policy obtained by parsing is determined as the resource processing policy jointly authorized by multiple users.

[0137] Step 808, obtain a preset smart contract template, generate an initial smart contract according to the resource processing strategy and the smart contract template, and perform formal verification on the initial smart contract. When the verification passes, obtain the smart contract.

[0138] Step 810, deploy the smart contract to the blockchain network.

[0139] In the above embodiment, the corresponding associated user identifier can be determined according to the user identifier carried in the smart contract deployment request, and the resource processing policy parsed from the smart contract deployment request is sent to the terminal corresponding to the associated user identifier, so that when the feedback information indicating successful authorization is returned by the terminal corresponding to the associated user identifier, the resource processing policy authorized by multiple users is obtained, so that the resource processing policy authorized by multiple users can be quickly obtained.

[0140] In some embodiments, the smart contract deployment request carries a first digital signature of the user corresponding to the target user identifier for the resource processing policy; the above method also includes: when receiving feedback information returned by the terminal corresponding to the associated user identifier, obtaining the second digital signature of the associated user corresponding to the associated user identifier for the resource processing policy from the feedback information; aggregating the first digital signature and the second digital signature to obtain an aggregated signature; obtaining the first public key corresponding to the target user identifier and the second public key corresponding to the associated user identifier, aggregating the first public key and the second public key to obtain an aggregated public key; verifying the legitimacy of the aggregated signature based on the aggregated public key, and when the legitimacy verification of the aggregated signature passes, determining that the received feedback information is feedback information indicating successful authorization.

[0141] Specifically, the blockchain node receives feedback information returned by the terminal corresponding to the associated user identifier, and can obtain the second digital signature of the associated user corresponding to the associated user identifier on the resource processing policy from the feedback information, and then can aggregate the first digital signature and the second digital signature to compress multiple digital signatures, and after the aggregation is completed, obtain the aggregated signature. Exemplarily, the digital signatures can be aggregated using the BLS (Boneh–Lynn–Shacham) signature method.

[0142] The blockchain node can further obtain the first public key corresponding to the target user identifier and the second public key corresponding to the associated user identifier, aggregate the first public key and the second public key to obtain the aggregated public key, and verify the legitimacy of the aggregated signature based on the aggregated public key. When the legitimacy verification of the aggregated signature passes, it is determined that the received feedback information is feedback information indicating successful authorization.

[0143] In the above embodiment, by aggregating the digital signatures of multiple users to obtain an aggregate signature, and then decrypting the aggregate signature through the aggregate public key, the verification efficiency can be improved, so that it can be quickly determined whether the received feedback information is feedback information indicating successful authorization.

[0144] In some embodiments, the above method also includes: determining the target resource project to be monitored based on the smart contract; the target resource project is a resource project whose ownership information can be changed; determining the resource management platform associated with the resource project, and collecting the ownership information of the resources indicated by the target resource project from the resource management platform; when the ownership information of the resources indicated by the target resource project is different from the ownership information in the smart contract, sending alarm information to the respective terminals of multiple users.

[0145] In this embodiment, the target resource project to be monitored and the corresponding ownership information are recorded in the smart contract. After the blockchain node determines the target resource project to be monitored based on the smart contract, it can determine the resource management platform associated with the resource project, and send an instruction to the resource management platform to collect the ownership information of the resources indicated by the resource project. After receiving the instruction, the resource management platform can return the ownership information of the resources indicated by the resource project to the blockchain node, so that the blockchain node can collect the ownership information of the resources. The blockchain node further calls the smart contract to compare the ownership information of the resources indicated by the target resource project with the ownership information recorded in the smart contract. If the two are different, the smart contract can send alarm information to the terminals corresponding to multiple users to prompt these users that the ownership information of the resources indicated by the target resource project has been changed.

[0146] In the above embodiment, for the target resource project to be monitored, the blockchain node can determine the resource management platform associated with the resource project, and collect the ownership information of the resources indicated by the target resource project from the resource management platform. When the collected ownership information is different from the ownership information in the smart contract, an alarm message is sent to the respective terminals of multiple users, so that the ownership information of the resources to be monitored can be monitored through the smart contract, thereby preventing the ownership of resources shared by multiple users from being maliciously changed by some of the users.

[0147] In some embodiments, the above method also includes: monitoring the resource management platform; when it is monitored that the resource management platform has new resource projects that are not recorded in the blockchain network and shared by multiple users; sending the project information of the new resource projects to the respective terminals of the multiple users, and recording the new resource projects to the blockchain network.

[0148] Specifically, the blockchain node can monitor the resource management platform. If there are new resource projects on the resource management platform, the blockchain node can record the new resource projects in the blockchain network to ensure that the resource projects recorded in the blockchain network are more accurate and comprehensive.

[0149] In some specific embodiments, the present application also provides an application scenario. In this application scenario, the resource processing method based on the blockchain network provided in the embodiment of the present application can be applied to the management of the common property of the husband and wife. The traditional method of managing the common property of the husband and wife relies on manual operation, which is inefficient and prone to disputes. In addition, the traditional property management method lacks transparency and easily leads to distrust between the two parties in the marriage relationship.

[0150] The couple first registers and provides valid proof of identity to complete identity verification. The blockchain node assigns a unique user ID to each user for identification in subsequent operations. After the couple successfully completes the registration, one of them can bind the user account with the other. During the binding process, it is necessary to upload proof that can effectively prove the relationship between the couple, such as uploading a picture of the marriage certificate. After the binding is successful, the user IDs of the couple are associated with each other.

[0151] refer to Fig. 9 After the couple logs in, they can enter various types of property information. The entered property information can be the property information that the couple wants to manage through the blockchain smart contract after negotiation. Both parties need to provide relevant proof materials of the property, such as real estate certificates, vehicle registration certificates, digital resource accounts, stock information, etc. After the blockchain node collects this information, it can review these proof materials to ensure their authenticity and validity. For the entered property information, after confirming its authenticity and validity, it can be recorded in the blockchain network.

[0152] The husband and wife can determine the property handling strategy based on the property information and the agreement reached by both parties, and one of them triggers the smart contract deployment request. After receiving the smart contract deployment request, the blockchain node parses the smart contract deployment request to obtain the target user ID and the property handling strategy, determines the corresponding associated user ID based on the target user ID, and sends the property handling strategy to the terminal corresponding to the associated user ID. When the feedback information indicating successful authorization is returned by the terminal corresponding to the associated user ID, the property handling strategy obtained by parsing is determined as the property handling strategy authorized by the husband and wife. Then the blockchain node can obtain the preset smart contract template, generate the initial smart contract according to the property handling strategy and the smart contract template, and perform formal verification on the initial smart contract. When the verification passes, the smart contract is obtained and deployed to the blockchain network.

[0153] Continue to refer Fig. 9 After the smart contract is successfully deployed, the blockchain node can call the smart contract to manage the entered property information. Specifically, it can include:

[0154] 1. Blockchain nodes can use smart contracts to purchase financial products for digital resources jointly held by a couple. Fig.10 , specifically including the following steps:

[0155] 1. Determine the property handling strategy. The blockchain node can determine the property handling strategy authorized by the couple in the smart contract based on the smart contract deployed on the blockchain network.

[0156] 2. Determine the property items. The blockchain node determines the property items associated with the property handling strategy from the blockchain network based on the property handling strategy.

[0157] 3. Collect the amount of digital resources. For the digital resource accounts in the property project, the blockchain node can determine the financial management platform associated with the digital resource account, collect the amount of digital resources indicated by the digital resource account from the financial management platform, and the financial management platform can return the amount of digital resources collected to the blockchain node.

[0158] 4. Call the smart contract to buy financial products. When the amount of digital resources meets the resource processing trigger conditions indicated by the property processing strategy, the blockchain node can obtain the corresponding financial demand information of the couple, including the expected holding time and the expected resource change rate, and then call the smart contract to perform the following steps: for each candidate financial product in the candidate financial product set corresponding to the financial platform, obtain the target historical resource change rate corresponding to multiple target historical periods of the candidate financial product, the duration corresponding to the target historical period matches the expected holding time, and according to the difference between each target historical resource change rate and the expected resource change rate, calculate the demand matching degree between the candidate financial product and multiple users, and according to the demand matching degree corresponding to each candidate financial product, determine at least one target financial product and the purchase amount corresponding to each target financial product, and according to at least one target financial product and the purchase amount corresponding to each target financial product, send a resource interaction instruction to the financial platform associated with the digital resource account, and the resource interaction instruction is used to instruct the financial platform to buy each financial product according to the purchase amount corresponding to each target financial product.

[0159] 5. Receive financial information. The blockchain node can further receive financial information such as the purchased financial products and amounts returned by the financial platform, and record this information in the blockchain network.

[0160] 2. Blockchain nodes can call smart contracts to redeem financial products jointly held by couples

[0161] For financial products such as stocks and funds in the property project, the blockchain node can determine the financial management platform associated with these financial management products, collect the yields of these financial management products from the financial management platform, and when the yield reaches the preset yield, obtain the unit resource interaction value under the yield, such as stock unit price, fund net value, etc., call the smart contract, and send resource interaction instructions to the financial management platform associated with the resource project according to the unit resource interaction value. The resource interaction instruction is used to instruct the financial management platform to redeem the financial products according to the unit resource interaction value and transfer them to the designated account.

[0162] Blockchain nodes can also monitor changes in the property of a couple in real time. When new joint property is detected, such as the purchase of a new house, a new car, stock investment, etc., the new property information will be recorded in the blockchain.

[0163] The above embodiments improve the efficiency of the management of the common property of the husband and wife, reduce the errors and disputes caused by manual operation, enhance the transparency of the management of the common property of the husband and wife, and help to enhance the trust between the two parties. At the same time, the use of technologies such as blockchain technology and smart contract technology ensures the security and reliability of the management of the common property of the husband and wife, improves the circulation speed of funds, and reduces operating costs.

[0164] In some specific embodiments, the present application also provides another application scenario, in which the resource processing method based on the blockchain network provided by the embodiment of the present application can be applied to a multi-person partnership operation scenario to manage the transaction of digital goods operated in partnership, such as audio, text, member accounts, etc. Specifically, the assets of the partnership operation can be entered and recorded in the blockchain network, and intelligence can be deployed according to the transaction strategy jointly authorized by multiple partners, and then the digital goods can be traded based on the deployed smart contract. Specifically, after the blockchain node determines the transaction strategy based on the deployed smart contract, it can determine the goods associated with the transaction strategy from the blockchain network, determine the transaction platform associated with these goods, collect the transaction status of the goods from the transaction platform, such as whether the payment has been made, whether the receipt information has been filled in, and when the transaction status meets the transaction conditions indicated by the transaction strategy, call the smart contract to send a transaction instruction to the transaction platform to instruct the transaction platform to trade the digital goods according to the receipt information.

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

[0166] Based on the same inventive concept, the embodiment of the present application also provides a resource processing device based on a blockchain network for implementing the resource processing method based on a blockchain network involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more embodiments of the resource processing device based on a blockchain network provided below can refer to the limitations of the resource processing method based on a blockchain network above, and will not be repeated here.

[0167] In some embodiments, Fig.11 As shown, a resource processing device 1100 based on a blockchain network is provided, comprising:

[0168] A resource processing strategy determination module 1102, for determining a resource processing strategy authorized by multiple users in a smart contract based on a smart contract deployed for a blockchain network;

[0169] The resource project determination module 1104 is used to determine the resource project associated with the resource processing strategy from the blockchain network according to the resource processing strategy, and the resources indicated by the resource project are shared by multiple users;

[0170] The resource status collection module 1106 is used to determine the resource management platform associated with the resource project and collect the status of the resource indicated by the resource project from the resource management platform;

[0171] The resource processing result obtaining module 1108 is used to process the resource in accordance with the resource processing method indicated by the resource processing policy to obtain the resource processing result when the resource status meets the resource processing trigger condition indicated by the resource processing policy;

[0172] The resource processing result recording module 1110 is used to record the resource processing results to the blockchain network.

[0173] The resource processing device based on the blockchain network, based on the smart contract deployed for the blockchain network, determines the resource processing strategy authorized by multiple users in the smart contract, and according to the resource processing strategy, determines the resource project associated with the resource processing strategy from the blockchain network, the resources indicated by the resource project are shared by multiple users, determines the resource management platform associated with the resource project, collects the status of the resources indicated by the resource project from the resource management platform, and when the status of the resource meets the resource processing trigger condition indicated by the resource processing strategy, processes the resource in accordance with the resource processing method indicated by the resource processing strategy to obtain the resource processing result, so that the resources shared by multiple users can be processed through the smart contract deployed for the blockchain, so that the resources shared by multiple users can be efficiently processed with the help of the automatic performance function of the smart contract, thereby improving the resource processing efficiency, and further the resource processing results can be recorded in the blockchain network, and the characteristics of data stored in the decentralized blockchain such as non-repudiation, non-tampering, and security irreversibility can be utilized to make the resource processing results of resources shared by multiple users more open, transparent and traceable.

[0174] In some embodiments, the resource indicated by the resource project is a basic resource; the resource processing result acquisition module is also used to determine the resource interaction demand information corresponding to multiple users when the resource value of the resource indicated by the resource project meets the resource interaction trigger condition indicated by the resource processing strategy; call the smart contract to send a resource interaction instruction to the resource management platform associated with the resource project according to the resource interaction demand information, and the resource interaction instruction is used to instruct the resource management platform to perform resource interaction based on the resource indicated by the resource project; receive the resource interaction result returned by the resource management platform.

[0175] In some embodiments, the resource processing result acquisition module is also used to determine at least one target resource interaction project and the resource interaction value corresponding to each target resource interaction project based on resource interaction demand information; send a resource interaction instruction to the resource management platform associated with the resource project based on the at least one target resource interaction project and the resource interaction value corresponding to each target resource interaction project; the resource interaction instruction is used to instruct the resource management platform to divide the resources indicated by the resource project according to the resource interaction value corresponding to each target resource interaction project, and perform resource interaction between each resource obtained by the division and its corresponding target resource interaction project.

[0176] In some embodiments, resource interaction demand information includes the expected holding time corresponding to the resource and the expected resource change rate corresponding to the expected holding time; the resource processing result acquisition module is also used to obtain the target historical resource change rate corresponding to multiple target historical periods of the candidate interaction resource project for each candidate interaction resource project in the candidate interaction resource project set corresponding to the resource management platform, and the duration corresponding to the target historical period matches the expected holding time; based on the difference between each target historical resource change rate and the expected resource change rate, the demand matching degree between the candidate interaction resource project and multiple users is calculated; based on the demand matching degree corresponding to each candidate interaction resource project, at least one target resource interaction project and the resource interaction value corresponding to each target resource interaction project are determined.

[0177] In some embodiments, the resource processing result acquisition module is also used to match multiple target historical periods for the candidate interactive resource items according to the expected holding time; obtain the target historical resource change rate corresponding to each target historical period; based on the difference between the target historical resource change rate and the expected resource change rate, filter out the matching historical resource change rate that matches the expected resource change rate from the target historical resource change rate; and calculate the matching degree between the candidate interactive resource items and the needs of multiple users according to the number of matching historical resource change rates and the number of target historical resource change rates.

[0178] In some embodiments, the resource indicated by the resource project is a resource obtained by performing resource interaction on the basic resource; the resource processing result acquisition module is also used to obtain the unit resource interaction value corresponding to the resource indicated by the resource project under the resource change state when the resource change state of the resource indicated by the resource project meets the resource interaction trigger condition indicated by the resource processing strategy; call the smart contract to send a resource interaction instruction to the resource management platform associated with the resource project according to the unit resource interaction value, and the resource interaction instruction is used to instruct the resource management platform to perform resource interaction on the resource project associated with the resource processing strategy and the preset resource project according to the unit resource interaction value to obtain the resource interaction result; receive the resource interaction result returned by the resource management platform.

[0179] In some embodiments, the above-mentioned device also includes a smart contract deployment module, which is used to obtain a resource processing strategy authorized by multiple users; obtain a preset smart contract template, generate an initial smart contract according to the resource processing strategy and the smart contract template, and perform formal verification on the initial smart contract. When the verification passes, the smart contract is obtained; and the smart contract is deployed to the blockchain network.

[0180] In some embodiments, the smart contract deployment module is also used to receive a smart contract deployment request, parse the smart contract deployment request to obtain a target user identifier and a resource processing policy; determine the corresponding associated user identifier based on the target user identifier, and send the resource processing policy to the terminal corresponding to the associated user identifier; when feedback information indicating successful authorization is returned by the terminal corresponding to the associated user identifier, the resource processing policy obtained by parsing is determined as a resource processing policy jointly authorized by the user corresponding to the target user identifier and the user corresponding to the associated user identifier.

[0181] In some embodiments, the smart contract deployment request carries a first digital signature of the user corresponding to the target user identifier for the resource processing policy; the smart contract deployment module is also used to obtain, from the feedback information received, the second digital signature of the associated user corresponding to the associated user identifier for the resource processing policy; aggregate the first digital signature and the second digital signature to obtain an aggregated signature; obtain the first public key corresponding to the target user identifier and the second public key corresponding to the associated user identifier, aggregate the first public key and the second public key to obtain an aggregated public key; perform legitimacy verification on the aggregated signature based on the aggregated public key, and when the legitimacy verification of the aggregated signature passes, determine that the received feedback information is feedback information indicating successful authorization.

[0182] In some embodiments, the above-mentioned device also includes a first monitoring module, which is used to determine the target resource project to be monitored based on the smart contract; the target resource project is a resource project whose ownership information can be changed; determine the resource management platform associated with the resource project, and collect the ownership information of the resources indicated by the target resource project from the resource management platform; when the ownership information of the resources indicated by the target resource project is different from the ownership information in the smart contract, send an alarm message to the respective terminals of multiple users.

[0183] In some embodiments, the above-mentioned device also includes a second monitoring module for monitoring the resource management platform; when it is monitored that the resource management platform has new resource projects that are not recorded in the blockchain network and shared by multiple users; the project information of the new resource projects is sent to the respective terminals of the multiple users, and the new resource projects are recorded in the blockchain network.

[0184] Each module in the resource processing device based on the blockchain network can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0185] In some embodiments, a computer device is provided, which may be a server serving as a blockchain node, and its internal structure diagram may be as follows: Fig.12 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 blockchain data. The input / output interface of the computer device is used to exchange information between the processor and an 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 processing method based on a blockchain network is implemented.

[0186] In some embodiments, a computer device is provided, which may be a terminal serving as a blockchain node, and its internal structure diagram may be as follows: Fig.13As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. 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 in a wired or wireless manner, and the wireless method can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a resource processing method based on a blockchain network is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0187] Those skilled in the art will understand that Fig.12 , Fig.13 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.

[0188] In some embodiments, 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 of the above-mentioned resource processing method based on the blockchain network are implemented.

[0189] In some embodiments, 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 of the above-mentioned resource processing method based on the blockchain network are implemented.

[0190] In some embodiments, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned resource processing method based on the blockchain network.

[0191] 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 laws, regulations and standards of relevant countries and regions.

[0192] 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 this 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.

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

[0194] The above-described 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 processing method based on blockchain network, It is characterized in that The method comprises: Determining, based on a smart contract deployed for a blockchain network, a resource processing strategy authorized by a plurality of users in the smart contract; According to the resource processing strategy, determining a resource item associated with the resource processing strategy from the blockchain network, where the resource indicated by the resource item is shared by the multiple users; Determine a resource management platform associated with the resource project, and collect the status of the resources indicated by the resource project from the resource management platform; When the state of the resource meets the resource processing trigger condition indicated by the resource processing policy, the resource is processed according to the resource processing method indicated by the resource processing policy to obtain a resource processing result; The resource processing result is recorded in the blockchain network.

2. The method according to claim 1, It is characterized in that The resource indicated by the resource item is a basic resource; when the state of the resource meets the resource processing trigger condition indicated by the resource processing strategy, the resource is processed according to the resource processing method indicated by the resource processing strategy to obtain a resource processing result, including: When the resource value of the resource indicated by the resource item meets the resource interaction triggering condition indicated by the resource processing strategy, determining the resource interaction demand information corresponding to the multiple users; Calling the smart contract, and sending a resource interaction instruction to the resource management platform associated with the resource project according to the resource interaction demand information, wherein the resource interaction instruction is used to instruct the resource management platform to perform resource interaction based on the resources indicated by the resource project; Receive the resource interaction result returned by the resource management platform.

3. The method according to claim 2, It is characterized in that The sending of a resource interaction instruction to a resource management platform associated with the resource project according to the resource interaction requirement information includes: Determine at least one target resource interaction item and a resource interaction value corresponding to each target resource interaction item according to the resource interaction demand information; Sending a resource interaction instruction to a resource management platform associated with the resource item according to the at least one target resource interaction item and the resource interaction values ​​corresponding to each target resource interaction item; The resource interaction instruction is used to instruct the resource management platform to divide the resources indicated by the resource items according to the resource interaction values ​​corresponding to each target resource interaction item, and to perform resource interaction between each resource obtained by the division and its corresponding target resource interaction item.

4. The method according to claim 3, It is characterized in that The resource interaction requirement information includes an expected holding time corresponding to a resource and an expected resource change rate corresponding to the expected holding time; determining at least one target resource interaction item and a resource interaction value corresponding to each target resource interaction item according to the resource interaction requirement information includes: For each candidate interactive resource item in the candidate interactive resource item set corresponding to the resource management platform, obtaining a target historical resource change rate corresponding to a plurality of target historical periods of the candidate interactive resource item, wherein the duration corresponding to the target historical period matches the expected holding duration; According to the difference between each of the target historical resource change rates and the expected resource change rate, the matching degree between the candidate interactive resource items and the needs of the multiple users is calculated; At least one target resource interaction item and resource interaction values ​​corresponding to each target resource interaction item are determined according to the demand matching degree corresponding to each candidate interaction resource item.

5. The method according to claim 4, It is characterized in that The calculating, according to the difference between each of the target historical resource change rates and the expected resource change rate, the matching degree between the candidate interactive resource items and the needs of the multiple users includes: According to the expected holding time, multiple target historical periods of the candidate interactive resource items are matched and obtained; Obtaining the target historical resource change rate corresponding to each of the target historical periods; According to the difference between the target historical resource change rate and the expected resource change rate, a matching historical resource change rate that matches the expected resource change rate is selected from the target historical resource change rate; The matching degree between the candidate interactive resource items and the requirements of the multiple users is calculated according to the number of the matching historical resource change rates and the number of the target historical resource change rates.

6. The method according to claim 1, It is characterized in that The resource indicated by the resource item is a resource obtained by performing resource interaction on the basic resource; When the state of the resource meets the resource processing trigger condition indicated by the resource processing policy, the resource is processed according to the resource processing method indicated by the resource processing policy to obtain a resource processing result, including: When the resource change state of the resource indicated by the resource item meets the resource interaction triggering condition indicated by the resource processing strategy, obtaining the unit resource interaction value corresponding to the resource indicated by the resource item in the resource change state; Calling the smart contract, and sending a resource interaction instruction to the resource management platform associated with the resource project according to the unit resource interaction value, wherein the resource interaction instruction is used to instruct the resource management platform to perform resource interaction on the resource project associated with the resource processing strategy and the preset resource project according to the unit resource interaction value, and obtain a resource interaction result; Receive the resource interaction result returned by the resource management platform.

7. The method according to claim 1, It is characterized in that The method further comprises: Get resource handling policies authorized by multiple users; Obtain a preset smart contract template, generate an initial smart contract according to the resource processing strategy and the smart contract template, and perform formal verification on the initial smart contract. When the verification passes, obtain the smart contract; Deploy the smart contract to the blockchain network.

8. The method according to claim 7, It is characterized in that The obtaining of resource processing policies authorized by multiple users includes: Receiving a smart contract deployment request, and parsing the smart contract deployment request to obtain a target user identifier and a resource processing strategy; Determine a corresponding associated user identifier according to the target user identifier, and send the resource processing policy to a terminal corresponding to the associated user identifier; When feedback information indicating successful authorization is received from the terminal corresponding to the associated user identifier, the parsed resource processing policy is determined to be a resource processing policy jointly authorized by the user corresponding to the target user identifier and the user corresponding to the associated user identifier.

9. The method according to claim 8, It is characterized in that The smart contract deployment request carries a first digital signature of the resource processing policy by the user corresponding to the target user identifier; the method further includes: When receiving feedback information returned by the terminal corresponding to the associated user identifier, obtaining a second digital signature of the associated user corresponding to the associated user identifier on the resource processing policy from the feedback information; Aggregating the first digital signature and the second digital signature to obtain an aggregate signature; Obtaining a first public key corresponding to the target user identifier and a second public key corresponding to the associated user identifier, and aggregating the first public key and the second public key to obtain an aggregated public key; The aggregate signature is verified for legitimacy based on the aggregate public key, and when the legitimacy verification of the aggregate signature passes, it is determined that the received feedback information is feedback information indicating successful authorization.

10. The method according to claim 1, It is characterized in that The method further comprises: Based on the smart contract, determine the target resource project to be monitored; the target resource project is a resource project whose ownership information can be changed; Determine a resource management platform associated with the resource project, and collect ownership information of the resources indicated by the target resource project from the resource management platform; When the ownership information of the resource indicated by the target resource item is different from the ownership information in the smart contract, an alarm message is sent to the respective terminals of the multiple users.

11. The method according to any one of claims 1 to 10, It is characterized in that The method further comprises: Monitoring the resource management platform; When it is detected that the resource management platform has new resource items that are not recorded in the blockchain network and are shared by the multiple users; The project information of the newly added resource project is sent to the respective terminals of the multiple users, and the newly added resource project is recorded in the blockchain network.

12. A resource processing device based on blockchain network, It is characterized in that The device comprises: A resource processing strategy determination module, for determining, based on a smart contract deployed for a blockchain network, resource processing strategies authorized by multiple users in the smart contract; A resource project determination module, configured to determine, from the blockchain network, a resource project associated with the resource processing strategy according to the resource processing strategy, wherein the resource indicated by the resource project is shared by the multiple users; A resource status collection module, used to determine the resource management platform associated with the resource project, and collect the status of the resources indicated by the resource project from the resource management platform; A resource processing result obtaining module, used to process the resource in a resource processing manner indicated by the resource processing strategy to obtain a resource processing result when the resource status satisfies the resource processing trigger condition indicated by the resource processing strategy; The resource processing result recording module is used to record the resource processing result to the blockchain network.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, It is 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 11 are implemented.

15. A computer program product comprising a computer program, It is 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 11 are implemented.