Resource transfer method and device, equipment, storage medium and program product
By creating target resource blocks on the blockchain and using smart contracts to perform resource transfers, the security and speed problems in traditional cross-border resource transfers are solved, and a transparent, tamper-proof and traceable resource transfer process is achieved.
Patent Information
- Application Number
- CN202411019101.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-12-20
AI Technical Summary
Traditional cross-border resource transfers have problems such as insecure resource transfers, including the risks of data breach, improper credit verification and slow transfer speed.
By obtaining user resource transfer requests on the blockchain, creating target resource blocks, and performing resource transfer operations through smart contracts, ensuring the transparency and immutability of resource transfer, reducing fraud risks, and improving transaction traceability and security sex.
It improves the security and speed of resource transfer, reduces potential fraud risks, and ensures the transparency and irreversibility of the resource transfer process.
Smart Images

Figure CN119168769A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a resource transfer method, device, equipment, storage medium and program product. Background Art
[0002] Cross-border resource transfer refers to the process of transferring resources in cross-border trade or international transactions. It involves the transfer of resources between different cross-border regions and can realize the resource transfer needs of purchasing goods or services abroad.
[0003] In related technologies, traditional cross-border resource transfer usually requires the help of a third-party institution for credit verification and resource transfer. The initiator of the resource transfer submits a resource transfer instruction through a local bank or a resource transfer service provider. After credit verification, the resources are transferred to an overseas bank through an international resource transfer channel, and finally transferred to the target object through a cross-border resource transfer system and an intermediary bank.
[0004] However, the above technology may have the problem of unsafe resource transfer. Summary of the invention
[0005] Based on this, it is necessary to provide a resource transfer method, device, equipment, storage medium and program product that can improve the security of resource transfer in response to the above technical problems.
[0006] In a first aspect, the present application provides a resource transfer method, the method comprising:
[0007] Obtaining a first resource transfer request input by a user on a blockchain; the first resource transfer request includes the user's resource information to be transferred;
[0008] Create a matching target resource block on the blockchain according to the resource information to be transferred, and transfer the target resource block to the user;
[0009] The resource transfer operation between the user and the target object is performed according to the target resource block.
[0010] In one embodiment, the above-mentioned transferring the target resource block to the user includes:
[0011] Creating a smart contract based on the target resource block; the smart contract includes attribute information of the target resource block, the object to which the target resource block belongs, and the transfer strategy of the target resource block;
[0012] The control smart contract updates the ownership object to the user to transfer the target resource block to the user.
[0013] In one embodiment, the control smart contract updates the attribution object to the user, including:
[0014] Control the smart contract to verify the information of resources to be transferred;
[0015] If the resource information to be transferred is verified, the control smart contract will update the ownership object to the user.
[0016] In one embodiment, the above-mentioned performing a resource transfer operation between a user and a target object according to a target resource block includes:
[0017] Obtaining a second resource transfer request input by the user on the blockchain; the second resource transfer request is used to represent the transfer demand between the user and the target object;
[0018] The smart contract is controlled according to the second resource transfer request to execute a resource transfer operation between the user and the target object.
[0019] In one embodiment, the controlling the smart contract to execute the resource transfer operation between the user and the target object according to the second resource transfer request includes:
[0020] According to the second resource transfer request, the smart contract is controlled to update the belonging object from the user to the target object, so as to transfer the target resource block to the target object.
[0021] In one embodiment, before the smart contract is controlled according to the second resource transfer request to update the belonging object from the user to the target object, the method includes:
[0022] Obtaining the first identity authentication information of the user and the second identity authentication information of the target object;
[0023] Verify both the first identity verification information and the second identity verification information;
[0024] If both the first identity authentication information and the second identity authentication information are verified, the step of returning to execute the second resource transfer request to control the smart contract to update the belonging object from the user to the target object.
[0025] In one embodiment, the method further comprises:
[0026] Obtaining a third resource transfer request input by the target object on the blockchain; the third resource transfer request includes a target resource block and a resource transfer type;
[0027] The target resource block is converted according to the resource transfer type to determine the target resource corresponding to the target resource block.
[0028] In one embodiment, the method further comprises:
[0029] Control the smart contract to reclaim the target resource block, and control the smart contract to update the ownership object from the target object to the transfer platform;
[0030] Release the target resource block.
[0031] In a second aspect, the present application further provides a resource transfer device, the device comprising:
[0032] A request acquisition module is used to acquire a first resource transfer request input by a user on the blockchain; the first resource transfer request includes the user's resource information to be transferred;
[0033] The resource creation module creates a matching target resource block on the blockchain according to the resource information to be transferred, and transfers the target resource block to the user;
[0034] The resource transfer module performs resource transfer operations between the user and the target object according to the target resource block.
[0035] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0036] Obtaining a first resource transfer request input by a user on a blockchain; the first resource transfer request includes the user's resource information to be transferred;
[0037] Create a matching target resource block on the blockchain according to the resource information to be transferred, and transfer the target resource block to the user;
[0038] The resource transfer operation between the user and the target object is performed according to the target resource block.
[0039] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0040] Obtaining a first resource transfer request input by a user on a blockchain; the first resource transfer request includes the user's resource information to be transferred;
[0041] Create a matching target resource block on the blockchain according to the resource information to be transferred, and transfer the target resource block to the user;
[0042] The resource transfer operation between the user and the target object is performed according to the target resource block.
[0043] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0044] Obtaining a first resource transfer request input by a user on a blockchain; the first resource transfer request includes the user's resource information to be transferred;
[0045] Create a matching target resource block on the blockchain according to the resource information to be transferred, and transfer the target resource block to the user;
[0046] The resource transfer operation between the user and the target object is performed according to the target resource block.
[0047] The resource transfer method, device, equipment, storage medium and program product obtain the first resource transfer request input by the user on the blockchain, create a target resource block matching the resource information to be transferred on the blockchain, transfer the target resource block to the user, and then perform the resource transfer operation between the user and the target object according to the target resource block; wherein the first resource transfer request includes the user's resource information to be transferred. In this method, since the target resource block can be created on the blockchain according to the first resource transfer request input by the user on the blockchain and the resource information to be transferred in the first resource transfer request, and since the above operations are all performed on the blockchain, the transparency and non-tamperability of the resource transfer operation can be ensured, and anyone can verify and audit the resource transfer process, thereby reducing potential fraud or tampering risks. At the same time, the target resource block is transferred from the blockchain to the user, and then the resource transfer operation between the user and the target object is performed according to the target resource block. The transfer information during the resource transfer operation is recorded on the blockchain, thereby ensuring the traceability and irreversibility of the transaction, and then the security of resource transfer can be further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] FIG1 is a diagram showing the internal structure of a computer device in one embodiment;
[0049] FIG2 is a schematic diagram of a flow chart of a resource transfer method in one embodiment;
[0050] FIG3 is a schematic diagram of a flow chart of a resource transfer method in another embodiment;
[0051] FIG4 is a schematic diagram of a flow chart of a resource transfer method in another embodiment;
[0052] FIG5 is a schematic diagram of a flow chart of a resource transfer method in another embodiment;
[0053] FIG6 is a schematic diagram of a flow chart of a resource transfer method in another embodiment;
[0054] FIG7 is a schematic diagram of a flow chart of a resource transfer method in another embodiment;
[0055] FIG8 is a schematic diagram of a flow chart of a resource transfer method in another embodiment;
[0056] FIG9 is a schematic diagram of a flow chart of a resource transfer method in another embodiment;
[0057] FIG. 10 is a structural block diagram of a resource transfer device in one embodiment. DETAILED DESCRIPTION
[0058] 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.
[0059] Traditional cross-border resource transfer usually requires the help of a third-party agency for credit verification and resource transfer. The third-party agency will involve sensitive information of users in the process of handling cross-border resource transfer. The data storage and transmission process of the third-party agency may be at risk of data leakage, and user data may be leaked; at the same time, when the third-party agency performs credit verification, there may be problems with lax credit assessment and identity authentication. When the third-party agency fails to fully verify the credit of both parties involved in the resource transfer, it may lead to fraud and bad resource transfer, and the security of the resource transfer process cannot be ensured. In addition, the third-party agency may need to go through multiple intermediary agencies during the resource transfer process, resulting in a long resource transfer time and a slow resource transfer speed. Therefore, the embodiments of the present application provide a resource transfer method, device, equipment, storage medium and program product that can solve the above technical problems.
[0060] The resource transfer method provided in the embodiment of the present application can be applied to a computer device, which can be a terminal or a server. Taking a terminal as an example, its internal structure diagram can be shown in Figure 1. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. 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 communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a resource transfer method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the housing of the computer device, or an external keyboard, touchpad or mouse.
[0061] Those skilled in the art will understand that the structure shown in FIG. 1 is merely a block diagram of a partial 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 shown in the figure, or combine certain components, or have a different arrangement of components.
[0062] In one embodiment, a resource transfer method is provided. This embodiment relates to a specific process of creating a target resource block on a blockchain according to a user's resource transfer request and transferring the target resource block. As shown in FIG2 , taking the method applied to the computer device in FIG1 as an example, the method may include the following steps:
[0063] S202, obtaining a first resource transfer request input by a user on a blockchain; the first resource transfer request includes the user's resource information to be transferred.
[0064] Among them, blockchain is a decentralized distributed ledger technology, which uses cryptography and consensus algorithms to ensure the security and credibility of data, and can connect resource transfer data into data blocks in chronological order, and store and maintain resource transfer data in a decentralized manner. In addition, the first resource transfer request refers to a request submitted by a user to the transfer platform, and the resource transfer request can be a request to transfer resources already owned by the user, or a transfer request initiated for resources displayed by other users in the transfer platform, which is not specifically limited in this embodiment.
[0065] Furthermore, the first resource transfer request includes information about resources to be transferred, which may include resource metadata information, such as resource name, resource description, and other attributes; the resource information to be transferred may also include a resource identifier, which is a unique identifier that can be used to characterize a resource; the resource information to be transferred may also include information such as resource content, user information, and the actual value of the resource (i.e., resource value). In short, the resource information to be transferred includes at least information about which resource the user needs to transfer, and resource information about the actual value or resource value of the resource that the user actually needs to transfer to the transfer platform.
[0066] It should be noted that the transfer platform can usually provide users with a user interface or application, which can display content related to the blockchain network, so that users can interact with the blockchain network through the user interface or application and initiate various types of resource transfer requests on the blockchain.
[0067] In addition, for the method of obtaining the above-mentioned resource transfer request, the transfer platform can obtain the transfer request information entered by the user on the interface through the user interface or application. Alternatively, the transfer platform can monitor the resource transfer events in the blockchain network. When the user initiates a resource transfer request on the transfer platform blockchain, the resource transfer platform can monitor the corresponding resource transfer event and obtain the relevant resource transfer request information in a timely manner. Alternatively, the transfer platform can also query and obtain the information of the user's resource transfer request by connecting to a blockchain browser or node. The blockchain browser will provide a public interface that allows users and transfer platforms to view and search the resource transfer data on the blockchain, thereby obtaining the resource transfer request initiated by the user. Of course, other technical means can also be used to obtain the resource transfer request initiated by the user, and this embodiment does not specifically limit this.
[0068] Furthermore, in the above-mentioned method for obtaining the resource transfer request, the input method for the user to input the resource transfer request may be voice input, keyboard input or the like.
[0069] Specifically, after obtaining the first resource transfer request initiated by the user on the blockchain of the transfer platform, the computer device can obtain the first resource transfer request initiated by the user. The computer device may be, for example, a backend computer device of a financial institution.
[0070] For example, the first resource transfer request input by the user may be a physical resource transfer request initiated by the user to the bank transfer platform, or may be a virtual financial resource transfer request.
[0071] S204: Create a matching target resource block on the blockchain according to the information of the resources to be transferred, and transfer the target resource block to the user.
[0072] The target resource block is created according to the resource information to be transferred in the first resource transfer request initiated by the user, and the created target resource block has unique identification information, that is, the resource identification in the resource information to be transferred.
[0073] It should be noted that the target resource block can be used to represent actual items, and can also be used to represent virtual items (the virtual items here can be, for example, audio and video resources, etc.). For example, the target resource block here can be an adapted NFT created for the user, which can be represented as an actual item or virtual item created by the user that matches the resource information to be transferred, etc. This embodiment does not specifically limit this.
[0074] In addition, the target resource block matching the blockchain can be created through a common blockchain platform or a cross-chain platform. Of course, the target resource block can also be created in other ways, which are not specifically limited in this embodiment.
[0075] Furthermore, transferring the target resource block to the user means that after the transfer platform creates the target resource block according to the resource information to be transferred in the first resource transfer request initiated by the user, the target resource block is transferred to the user. The transfer method may be that the user provides a receiving address, and the transfer platform transfers the target resource to the receiving address provided by the user. Alternatively, after creating the target resource block, the transfer platform provides the user with a download link, through which the user can download the content related to the target resource block, thereby transferring the target resource block to the user. Of course, the target resource block can also be transferred in other ways, which are not specifically limited in this embodiment.
[0076] Specifically, after obtaining the first resource transfer request input by the user on the blockchain, a target resource block matching the resource information to be transferred is created on the blockchain according to the resource information to be transferred included in the first resource transfer request, and then the target resource block is transferred on the blockchain, and the target resource block is transferred to the user through the transfer platform, so that the user obtains the target resource block.
[0077] For example, taking the bank transfer platform as an example, the target resource block can represent physical resources or virtual financial resources. The bank's transfer platform creates a target resource block that can represent virtual financial resources on the blockchain, and transfers the target resource block representing virtual financial resources to the receiving address provided by the user according to the receiving address provided by the user.
[0078] S206: Execute a resource transfer operation between the user and the target object according to the target resource block.
[0079] The target object can be other overseas users on the blockchain in the transfer platform, or overseas enterprises on the blockchain in the transfer platform; of course, it can also be domestic users or domestic enterprises, for example, it can be a merchant in a certain transfer platform, etc. In addition, the target object can display the relevant resources belonging to the target object on the transfer platform. The relevant resources can be virtual resources or actual resources. Users can obtain the relevant resource information displayed by the target object through the transfer platform.
[0080] Furthermore, when the user needs to obtain relevant resource information displayed by the target object on the transfer platform, the target resource block can be transferred to the target object. After the target object receives the target resource block, the actual resources or virtual resources corresponding to the relevant resource information required by the user can be sent to the user. In other words, the user can exchange the target resource block for relevant resources owned by other users in the transfer platform.
[0081] In addition, resource transfer refers to the process of transferring target resources from one party to another. The above-mentioned resource transfer operation refers to the resource transfer operation between the user and the target object. For example, the resource transfer method can be to transfer the target resource block from the user to the target object through a smart contract, which is verified and confirmed by the blockchain network. Alternatively, it can also be transferred through a contract, such as interacting after reaching a contract between two smart contracts, and transferring the target resource block when specific conditions are met or events are triggered, thereby realizing the operation of transferring the target resource from the user to the target object.
[0082] It should be noted that the resource transfer operation is carried out on the blockchain, and the relevant information involved in the resource transfer process will also be recorded in the blockchain, thereby ensuring the information security of the entire resource transfer process.
[0083] Specifically, after the user obtains the target resource block, the user can reach an agreement with the target object as needed, and the transfer platform transfers the target resource block from the user to the target object, and the target object obtains the target resource block.
[0084] For example, taking the bank transfer platform as an example, the user obtains the corresponding target resource block representing virtual resource information from the transfer platform. The target resource block itself has a certain actual value. The user can obtain the relevant resource information about actual resources and the relevant resource information about virtual resources displayed by overseas users or overseas enterprises on the transfer platform. The user can transfer the target resource block to overseas users or overseas enterprises, thereby obtaining the actual resources or virtual resources corresponding to the relevant resource information displayed by overseas users or overseas enterprises.
[0085] In the above resource transfer method, by obtaining the first resource transfer request input by the user on the blockchain, a target resource block matching the resource information to be transferred is created on the blockchain, and the target resource block is transferred to the user, and then the resource transfer operation between the user and the target object is performed according to the target resource block; wherein, the first resource transfer request includes the user's resource information to be transferred. In this method, since the target resource block can be created on the blockchain according to the first resource transfer request input by the user on the blockchain and the resource information to be transferred in the first resource transfer request, and since the above operations are all performed on the blockchain, the transparency and non-tamperability of the resource transfer operation can be ensured, and anyone can verify and audit the resource transfer process, thereby reducing potential fraud or tampering risks. At the same time, the target resource block is transferred from the blockchain to the user, and then the resource transfer operation between the user and the target object is performed according to the target resource block. The transfer information during the resource transfer operation is recorded on the blockchain, thereby ensuring the traceability and irreversibility of the transaction, and then the security of resource transfer can be further improved.
[0086] The above embodiment mentioned that the target resource block can be transferred to the user. The following embodiment will describe a possible implementation method of how to transfer the target resource block to the user.
[0087] In another embodiment, another resource transfer method is provided. Based on the above embodiment, as shown in FIG3 , the above S204 may include the following steps:
[0088] S302, creating a smart contract according to the target resource block; the smart contract includes attribute information of the target resource block, the owner of the target resource block, and the transfer strategy of the target resource block.
[0089] Among them, a smart contract is a computer program that executes and automates contract terms on the blockchain. It is a series of automatically executed rules and conditions that exist in coded form on the blockchain. When the preset conditions for the execution of the smart contract are met, the execution of the smart contract will be automatically triggered. Moreover, the code logic of the smart contract can be verified through the distributed consensus algorithm of the blockchain and executed on multiple nodes. The correctness of the contract execution results can be publicly verified and audited. In addition, the code of the smart contract cannot be modified after it is deployed on the blockchain.
[0090] The creation of smart contracts is based on the target resource block. Smart contracts can be created by manual writing. Contract code can be written in a programming language that supports smart contracts, and the rules, conditions and operations of the contract can be defined, such as Solidity, Vyper and other programming languages. Alternatively, smart contracts can be created using smart contract development tools, such as Truffle and Remix. Common smart contract development frameworks usually provide contract compilation, deployment, testing and debugging functions, and can be integrated with the development environment. Alternatively, smart contracts can also be created using smart contract templates and libraries. Templates and libraries usually provide some common smart contract structures and functions, which can be customized and extended based on templates and libraries. Of course, smart contracts can also be created in other ways, and this embodiment does not specifically limit this.
[0091] Furthermore, the smart contract may include the attribute information of the target resource block, which includes the resource identifier, resource metadata, resource content, actual value, user information, etc. of the target resource block. The smart contract may also include the owner of the target resource block, which can transfer the target resource block. In addition, the smart contract also includes the transfer strategy of the target resource block, which defines the resource transfer method and restriction conditions of the target resource block in the blockchain network. The resource transfer method here refers to the actual delivery method of the target resource block in the blockchain network, such as the target resource block can be transferred by initiating a resource transfer request; the restriction condition refers to a series of conditions or rules that the target resource block needs to meet during the transfer process, such as conditions that limit resource transfer, such as when the resource information meets certain conditions, resource transfer can be performed, etc.
[0092] In this step, a smart contract is created according to the target resource block. Optionally, the following steps A1-A5 may be used for creation:
[0093] Step A1, create a contract file using the smart contract programming language, define the structure or variables in the contract to store the attribute information of the target resource block, and determine the data type and storage method, such as string, integer, address, etc., and set the constructor to initialize the attribute information of the target resource block.
[0094] Step A2, creating a transfer function to process the transfer operation of the target resource block, determining function parameters, such as the sender address and the receiver address, and the function parameters also include the target resource block's belonging object information, such as the current belonging object information and the historical belonging object information.
[0095] Step A3, setting a specific transfer strategy, which may include smart contract execution conditions, resource information verification methods, resource transfer methods, etc.
[0096] Step A4: Use the contract deployment tool to deploy the smart contract to the blockchain network and configure the parameters of the smart contract.
[0097] Step A5, write test scripts or use a test framework to perform unit testing and integration testing on the smart contract to check the functionality and security of the smart contract, fix possible errors or problems, and ensure the stability of the smart contract in different scenarios and boundary conditions.
[0098] It should be noted that, in this step, after the target resource block is initially created, its current owner is the transfer platform.
[0099] Specifically, a smart contract is created on the blockchain using a smart contract programming language according to the target resource block, and the attribute information of the target resource block, the owner of the target resource block, and the transfer strategy of the target resource block are deployed into the smart contract to obtain the smart contract.
[0100] For example, corresponding functions can be created in smart contracts. For example, a resourceBlocks mapping table can be created to store the attribute information of the target resource block; a createResourceBlock function can be constructed to create the target resource block, where the input parameters include the target resource block identifier, attributes, and the address of the belonging object; a requestTransfer function is created to allow the resource block belonging object to initiate a transfer request and specify the transfer target address; a transfer function approveTransfer is created to execute resource transfer and update the belonging object of the target resource block.
[0101] S304, controlling the smart contract to update the belonging object to the user, so as to transfer the target resource block to the user.
[0102] Among them, controlling the smart contract to update the ownership object to the user means creating a smart contract on the blockchain network of the computer device, setting the transfer strategy in the smart contract, and when the execution condition of the smart contract is triggered, the computer acts as the execution subject to control the smart contract to execute the resource transfer operation, transfer the target resources to the user, and update the ownership object to the user.
[0103] It should be noted that after the user becomes the owner of the target resource block, he can continue to transfer the target resource block based on the smart contract, or he can recreate the smart contract of the target resource block and transfer the target resource block based on the new smart contract.
[0104] Specifically, after the smart contract is created as described above, the computer device controls the smart contract to transfer the target resource block to the user and updates the belonging object to the user.
[0105] For example, the computer device can control the smart contract to execute the requestTransfer function and the approveTransfer function to transfer the target resource block to the user.
[0106] In this embodiment, a smart contract is created according to the target resource block, and then the smart contract is controlled to transfer the target resource block to the user, and the attribution object of the target resource block is updated to the user; wherein the smart contract includes the attribute information of the target resource block, the attribution object of the target resource block, and the transfer strategy of the target resource block. Here, the target resource transfer operation is performed by the smart contract, and the smart contract is created on the blockchain. Therefore, after the smart contract executes the resource transfer operation, the resource transfer process will be written into the blockchain's tamper-proof ledger and permanently recorded, thereby ensuring the security and irreversibility of the resource transfer.
[0107] The above embodiment mentioned that the smart contract can be controlled to update the belonging object to the user. The following embodiment describes the process of how to control the smart contract to update the belonging object to the user.
[0108] In another embodiment, another resource transfer method is provided. As shown in FIG. 4 , based on the above embodiment, the above S304 may include the following steps:
[0109] S402, controlling the smart contract to verify the information of resources to be transferred.
[0110] In this step, the above-mentioned smart contract includes the attribute information of the target resource block, and the attribute information includes the resource identifier, resource metadata, resource content, actual value of the resource, user information, etc. of the target resource block. The above-mentioned resource information to be transferred includes resource metadata information, resource identification, resource content, user information, actual value of the resource, etc. The control smart contract verifies the resource information to be transferred. Optionally, the following steps B1-B5 can be used for verification:
[0111] Step B1, verifying the unique identifier of the resource to be transferred to ensure that the resource to be transferred is the correct target resource block and has not been tampered with or replaced.
[0112] Step B2: Verify the integrity and legitimacy of the metadata of the resource to be transferred, including verifying the format, signature or hash value of the metadata to ensure that the metadata matches the actual resource.
[0113] Step B3, verifying the integrity of the resource content to be transferred, can use a hash algorithm to verify the resource content to be transferred to ensure that the resource content to be transferred has not been tampered with during the transmission process.
[0114] Step B4, performing security verification on the user information, such as verifying the user's identity authentication, authority or access control, etc., which may include checking the user's digital signature, password verification or using a multi-authentication mechanism, etc.
[0115] Step B5, verifying whether the user has transferred the actual resources corresponding to the actual value of the target resource block to the transfer platform, and ensuring that the user has successfully transferred the corresponding actual resources to the transfer platform.
[0116] For example, taking the case where a user initiates the first resource transfer request to a bank transfer platform, the computer equipment of the bank transfer platform controls the smart contract to verify the resource information to be transferred. After verifying the unique identifier, resource metadata, resource content, and user information of the resource to be transferred, it is also necessary to verify whether the user has transferred the actual resources corresponding to the actual value of the target resource block to the bank transfer platform.
[0117] S404: If the resource information to be transferred is verified, the smart contract is controlled to update the belonging object to the user.
[0118] In this step, when the smart contract is created, a transfer function is created to process the transfer operation of the target resource block. The transfer function includes some parameters, such as user address, target resource identifier, and belonging object. After the control smart contract verifies the resource information to be transferred, the smart contract can be controlled to update the belonging object from the transfer platform to the user. The specific process of the update can be optionally updated using the following steps C1-C3:
[0119] Step C1, updates the relevant data structure or state variables stored inside the contract, associates the user address of the transfer function in the smart contract with the target resource identifier, updates the user address in the transfer function from the address of the transfer platform to the user address, and updates the attribution object from the transfer platform to the user. After the update is completed, the current attribution object is the user, and the historical attribution object is the transfer platform.
[0120] Step C2, when the target resource block is transferred and updated, the relevant historical information is recorded on the blockchain, such as the timestamp of the transfer, the user addresses before and after the transfer, the current owner and the historical owner, for subsequent query and audit.
[0121] Step C3, after the transfer is completed, an event can be triggered to notify other applications or users about the occurrence of the target resource block resource transfer. The event can carry relevant information, such as the transferred target resource block identifier and user address, and the event can also include the target resource block's belonging object information, such as current belonging object information and historical belonging object information.
[0122] For example, a computer device can control the smart contract to execute the requestTransfer function and the approveTransfer function. The requestTransfer function specifies the transfer target address as the user's address. The approveTransfer function updates the address of the target resource block to the user address specified in the requestTransfer function. The new address can be saved in a variable, such as transferTo, as the current address of the object.
[0123] In this embodiment, the resource information to be transferred is verified by controlling the smart contract. If the resource information to be transferred is verified, the smart contract is controlled to update the attribution object to the user. Here, the resource information to be transferred is verified by the smart contract to update the attribution object of the target resource block, which can ensure the accuracy and security of the target resource block to be transferred. At the same time, by verifying the user information, the compliance of user identity, authority and other information can be ensured, the occurrence of fraud can be avoided, and the security of resource transfer can be improved. In addition, verifying whether the user has transferred the actual resources corresponding to the actual value of the target resource block to the transfer platform protects the relevant rights and interests of the transfer platform and ensures that the target resource block obtained by the user is regular. Furthermore, the smart contract can limit resource transfer according to specific conditions. Only when all verification conditions are met will the resource transfer be executed, which can reduce the time spent on resource transfer and increase the speed of resource transfer.
[0124] The above embodiment mentioned that the resource transfer operation between the user and the target object can be performed based on the target resource block. The following embodiment describes a possible implementation method of how to perform the resource transfer operation between the user and the target object based on the target resource block.
[0125] In another embodiment, another resource transfer method is provided. Based on the above embodiment, as shown in FIG5 , the above S206 may include the following steps:
[0126] S502, obtaining a second resource transfer request input by the user on the blockchain; the second resource transfer request is used to represent the transfer demand between the user and the target object.
[0127] The second resource transfer request is a request initiated by the user to the target object. When the user finds that the relevant resources displayed by the target object contain the relevant resources the user needs, the user can initiate a second resource transfer request on the blockchain of the transfer platform. The resource transfer request can represent the transfer demand between the user and the target object. The transfer demand is used to represent that the user wants to interact with the target object to transfer the target resource block to the target object.
[0128] In this step, after the user initiates the second resource transfer request on the blockchain of the transfer platform, the computer device can obtain the resource transfer request initiated by the user. The specific process of the computer device obtaining the second resource transfer request input by the user on the blockchain can be referred to the specific process in S202 above, which will not be repeated here.
[0129] S504: Control the smart contract to execute a resource transfer operation between the user and the target object according to the second resource transfer request.
[0130] In this step, when the smart contract is controlled to perform a resource transfer operation according to the resource transfer request, the smart contract used may be a smart contract created by the transfer platform according to the first resource transfer request, wherein the parameters of the function in the smart contract controlled according to the second resource transfer request are inconsistent with the function parameters in the smart contract created according to the first resource transfer request. For example, the sender address in the function parameters in the smart contract created according to the first resource transfer request is the address of the transfer platform, and the receiver address is the user address, while the sender address in the function parameters in the smart contract controlled according to the second resource transfer request is the user address, and the receiver address is the target object address.
[0131] Specifically, after obtaining the second resource transfer request input by the user on the blockchain, the computer device controls the smart contract created by the transfer platform according to the first resource transfer request to perform a resource transfer operation, and executes the resource transfer request between the user and the target object.
[0132] For example, the user initiates a second resource transfer request on the bank's transfer platform, and executes the requestTransfer function and the approveTransfer function through the smart contract to execute the resource transfer request between the user and the target object. The sender address in the smart contract is the current address of the target object, such as the address stored in the transferTo variable. The transfer target address is specified as the target object address in the requestTransfer function, and the approveTransfer function updates the address of the target resource block to the target object address specified in the requestTransfer function. The address of the target object is saved in the variable transferTo as the current address of the target object.
[0133] In this embodiment, the resource transfer operation between the smart contract execution user and the target object is controlled by obtaining the second resource transfer request input by the user on the blockchain; wherein the second resource transfer request is used to characterize the transfer demand between the user and the target object. Here, the target resource transfer operation is controlled by the smart contract execution according to the second resource transfer request input by the user on the blockchain. Since the smart contract runs on the blockchain, the transfer operation is made safer by utilizing its encryption and distributed nature. At the same time, by using the consensus mechanism of the blockchain, the resource transfer operation between the smart contract execution user and the target object can be recognized and verified in the entire blockchain network, which greatly improves the security of resource transfer.
[0134] The above embodiment mentioned that the resource transfer operation between the smart contract execution user and the target object can be controlled according to the second resource transfer request. The following embodiment describes a possible implementation method of how to control the resource transfer operation between the smart contract execution user and the target object based on the second resource transfer request.
[0135] In another embodiment, another resource transfer method is provided. Based on the above embodiment, as shown in FIG6 , the above S504 may include the following steps:
[0136] S602, according to the second resource transfer request, control the smart contract to update the belonging object from the user to the target object, so as to transfer the target resource block to the target object.
[0137] In this step, the smart contract can adopt the smart contract created according to the first resource transfer request mentioned above, and complete it by updating the belonging object parameters in the data structure or state variables in the smart contract, changing the belonging object information of the target resource block from the user address to the target object address, and associating the target object address of the transfer function in the smart contract with the target resource identifier, so that the current belonging object of the target resource block becomes the target object, and the transfer of the target resource block is completed.
[0138] It should be noted that after executing the resource transfer in this step, the belonging object of the target resource block is updated to the target object, that is, the target object can continue to transfer the target resource block, and the user serves as the historical belonging object.
[0139] The specific process of controlling the smart contract to update the belonging object from the user to the target object according to the second resource transfer request can be referred to the specific process of updating the belonging object from the transfer platform to the user in the above S404, which will not be repeated here.
[0140] In this embodiment, the target resource block is transferred to the target object by controlling the smart contract according to the second resource transfer request to update the attribution object from the user to the target object. Here, the attribution object of the target resource block is updated from the user to the target object through the smart contract, and the transfer of the target resource block is executed according to the function constructed and the parameters set in the smart contract. Since the execution of the smart contract is strictly based on the execution conditions, the resource transfer process is rigorous and cannot be tampered with, ensuring the security of the resource transfer process.
[0141] Before the smart contract is controlled according to the second resource transfer request to update the belonging object from the user to the target object, the identity information of the user and the target object needs to be verified. Then, on this basis, how to verify the identity information of the user and the target object, the following embodiment will illustrate this process.
[0142] In another embodiment, another resource transfer method is provided. As shown in FIG. 7 , based on the above embodiment, the process of verifying the identity information of the user and the target object may include the following steps:
[0143] S702: Acquire first identity authentication information of the user and second identity authentication information of the target object.
[0144] The first identity verification information includes user address verification, authority verification, signature verification, target resource ownership verification, KYC (Know Your Customer) verification, etc. The second identity verification includes target object address verification, signature verification, KYC verification, etc.
[0145] In this step, the way to obtain the identity authentication information can be to obtain the addresses of the initiator and receiver of the current target resource transfer, that is, the addresses of the user and the target object, through the msg.sender variable in the smart contract. Alternatively, the identity authentication information of the user and the target object can also be obtained through parameter transfer in the smart contract. Alternatively, it is also possible to interact with other external contracts or external systems to obtain the identity authentication information of the user and the target object through external calls. Of course, there can be other ways of obtaining, which are not specifically limited in this embodiment.
[0146] Specifically, the computer device controls the smart contract to obtain the user's first identity authentication information and the target object's second identity authentication information, thereby providing the required identity authentication information for subsequent smart contract verification of identity information.
[0147] For example, taking the bank's transfer platform as an example, when users and target objects need to realize resource transfer on the transfer platform, they need to register an account on the transfer platform and provide necessary identity authentication information, such as ID card photo, address proof, bank account information, etc.
[0148] S704: Verify both the first identity verification information and the second identity verification information.
[0149] In this step, the first identity authentication information and the second identity authentication information obtained above are verified. The verification process is executed by a computer device controlling a smart contract. The specific process of the verification process can optionally be verified by the following steps D1-D5:
[0150] Step D1, obtain the addresses provided by the user and the target object, and compare them with the user address and the target object address obtained by the msg.sender variable in the smart contract to ensure that the addresses match.
[0151] In step D2, the smart contract verifies whether the user and the target object have the required permissions, which can be achieved by maintaining a permission list in the contract.
[0152] In step D3, the smart contract obtains the signature data provided by the user and the target object, and uses the corresponding public key, message and signature to verify the validity of the signatures provided by the user and the target object to ensure the legitimacy and integrity of the resource transfer.
[0153] In step D4, the smart contract verifies whether the user or target object has the right to operate the target resource block, and confirms whether the target resource identifier of the target resource block matches the address of the current object.
[0154] In step D5, the smart contract obtains additional authentication information provided by the user and the target object, such as identity proof, email verification, etc. The smart contract then compares this information with pre-set rules or third-party KYC services to ensure that the resource transfer meets the requirements.
[0155] It should be noted that in the above-mentioned identity information verification steps, the verification steps D1-D5 have no particular order, and can be D1, D3, D2, D5, D4, or D3, D1, D4, D5, D2, or any other verification order, which is not specifically limited in this embodiment.
[0156] For example, on the blockchain of the bank transfer platform, the smart contract performs identity information verification, which can perform address verification, authority verification, signature verification, resource ownership verification, KYC verification, etc. on the user, and address verification, authority verification, signature verification, KYC verification, etc. on the target object.
[0157] S706: If both the first identity authentication information and the second identity authentication information are verified, return to the step of executing the second resource transfer request to control the smart contract to update the belonging object from the user to the target object.
[0158] In this step, both the first identity authentication information and the second identity authentication information are verified, which means that the first identity authentication information of the user is verified, and the second identity authentication information of the target object also needs to be verified. If any one of the first identity authentication information and the second identity authentication information fails to be verified during the verification process, it means that the identity authentication for the resource transfer fails. Further, when the first identity authentication information and the second identity authentication information fail to be verified, the smart contract cannot execute the subsequent resource transfer. When the first identity authentication information and the second identity authentication information are both verified, the smart contract can execute the resource transfer, that is, according to the second resource transfer request, the smart contract is controlled to update the belonging object from the user to the target object. The specific process of how the smart contract updates the belonging object from the user to the target object can be referred to the update process in the above step S602, which will not be repeated here.
[0159] In this embodiment, by obtaining the user's first identity authentication information and the target object's second identity authentication information, the smart contract verifies the user's first identity authentication information and the target object's second identity authentication information. If both the first identity authentication information and the second identity authentication information are verified, the smart contract is controlled according to the second resource transfer request to update the belonging object from the user to the target object. Here, the smart contract ensures the legitimacy of the identity of the resource transfer participants by verifying the user's first identity authentication information and the target object's second identity authentication information. By verifying the identity authentication information, the smart contract can ensure that only verified users are allowed to participate in the resource transfer process, ensuring the reliability of resource transfer. At the same time, KYC verification in information verification is an important link in verifying user identity and compliance. The smart contract can fully verify the user's identity, reduce risks such as illegal operations and fraud, and improve the security of resource transfer. In addition, after the smart contract verifies according to the first identity authentication information and the second identity authentication information, it decides whether to execute the resource transfer according to the verification result. Only when the identity authentication information of both parties is verified, the resource transfer operation will be executed, thereby ensuring the security and legitimacy of the resource transfer.
[0160] After the target resources are transferred to the target object through the smart contract as mentioned above, the target object can continue to transfer the target resource block. For example, the target object can transfer the target resource block to the transfer platform to obtain the actual resources corresponding to the actual value of the resources of the target resource block. On this basis, how to transfer the target resource block from the target object to the transfer platform, the following embodiment will illustrate this process.
[0161] In another embodiment, another resource transfer method is provided. As shown in FIG8 , based on the above embodiment, the above method may further include the following steps:
[0162] S802, obtaining a third resource transfer request input by the target object on the blockchain; the third resource transfer request includes a target resource block and a resource transfer type.
[0163] Among them, the third resource transfer request is a request initiated by the target object to the transfer platform. When the target object needs to obtain the actual resources corresponding to the actual value of the resources of the target resource block, the target object can initiate the third resource transfer request on the blockchain of the transfer platform. The resource transfer request can represent the transfer demand between the target object and the transfer platform.
[0164] In addition, the third resource transfer request includes a target resource block and a resource transfer type, and the resource transfer type may represent an actual resource type corresponding to the actual value of the resources of the target resource block.
[0165] It should be noted that the actual resource type corresponding to the actual value of the target resource block transferred to the transfer platform by the user when obtaining the target resource block may be the same as or different from the actual resource type corresponding to the actual value of the resource that the target object needs to obtain the target resource block in this step. However, the actual values represented by the two actual resource types are consistent.
[0166] Specifically, after the above-mentioned target object obtains the target resource block, the target object can initiate a third resource transfer request on the blockchain, requesting that the target resource block be transferred to the transfer platform, and the computer device can obtain the third resource transfer request entered by the target object on the blockchain.
[0167] For example, users on the above-mentioned bank transfer platform transfer actual resources corresponding to the actual resource value of the target resource block to the bank transfer platform to obtain the target resource block, and the target object can be an overseas user or overseas enterprise on the bank transfer platform. The target object can obtain the actual resources corresponding to the actual resource value of the target resource block by initiating a resource transfer request.
[0168] S804: Perform conversion processing on the target resource block according to the resource transfer type, and determine the target resource corresponding to the target resource block.
[0169] In this step, the conversion process of the target resource block is performed according to the resource transfer type. Optionally, the following steps E1-E3 may be used for the conversion process:
[0170] Step E1, obtaining the actual resource value and resource transfer type of the target resource block that the user transfers to the transfer platform. The resource transfer type can be recorded as the initial resource transfer type.
[0171] Step E2, obtaining the resource transfer type of the target resource block required by the target object, and the resource transfer type can be recorded as the target resource transfer type.
[0172] Step E3, converting and calculating the above-mentioned initial resource transfer type and target resource transfer type to obtain the actual resource value of the target resource block corresponding to the target resource type, and the actual resource value is recorded as the target resource actual value.
[0173] Furthermore, after obtaining the actual value of the target resource as mentioned above, the actual resource corresponding to the actual value of the target resource block, that is, the target resource corresponding to the target resource block, can be determined, and the target object can obtain the target resource corresponding to the target resource block from the transfer platform.
[0174] Specifically, after the target object initiates the third resource transfer request to the transfer platform, the transfer platform converts the target resource block according to the resource transfer type, and then the target object can obtain the target resource corresponding to the required target resource block from the transfer platform.
[0175] For example, taking the bank's transfer platform as an example, the target object is an overseas user on the transfer platform, and the historical owner of the target resource block is the user. The transfer platform can convert the target resource type and actual resource value corresponding to the historical owner of the target resource block when the user was the target resource type corresponding to the current owner of the target resource block when the target object is the target object, and obtain the actual resource value corresponding to the current owner of the target resource block when the target object is the target object.
[0176] In this embodiment, the target resource corresponding to the target resource block is obtained by obtaining the third resource transfer request input by the target object on the blockchain and converting the target resource block according to the resource transfer type; wherein the third resource transfer request includes the target resource block and the resource transfer type. Here, by converting the resource transfer type of the target resource block, the target object can obtain the target resource corresponding to the target resource block from the transfer platform, and the target object can obtain the target resource corresponding to the target resource block without going through a third-party agency, thereby greatly improving the speed of resource transfer.
[0177] After the target object obtains the target resource corresponding to the target resource block through the transfer platform, the transfer platform will recycle and release the target resource block. On this basis, how to recycle and release the target resource block is described in the following embodiment.
[0178] In another embodiment, another resource transfer method is provided. As shown in FIG9 , based on the above embodiment, the above method may further include the following steps:
[0179] S902, control the smart contract to recycle the target resource block, and control the smart contract to update the belonging object from the target object to the transfer platform.
[0180] In this step, after the above-mentioned target object obtains the actual resources corresponding to the actual value of the resources of the target resource block from the transfer platform, the computer device controls the smart contract to recycle the target resource block, that is, updates the attribution object parameters in the smart contract, changes the attribution object information of the target resource block from the target object address to the transfer platform address, and updates the attribution object of the target resource block in the smart contract from the target object to the transfer platform, and then associates the transfer platform address of the transfer function in the smart contract with the target resource identifier, so that the current attribution object of the target resource block is updated to the transfer platform.
[0181] It should be noted that the operations of updating the ownership object in this step are all performed on the blockchain, and the updated relevant information will also be recorded in the blockchain.
[0182] The specific process of the above-mentioned control smart contract updating the belonging object from the target object to the transfer platform can be referred to the specific process of updating the belonging object from the transfer platform to the user in the above-mentioned S404, which will not be repeated here.
[0183] S904: Release the target resource block.
[0184] In this step, resource release means that after the target resource block completes a resource transfer, the target resource block can be released by the transfer platform. After the transfer platform receives a resource transfer request input by other users, the target resource block can be transferred to other users. Alternatively, the transfer platform can also destroy the target resource block, change the state of the target resource or mark it as invalid to prevent the target resource block from being transferred again. When the target resource block is destroyed, the resource transfer information of the target resource block will be retained in the resource transfer history record on the blockchain, including the initiator, recipient, timestamp and other information of the resource transfer. Even if the target resource block no longer exists, the resource transfer history record of the target resource block can still be audited and viewed on the blockchain.
[0185] Specifically, after the above-mentioned control smart contract updates the owner of the target resource block from the target object to the transfer platform, the transfer platform can release the resources of the target resource block by calling the resource release function in the smart contract.
[0186] For example, when the bank transfer platform destroys the target resource block, the destruction function is called to update the status related to the target resource block in the smart contract. For example, the address of the target resource block with a specific resource identifier may be changed from the current transfer platform address to an invalid or empty address, or the status of the target resource block may be marked as destroyed.
[0187] In this embodiment, the target resource block is recovered by controlling the smart contract, and the smart contract is controlled to update the belonging object from the target object to the transfer platform, and finally the target resource block is released. By controlling the smart contract to update the belonging object to the transfer platform, the recovery of the target resource block is realized. By using the smart contract to release the resources of the target resource block, the occupied space of the target resource block can be saved and the utilization rate of the target resource block can be improved. At the same time, the intervention of traditional third-party institutions can be avoided, and more decentralized resource management and control can be achieved, which can provide greater security for resource transfer.
[0188] The following takes the resource transfer between a user on a bank transfer platform and an overseas user on the bank transfer platform as an example to give a detailed embodiment to illustrate the technical solution of the present application. Based on the above embodiment, the method may include the following steps:
[0189] S1, obtaining a first resource transfer request input by a user on a bank transfer platform blockchain; the first resource transfer request includes the user's resource information to be transferred;
[0190] S2, creating a matching target resource block on the bank transfer platform blockchain according to the information of the resource to be transferred;
[0191] S3, creating a smart contract on the bank transfer platform blockchain according to the target resource block; the smart contract includes the attribute information of the target resource block, the owner of the target resource block and the transfer strategy of the target resource block;
[0192] S4, controlling the smart contract to verify the information of resources to be transferred;
[0193] S5, if the resource information to be transferred is verified, the smart contract is controlled to update the belonging object to the user to transfer the target resource block to the user;
[0194] S6, obtaining a second resource transfer request input by the user on the bank transfer platform blockchain; the second resource transfer request is used to represent the transfer demand between the user and the overseas user;
[0195] S7, obtaining the first identity authentication information of the user and the second identity authentication information of the overseas user;
[0196] S8, verifying both the first identity verification information and the second identity verification information;
[0197] S9, if both the first identity authentication information and the second identity authentication information are verified, then according to the second resource transfer request, the smart contract is controlled to update the ownership object from the user to the overseas, so as to transfer the target resource block to the overseas user;
[0198] S10, obtaining a third resource transfer request input by an overseas user on the bank transfer platform blockchain; the third resource transfer request includes a target resource block and a resource transfer type;
[0199] S11, converting the target resource block according to the resource transfer type, determining the target resource corresponding to the target resource block, and the overseas user obtains the target resource in the bank transfer platform;
[0200] S12, controlling the smart contract to reclaim the target resource block, and controlling the smart contract to update the ownership object from the overseas user to the bank transfer platform;
[0201] S13, the bank transfer platform releases resources of the target resource block.
[0202] In one embodiment, as shown in FIG10 , a resource transfer device is provided, including: a request acquisition module, a resource creation module, and a resource transfer module, wherein:
[0203] A first request acquisition module, used to acquire a first resource transfer request input by a user on the blockchain; the first resource transfer request includes the user's resource information to be transferred;
[0204] The resource creation module is used to create a matching target resource block on the blockchain according to the resource information to be transferred, and transfer the target resource block to the user;
[0205] The resource transfer module is used to perform resource transfer operations between the user and the target object according to the target resource block.
[0206] In another embodiment, another resource transfer device is provided. Based on the above embodiment, the resource creation module includes a smart contract creation unit and a first update unit, wherein:
[0207] A smart contract creation unit, used to create a smart contract according to a target resource block; the smart contract includes attribute information of the target resource block, an object to which the target resource block belongs, and a transfer strategy of the target resource block;
[0208] The first updating unit is used to control the smart contract to update the belonging object to the user, so as to transfer the target resource block to the user.
[0209] Optionally, the first updating unit may include:
[0210] The resource information verification subunit is used to control the smart contract to verify the resource information to be transferred;
[0211] The first updating subunit is used to control the smart contract to update the belonging object to the user if the resource information to be transferred is verified.
[0212] In another embodiment, another resource transfer device is provided. Based on the above embodiment, the resource transfer module includes a second request acquisition unit and a resource transfer unit, wherein:
[0213] A second request acquisition unit, used to acquire a second resource transfer request input by the user on the blockchain; the second resource transfer request is used to represent the transfer demand between the user and the target object;
[0214] The resource transfer unit is used to control the smart contract to execute a resource transfer operation between the user and the target object according to the second resource transfer request.
[0215] Optionally, the resource transfer unit may include:
[0216] The second updating subunit is used to control the smart contract to update the belonging object from the user to the target object according to the second resource transfer request, so as to transfer the target resource block to the target object.
[0217] Optionally, before the second updating subunit in the resource transfer unit, the following may be included:
[0218] An identity information acquisition subunit, used to acquire the first identity authentication information of the user and the second identity authentication information of the target object;
[0219] An identity information verification subunit, used to verify both the first identity verification information and the second identity verification information;
[0220] The verification result judgment subunit is used to return to the step of executing the second resource transfer request control smart contract to update the belonging object from the user to the target object if both the first identity authentication information and the second identity authentication information are verified.
[0221] In another embodiment, another resource transfer device is provided. Based on the above embodiment, the device further includes a third request acquisition module and a resource conversion module, wherein:
[0222] A third request acquisition module, used to acquire a third resource transfer request input by a target object on the blockchain; the third resource transfer request includes a target resource block and a resource transfer type;
[0223] The resource conversion module converts the target resource block according to the resource transfer type and determines the target resource corresponding to the target resource block.
[0224] In another embodiment, another resource transfer device is provided. Based on the above embodiment, the device further includes a third update module and a resource release module, wherein:
[0225] The third update module is used to control the smart contract to reclaim the target resource block and control the smart contract to update the belonging object from the target object to the transfer platform;
[0226] The resource release module is used to release the target resource block.
[0227] For the specific definition of the resource transfer device, please refer to the definition of the resource transfer method above, which will not be repeated here.
[0228] Each module in the resource transfer device 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 operations corresponding to each module.
[0229] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0230] A first resource transfer request input by a user on a blockchain is obtained; the first resource transfer request includes the user's resource information to be transferred; a matching target resource block is created on the blockchain according to the resource information to be transferred, and the target resource block is transferred to the user; and a resource transfer operation between the user and the target object is performed according to the target resource block.
[0231] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0232] A smart contract is created according to the target resource block; the smart contract includes attribute information of the target resource block, the owner of the target resource block, and the transfer strategy of the target resource block; the smart contract is controlled to update the owner to the user so as to transfer the target resource block to the user.
[0233] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0234] The control smart contract verifies the information of the resources to be transferred; if the verification of the information of the resources to be transferred passes, the control smart contract updates the belonging object to the user.
[0235] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0236] Obtain a second resource transfer request input by the user on the blockchain; the second resource transfer request is used to represent the transfer demand between the user and the target object; and control the smart contract to execute the resource transfer operation between the user and the target object according to the second resource transfer request.
[0237] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0238] According to the second resource transfer request, the smart contract is controlled to update the belonging object from the user to the target object, so as to transfer the target resource block to the target object.
[0239] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0240] Obtain the user's first identity authentication information and the target object's second identity authentication information; verify both the first identity authentication information and the second identity authentication information; if both the first identity authentication information and the second identity authentication information are verified, return to the step of executing the second resource transfer request control smart contract to update the belonging object from the user to the target object.
[0241] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0242] Obtain a third resource transfer request input by the target object on the blockchain; the third resource transfer request includes a target resource block and a resource transfer type; convert the target resource block according to the resource transfer type, and determine the target resource corresponding to the target resource block.
[0243] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0244] Control the smart contract to recycle the target resource block, and control the smart contract to update the ownership object from the target object to the transfer platform; release the resources of the target resource block.
[0245] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0246] A first resource transfer request input by a user on a blockchain is obtained; the first resource transfer request includes the user's resource information to be transferred; a matching target resource block is created on the blockchain according to the resource information to be transferred, and the target resource block is transferred to the user; and a resource transfer operation between the user and the target object is performed according to the target resource block.
[0247] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0248] A smart contract is created according to the target resource block; the smart contract includes attribute information of the target resource block, the owner of the target resource block, and the transfer strategy of the target resource block; the smart contract is controlled to update the owner to the user so as to transfer the target resource block to the user.
[0249] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0250] The control smart contract verifies the information of the resources to be transferred; if the verification of the information of the resources to be transferred passes, the control smart contract updates the belonging object to the user.
[0251] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0252] Obtain a second resource transfer request input by the user on the blockchain; the second resource transfer request is used to represent the transfer demand between the user and the target object; and control the smart contract to execute the resource transfer operation between the user and the target object according to the second resource transfer request.
[0253] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0254] According to the second resource transfer request, the smart contract is controlled to update the belonging object from the user to the target object, so as to transfer the target resource block to the target object.
[0255] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0256] Obtain the user's first identity authentication information and the target object's second identity authentication information; verify both the first identity authentication information and the second identity authentication information; if both the first identity authentication information and the second identity authentication information are verified, return to the step of executing the second resource transfer request control smart contract to update the belonging object from the user to the target object.
[0257] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0258] Obtain a third resource transfer request input by the target object on the blockchain; the third resource transfer request includes a target resource block and a resource transfer type; convert the target resource block according to the resource transfer type, and determine the target resource corresponding to the target resource block.
[0259] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0260] Control the smart contract to recycle the target resource block, and control the smart contract to update the ownership object from the target object to the transfer platform; release the resources of the target resource block.
[0261] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0262] A first resource transfer request input by a user on a blockchain is obtained; the first resource transfer request includes the user's resource information to be transferred; a matching target resource block is created on the blockchain according to the resource information to be transferred, and the target resource block is transferred to the user; and a resource transfer operation between the user and the target object is performed according to the target resource block.
[0263] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0264] A smart contract is created according to the target resource block; the smart contract includes attribute information of the target resource block, the owner of the target resource block, and the transfer strategy of the target resource block; the smart contract is controlled to update the owner to the user so as to transfer the target resource block to the user.
[0265] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0266] The control smart contract verifies the information of the resources to be transferred; if the verification of the information of the resources to be transferred passes, the control smart contract updates the belonging object to the user.
[0267] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0268] Obtain a second resource transfer request input by the user on the blockchain; the second resource transfer request is used to represent the transfer demand between the user and the target object; and control the smart contract to execute the resource transfer operation between the user and the target object according to the second resource transfer request.
[0269] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0270] According to the second resource transfer request, the smart contract is controlled to update the belonging object from the user to the target object, so as to transfer the target resource block to the target object.
[0271] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0272] Obtain the user's first identity authentication information and the target object's second identity authentication information; verify both the first identity authentication information and the second identity authentication information; if both the first identity authentication information and the second identity authentication information are verified, return to the step of executing the second resource transfer request control smart contract to update the belonging object from the user to the target object.
[0273] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0274] Obtain a third resource transfer request input by the target object on the blockchain; the third resource transfer request includes a target resource block and a resource transfer type; convert the target resource block according to the resource transfer type, and determine the target resource corresponding to the target resource block.
[0275] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0276] Control the smart contract to recycle the target resource block, and control the smart contract to update the ownership object from the target object to the transfer platform; release the resources of the target resource block.
[0277] It should be noted that the user information (including but not limited to user account 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.
[0278] 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.
[0279] 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.
[0280] 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 transfer method, It is characterized in that The method comprises: Obtaining a first resource transfer request input by a user on a blockchain; the first resource transfer request includes resource information to be transferred by the user; Creating a matching target resource block on the blockchain according to the to-be-transferred resource information, and transferring the target resource block to the user; A resource transfer operation between the user and the target object is performed according to the target resource block.
2. The method according to claim 1, It is characterized in that The transferring the target resource block to the user comprises: Creating a smart contract according to the target resource block; the smart contract includes attribute information of the target resource block, an object to which the target resource block belongs, and a transfer strategy of the target resource block; The smart contract is controlled to update the belonging object to the user, so as to transfer the target resource block to the user.
3. The method according to claim 2, It is characterized in that The controlling the smart contract to update the belonging object to the user includes: Controlling the smart contract to verify the information of the resources to be transferred; If the to-be-transferred resource information is verified, the smart contract is controlled to update the belonging object to the user.
4. The method according to any one of claims 2 to 3, It is characterized in that The performing of the resource transfer operation between the user and the target object according to the target resource block includes: Acquire a second resource transfer request input by the user on the blockchain; the second resource transfer request is used to represent a transfer demand between the user and the target object; The smart contract is controlled according to the second resource transfer request to execute a resource transfer operation between the user and the target object.
5. The method according to claim 4, It is characterized in that The controlling the smart contract to execute the resource transfer operation between the user and the target object according to the second resource transfer request includes: According to the second resource transfer request, the smart contract is controlled to update the belonging object from the user to the target object, so as to transfer the target resource block to the target object.
6. The method according to claim 5, It is characterized in that Before controlling the smart contract to update the belonging object from the user to the target object according to the second resource transfer request, the method further includes: Acquire the first identity authentication information of the user and the second identity authentication information of the target object; Verifying both the first identity verification information and the second identity verification information; If both the first identity authentication information and the second identity authentication information are verified, the process returns to the step of executing the second resource transfer request to control the smart contract to update the belonging object from the user to the target object.
7. The method according to claim 5, It is characterized in that The method further comprises: Obtaining a third resource transfer request input by the target object on the blockchain; the third resource transfer request includes the target resource block and the resource transfer type; The target resource block is converted according to the resource transfer type to determine a target resource corresponding to the target resource block.
8. The method according to any one of claims 2 to 3, It is characterized in that The method further comprises: Control the smart contract to reclaim the target resource block, and control the smart contract to update the belonging object from the target object to the transfer platform; The target resource block is released.
9. A resource transfer device, It is characterized in that The device comprises: A request acquisition module, acquiring a first resource transfer request input by a user on a blockchain; the first resource transfer request includes the user's resource information to be transferred; A resource creation module, which creates a matching target resource block on the blockchain according to the resource information to be transferred, and transfers the target resource block to the user; A resource transfer module performs a resource transfer operation between the user and the target object according to the target resource block.
10. 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 8 are implemented.
11. 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 8 are implemented.
12. 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 8 are implemented.
