CN111932233B - Resource transfer method, device and equipment - Google Patents

Resource transfer method, device and equipment Download PDF

Info

Publication number
CN111932233B
CN111932233B CN202010813404.8A CN202010813404A CN111932233B CN 111932233 B CN111932233 B CN 111932233B CN 202010813404 A CN202010813404 A CN 202010813404A CN 111932233 B CN111932233 B CN 111932233B
Authority
CN
China
Prior art keywords
resource transfer
current
current resource
node
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010813404.8A
Other languages
Chinese (zh)
Other versions
CN111932233A (en
Inventor
尤海洋
宋加乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010813404.8A priority Critical patent/CN111932233B/en
Publication of CN111932233A publication Critical patent/CN111932233A/en
Application granted granted Critical
Publication of CN111932233B publication Critical patent/CN111932233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a resource transfer method, a device and equipment, and relates to the technical field of block chains, wherein the method comprises the following steps: acquiring a resource transfer request; the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence; the resource transfer request is sent to a target database; wherein the target database is realized by adopting a block chain technology; and sequentially executing the plurality of resource transfer instructions according to the preset sequence according to intelligent contracts deployed in the target database based on the blockchain technology. In the embodiment of the application, the flow of multi-link resource penetrating transfer can be completely and safely realized, and the final and safe transfer of resources to the extreme ends of a plurality of resource transfer instructions can be ensured, and in the process, the information cannot be tampered and the resources cannot be stolen by utilizing a blockchain technology and an intelligent contract.

Description

Resource transfer method, device and equipment
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, an apparatus, and a device for transferring resources.
Background
In the prior art, in an online fund paying scene, engineering funds need to be paid to a general package from a main party, then to a subcontracting and labor service company, and finally to an employee account. In the fund paying process, a layer of intermediate links are required to be subjected, and the fund retention in any link is likely to have the risk of being stolen. Therefore, by adopting the technical scheme in the prior art, while the penetrating payment of funds (from the most upstream payer to the most downstream payee) is difficult to achieve, the funds are required to stay and account in the middle link of the funds payment process and the funds are required to be prevented from being stolen in any link of the process, so that the penetrating payment of funds cannot be safely realized.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a resource transfer method, a resource transfer device and resource transfer equipment, which are used for solving the problem that the penetrating payment of funds cannot be safely realized in the prior art.
The embodiment of the application provides a resource transfer method, which comprises the following steps: acquiring a resource transfer request; the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence; the resource transfer request is sent to a target database; wherein the target database is realized by adopting a block chain technology; and sequentially executing the plurality of resource transfer instructions according to the preset sequence according to intelligent contracts deployed in the target database based on the blockchain technology.
The embodiment of the application also provides a resource transfer device, which comprises: the acquisition module is used for acquiring the resource transfer request; the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence; the sending module is used for sending the resource transfer request to a target database; wherein the target database is realized by adopting a block chain technology; and the processing module is used for sequentially executing the plurality of resource transfer instructions according to the preset sequence according to the intelligent contracts deployed in the target database based on the blockchain technology.
The embodiment of the application also provides resource transfer equipment, which comprises a processor and a memory for storing instructions executable by the processor, wherein the processor realizes the steps of the resource transfer method when executing the instructions.
Embodiments of the present application also provide a computer readable storage medium having stored thereon computer instructions which, when executed, implement the steps of the resource transfer method.
The embodiment of the application provides a resource transfer method, which can be used for obtaining a resource transfer request, wherein the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence. Further, the resource transfer request may be sent to a target database implemented by using a blockchain technology, and a plurality of resource transfer instructions may be sequentially executed according to a preset sequence according to an intelligent contract pre-deployed in the target database based on the blockchain technology. Therefore, the multi-link resource penetrating transfer flow can be completely and safely realized, the final and safe transfer of the resources to the extreme ends of a plurality of resource transfer instructions can be ensured, and in the process, the information cannot be tampered and the resources cannot be stolen by utilizing the blockchain technology and the intelligent contract.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate and together with the description serve to explain the application. In the drawings:
FIG. 1 is a schematic diagram of a resource transfer system provided in accordance with an embodiment of the present application;
FIG. 2 is a schematic diagram of steps of a resource transfer method according to an embodiment of the present application;
FIG. 3 is a flow chart of a resource transfer method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a resource transfer device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a resource transferring device according to an embodiment of the present application.
Detailed Description
The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are presented merely to enable those skilled in the art to better understand and practice the application and are not intended to limit the scope of the application in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Those skilled in the art will appreciate that embodiments of the application may be implemented as a system, apparatus device, method, or computer program product. Accordingly, the present disclosure may be embodied in the following forms, namely: complete hardware, complete software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
While the flow described below includes a number of operations occurring in a particular order, it should be apparent that these processes may include more or fewer operations, which may be performed sequentially or in parallel (e.g., using a parallel processor or a multi-threaded environment).
In one scenario example of the present application, a resource transfer system is provided, as shown in fig. 1, which may include: the terminal equipment 101 and the server 102, the target user can initiate a resource transfer request through the terminal equipment 101, wherein the resource transfer request can comprise a plurality of resource transfer instructions arranged according to a preset sequence. The server 102 may send the resource transfer request to a target database implemented by using the blockchain technology based on the resource transfer request operation submitted by the user, and the target database may have an intelligent contract deployed based on the blockchain technology, and the server 102 may sequentially execute a plurality of resource transfer instructions according to a preset sequence according to the intelligent contract deployed based on the blockchain technology in the target database.
The terminal device 101 may be a terminal device or software used by a user operation. Specifically, the terminal device may be a terminal device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart watch or other wearable devices, or may be a robot device or the like. Of course, the terminal device 101 may be software that can be executed in the terminal device. For example: system applications, payment applications, browsers, weChat applets, and other application software.
The server 102 may be a single server or a server cluster, and of course, the functions of the server may be implemented by using a cloud computing technology. The server 102 may be connected to a plurality of terminal devices, or may be a server having a strong information set library, and may sequentially execute a plurality of resource transfer instructions according to a preset sequence based on a resource transfer request initiated by a user by using a blockchain technology and an intelligent contract, thereby completing resource transfer. In some scenario examples, the server 102 may also feed back the execution result of the resource transfer to the above-described terminal device 101.
Referring to fig. 2, the present embodiment may provide a resource transfer method. The resource transfer method can be used for sequentially executing a plurality of resource transfer instructions in the resource transfer request according to a preset sequence by using a blockchain technology and an intelligent contract. The above-described resource transfer method may include the following steps.
S201: acquiring a resource transfer request; the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence.
In this embodiment, a resource transfer request may be acquired, where the resource transfer request may include a plurality of resource transfer instructions arranged in a preset order. Wherein, the resources may include: virtual currency, account funds, fixed assets of a property, gold, etc., resource transfers may represent transfers of resources between users, accounts, or third party platforms. In one embodiment, the resource transfer may include: transfer, loan, repayment, purchase of financial products, etc.
In this embodiment, the resource transfer request may be initiated by a user, and since the resource transfer may involve multiple parties, the resource transfer request may include a plurality of resource transfer instructions arranged in a preset order.
In this embodiment, the preset order may be determined according to a hierarchical order of resource transfers in the resource transfer request. For example, resource transfer request a requires transfer of resource 1 from user 1 to user 4, where transferring resource 1 from user 1 to user 4 may include: transfer resource 1 from user 1 to user 2, transfer resource 1 from user 2 to user 3, and transfer resource 1 from user 3 to user 4. Therefore, the preset order in the resource transfer request a may be: a resource transfer instruction 1 to transfer resource 1 from user 1 to user 2, a resource transfer instruction 2 to transfer resource 1 from user 2 to user 3, and a resource transfer instruction 3 to transfer resource 1 from user 3 to user 4.
In this embodiment, the above-mentioned resource transfer instruction may be used to instruct to perform resource transfer, where the resource transfer instruction may include all elements related to resource transfer, and each resource transfer instruction may include at least one resource transfer initiator and at least one resource transfer receiver, and resource transfer elements of the resource transfer initiator and the resource transfer receiver.
In the present embodiment, the resource transfer element may be an element necessary for transferring resources, for example: the method comprises the steps of a resource transfer initiator account number, a resource transfer initiator name, a resource transfer node number of the resource transfer initiator, a resource transfer node name of the resource transfer initiator, a resource transfer receiver account number, a resource transfer receiver name, a resource transfer node number of the resource transfer receiver, and a resource transfer node name of the resource transfer receiver. It will be understood, of course, that other information may also be included in the resource transfer elements, for example, the amount, quantity, etc. of the resource transfer, and the present application is not limited thereto, specifically, it may be determined according to actual situations.
In this embodiment, the manner of obtaining the resource transfer request may include: and receiving a resource transfer request generated by triggering a user in the system, or alternatively, the resource transfer request can be a resource transfer request to be processed, which is inquired from a database according to preset conditions.
In this embodiment, the manner of acquiring the historical behavior data of the target user may include: the method is obtained by pulling from a preset database or is obtained by mining from text description by using a rule extraction method in combination with a corpus. The preset database can be a database for storing historical data and data submitted and generated by a user in real time in a bank or other financial institutions. Of course, the manner of obtaining the historical behavior data of the target user is not limited to the above examples, and other modifications may be made by those skilled in the art, given the benefit of the present disclosure, so long as the functions and effects achieved are the same or similar to those of the present disclosure, and all such modifications are intended to be included within the scope of the present disclosure.
S202: transmitting the resource transfer request to a target database; the target database is realized by adopting a block chain technology.
In this embodiment, the resource transfer request may be sent to a target database, where the target database may be implemented using a blockchain technique. The Blockchain is a serial transaction record (also called a block) which is connected in series and protects contents by means of cryptography, and is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like, and is an essentially decentralised database.
In this embodiment, "decentralization" is a phenomenon or structure that can only occur in systems with numerous users or nodes, each of which can connect to and affect other nodes. Colloquially, it is the center that everyone is, and everyone can connect to and affect other nodes. "decentralization" is one of the typical features of blockchains, which uses distributed storage and computation, the rights and obligations of the entire network node are the same, and the data in the system are essentially maintained together by the entire network node, so that the blockchain no longer depends on the central processing node, and distributed storage, recording and updating of the data are realized. Each blockchain follows a unified rule, the rule is based on a cryptographic algorithm instead of a credit certificate, and the data updating process requires user approval, so that the blockchain is laid down without an intermediary and a trust authority endorsing.
In this embodiment, the target database may be pre-deployed with a smart contract based on a blockchain technology, where the smart contract is implemented by a blockchain technology, and may be a set of digitally defined commitments, including agreements on which contract participants may execute the commitments. The smart contracts are digitized, stored in a blockchain, and enforced using encryption code.
In this embodiment, the blockchain accounts in the blockchain network may include external accounts, contract accounts, and the like. The external accounts are typically owned by the user (individual or organization), while the contract accounts correspond to intelligent contracts deployed in the blockchain. In one embodiment, an intelligent contract can be deployed in advance in the blockchain according to actual needs, and a contract account corresponding to the intelligent contract can be used for recording and maintaining the resource transfer condition of each blockchain account, namely, the resource transfer condition of each blockchain account is recorded and maintained through the intelligent contract deployed in advance based on the blockchain technology. In some embodiments, individual resource transfer cases may also be recorded and maintained in respective blockchain accounts, i.e., individual users' resource transfer cases are recorded and maintained in respective external accounts for individual blockchain users. And in particular, may be determined according to practical situations, which is not limited by the present application.
S203: and sequentially executing a plurality of resource transfer instructions according to a preset sequence according to intelligent contracts deployed in a target database based on a blockchain technology.
In this embodiment, a plurality of resource transfer instructions may be sequentially executed according to the preset sequence according to the intelligent contracts that are pre-deployed in the target database based on the blockchain technology, so that a multi-link automatic resource penetrating transfer process may be completely and safely implemented, and it may be ensured that resources may be safely transferred to the extreme ends of the plurality of resource transfer instructions, and in this process, it may be ensured that information may not be tampered and resources may not be stolen.
In this embodiment, in order to ensure secure resource transfer, the above-mentioned intelligent contract may be configured to enable a next resource transfer instruction of a current resource transfer instruction only if it is determined that the current resource transfer instruction in the resource transfer request is successfully executed, so as to implement sequentially executing a plurality of resource transfer instructions according to the above-mentioned preset order, so as to ensure that resources can be transferred to an end node safely.
From the above description, it can be seen that the following technical effects are achieved in the embodiments of the present application: the resource transfer request can be obtained, wherein the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence. Further, the resource transfer request may be sent to a target database implemented by using a blockchain technology, and a plurality of resource transfer instructions may be sequentially executed according to a preset sequence according to an intelligent contract deployed in the target database in advance based on the blockchain technology. Therefore, the multi-link resource penetrating transfer flow can be completely and safely realized, the final and safe transfer of the resources to the extreme ends of a plurality of resource transfer instructions can be ensured, and in the process, the information cannot be tampered and the resources cannot be stolen by utilizing the blockchain technology and the intelligent contract.
In one embodiment, according to the intelligent contract deployed in the target database based on the blockchain technology, executing the plurality of resource transfer instructions sequentially according to the preset sequence may include: according to the smart contract, in the case where it is determined that the current resource transfer instruction is the last-stage resource transfer instruction in the preset order, the current resource transfer node of the current resource transfer instruction may be determined according to the current resource transfer instruction. Further, the intelligent contract may forward the current resource transfer instruction to the current resource transfer node, where the current resource transfer node may execute the current resource transfer instruction, and may end a resource transfer flow corresponding to the resource transfer request if it is determined that the current resource transfer node successfully executes the current resource transfer instruction.
In this embodiment, if the current resource transfer instruction is the last-stage resource transfer instruction in the preset order, it is indicated that the resources in the resource transfer request have been transferred to the last link, and after the last-stage resource transfer instruction is completed, all the resource transfer flows requested by the resource transfer request may be ended.
In this embodiment, the current resource transfer node of the current resource transfer instruction may at least include: a resource transfer initiator node and a resource transfer receiver node. Correspondingly, the intelligent contract forwarding the current resource transfer instruction to the current resource transfer node may include forwarding the current resource transfer instruction to a resource transfer initiator node of the current resource transfer instruction, so that the resource transfer initiator node of the current resource transfer instruction may transfer resources to a resource transfer receiver node according to the current resource transfer instruction.
In this embodiment, the resource transfer node may be a node in an intelligent contract, and may be a bank, application software, or the like. When the resource transfer node is a bank, each bank can have an independent intelligent contract node in the process of communicating with the bank, and after the resource transfer is successfully completed, the node of the bank can be actively informed to update the resource transfer state.
In one embodiment, the resource transfer instruction may include: the method comprises the steps of a resource transfer initiator account number, a resource transfer initiator name, a resource transfer node number of the resource transfer initiator, a resource transfer node name of the resource transfer initiator, a resource transfer receiver account number, a resource transfer receiver name, a resource transfer node number of the resource transfer receiver, and a resource transfer node name of the resource transfer receiver. Of course, the information contained in the resource transfer instruction is not limited to the above examples, and other modifications may be made by those skilled in the art in light of the technical spirit of the present application, and it is intended to cover the present application as long as the functions and effects implemented are the same or similar to those of the present application.
In one embodiment, to ensure the reliability of the resource transfer process, before ending the resource transfer flow corresponding to the resource transfer request, the method may further include: and under the condition that the current resource transfer node successfully executes the current resource transfer instruction, the resource transfer state of the current resource transfer node can be updated. Further, the information that the resource transfer state of the current resource transfer node is updated successfully can be sent to the intelligent contract under the condition that the resource transfer state of the current resource transfer node is determined to be updated successfully.
In this embodiment, the current resource transfer node according to the current resource transfer instruction may include at least: the resource transfer initiator node and the resource transfer receiver node can update the resource transfer states of the resource transfer initiator node and the resource transfer receiver node at the same time under the condition that the current resource transfer node successfully executes the current resource transfer instruction, so that the transfer condition of the resource can be effectively recorded in the blockchain, and the safe and complete transfer of the resource can be ensured.
In this embodiment, the information that the resource transfer state of the current resource transfer node is updated successfully may be notified to the intelligent contract when it is determined that the resource transfer state of the current resource transfer node is updated successfully, so that the intelligent contract may trigger execution of a next resource transfer instruction or trigger an operation of ending a resource transfer flow corresponding to the resource transfer request when the information that the resource transfer state of the current resource transfer node is updated successfully is received.
In this embodiment, the information that the resource transfer state update is successful may include: information about the current resource transfer instruction, information that the resource transfer initiator node has initiated the resource transfer, information that the resource transfer receiver node has received the resource transferred by the resource transfer initiator node, and the like. Of course, the above information of successful update of the resource transfer status is not limited to the above examples, and other modifications are possible by those skilled in the art in light of the technical spirit of the present application, but all the functions and effects implemented by the above information are included in the protection scope of the present application as long as they are the same or similar to the present application.
In one embodiment, according to the intelligent contract deployed in the target database based on the blockchain technology, executing the plurality of resource transfer instructions sequentially according to the preset sequence may include: according to the intelligent contract, in the case that the current resource transfer instruction is determined not to be the last-stage resource transfer instruction in the preset sequence, the current resource transfer node of the current resource transfer instruction may be determined according to the current resource transfer instruction, and the intelligent contract may forward the current resource transfer instruction to the current resource transfer node.
Further, the current resource transfer node may execute the current resource transfer instruction, and in the event that it is determined that the current resource transfer node successfully executes the current resource transfer instruction, the intelligent contract may determine a next resource transfer instruction to the current resource transfer instruction. And taking the next resource transfer instruction of the current resource transfer instruction as the current resource transfer instruction, and executing the current resource transfer instruction according to the intelligent contract until the current resource transfer instruction is the last resource transfer instruction in the preset sequence.
In this embodiment, in the case where it is determined that the current resource transfer instruction is not the last resource transfer instruction in the preset order, it is explained that the resource transfer request has not yet been completely executed, and it is necessary to execute the next resource transfer instruction in the preset order in progress. Therefore, under the condition that the current resource transfer node successfully executes the current resource transfer instruction, the next resource transfer instruction of the current resource transfer instruction can be further determined, and the next resource transfer instruction of the current resource transfer instruction is used as the current resource transfer instruction to execute the current resource transfer instruction until the current resource transfer instruction is the last resource transfer instruction in the preset sequence.
In this embodiment, the current resource transfer node of the current resource transfer instruction may at least include: a resource transfer initiator node and a resource transfer receiver node. Correspondingly, the current resource transfer node determined according to the current resource transfer instruction may include: the intelligent contract may forward the current resource transfer instruction to the current resource transfer node, and may include forwarding the current resource transfer instruction to the resource transfer initiator node of the current resource transfer instruction such that the resource transfer initiator node of the current resource transfer instruction may transfer resources to the resource transfer receiver node in accordance with the current resource transfer instruction.
In some embodiments, the smart contract may also forward the current resource transfer instruction to the resource transfer receiver node of the current resource transfer instruction to inform the resource transfer receiver node to record the resource transfer status in time. And in particular, may be determined according to practical situations, which is not limited by the present application.
In one embodiment, to ensure the security of the resource transfer procedure, before the smart contract determines the next resource transfer instruction of the current resource transfer instruction, the method may further include: under the condition that the current resource transfer node successfully executes the current resource transfer instruction, the target resource corresponding to the current resource transfer instruction can be locked, and the resource transfer state of the current resource transfer node can be updated. Therefore, the resources can be effectively prevented from being stolen in the transfer process, and the security of resource transfer can be further enhanced.
In this embodiment, in the case where it is determined that the current resource transfer instruction is not the last-stage resource transfer instruction in the preset order, it is explained that the resource needs to be further transferred, and therefore, before the next resource transfer instruction of the current resource transfer instruction is executed, the target resource corresponding to the current resource transfer instruction may be locked to prevent being stolen.
In this embodiment, the manner of locking the target resource corresponding to the current resource transfer instruction may include: the target resource is marked as reserved resource, so that the target resource cannot be transferred through means such as an internet bank, a counter and the like, and only after the notification of the intelligent contract of the blockchain is received, the target resource can be locked and contacted, and the target resource can be continuously circulated downwards. Of course, the manner of locking the target resource corresponding to the current resource transfer instruction is not limited to the above examples, and other modifications may be made by those skilled in the art in light of the technical spirit of the present application, and all the functions and effects implemented by the present application are included in the protection scope of the present application as long as they are the same or similar to the present application.
In this embodiment, the resource transfer state of the current resource transfer node may be updated under the condition that it is determined that the current resource transfer node successfully executes the current resource transfer instruction, so that the transfer condition of the resource may be effectively recorded in the blockchain, so as to ensure that the resource may be safely and completely transferred. The resource transfer state may be that the target resource has been successfully transferred at the current resource transfer node.
In this embodiment, if an abnormality occurs when the current resource transfer node executes the current resource transfer instruction, or if the execution fails, the execution of the resource transfer may be directly terminated and information about the abnormality of the execution may be fed back to the initiator of the resource transfer request, or the execution of the resource transfer instruction that was executed before the execution may be retried. And in particular, may be determined according to practical situations, which is not limited by the present application.
In this embodiment, the information about the execution abnormality may include: execution progress of resource transfer, abnormality prompt information, cause of occurrence of abnormality, and the like. And in particular, may be determined according to practical situations, which is not limited by the present application. It will be appreciated that in the event of an exception or failure in execution of the current resource transfer instruction by the current resource transfer node, the next resource transfer instruction of the current resource transfer instruction cannot be triggered by the intelligent contract.
In one embodiment, after updating the resource transfer state of the smart contract, it may further include: under the condition that the successful update of the resource transfer state of the current resource transfer node is determined, the information of the successful update of the resource transfer state of the current resource transfer node is sent to the intelligent contract, and the intelligent contract can release the locking of the target resource after receiving the information of the successful update of the resource transfer state of the current resource transfer node. Further, the next resource transfer instruction of the current resource transfer instruction may be continuously executed based on the target resource according to the intelligent contract, thereby determining that the target resource is successfully transferred to the next node.
In one scenario example, as shown in fig. 3, the flow of the resource transfer method may be that the user side may apply for fund transfer according to the actual business flow, and after approval is successful, a set of resource transfer instructions with sequential dependency relationship may be generated, and in particular, the sequence between the plurality of resource transfer instructions may be determined according to the hierarchical relationship of the actual data. Wherein each resource transfer instruction may include payer and payee payment elements associated with the payer and payee for the funds transfer. The payment elements in the resource transfer instructions may include: payer account number, name, bank note number, bank note name and payee account number, name, bank note number, bank note name.
In this scenario example, a set of resource transfer instructions with sequential dependencies in fig. 3 may be sent to the blockchain and retained by a pre-configured intelligent contract in the blockchain, and the adoption of the decentralised intelligent contract may effectively guarantee traceability, non-falsification, and security of the payment order data on the blockchain.
In this scenario example, as shown in FIG. 3, the smart contract may sequentially identify bank features (banks) in the resource transfer instructions from the set of sequentially dependent resource transfer instructions and inform the banks to which the current resource transfer instruction pertains. After receiving the fund payment notice sent by the intelligent contract, the bank can call the transfer account interface to carry out fund payment. If the intelligent contract judges that the payee corresponding to the current resource transfer instruction is not the final node of the through type payment, the funds need to be continuously circulated downwards, the funds need to be locked and marked as reserved amount, so that the funds cannot be transferred through means such as an internet bank or a counter, and the funds can be continuously circulated downwards only under the condition of receiving the intelligent contract notification. If the intelligent contract judges that the collection corresponding to the current resource transfer instruction is the final node of the through payment, each bank involved in the current resource transfer instruction can be directly notified, and after receiving the fund payment notification sent by the intelligent contract, the bank can call a transfer account interface to carry out fund payment without locking the fund. This process loops through until a set of sequential dependent resource transfer instructions of FIG. 3 are executed to the end-most payee.
In this scenario example, as shown in fig. 3, the blockchain has its own independent smart contract node in the process of communicating with banks, and when the fund payment is completed, the smart contract node of the bank can be actively notified to update the state of the fund payment. And under the condition that the state update is successful, sending the information of the successful state update to the intelligent contract to trigger the intelligent contract to further inform the bank node corresponding to the next resource transfer instruction of the current resource transfer instruction to carry out fund payment. In the event that the status update fails, the attempt to update the status may continue until the update is successful.
In this scenario example, the process of the blockchain communicating with the bank may be implemented based on the mutual authentication of the digital certificate in addition to the security mechanism of the blockchain itself, so that the process of transferring the resource is safer and more reliable. The digital certificate based mutual authentication may include: when the bank transmits the state of fund payment to the blockchain, the bank needs to simultaneously transmit information such as SSL (Secure Socket Layer ) protocol version number, encryption algorithm type and the like. After the block link receives SSL information sent by the bank, the public key certificate of the block link end is returned to the bank. The bank uses the information returned by the blockchain to verify legitimacy (whether the public key can unwrap the signature in the certificate, whether the bank side certificate matches the bank side domain name, etc.). The blockchain requires the bank to send its own certificate to the blockchain at the same time; the blockchain verifies the certificate of the blockchain and then obtains the public key of the bank certificate; the bank sends the self-supported symmetrical encryption scheme to the blockchain for the blockchain to select; the block chain encrypts the encryption scheme by using the public key obtained before, and returns the encryption scheme to the bank; after receiving the ciphertext of the encryption mode, the bank decrypts the ciphertext by using the private key of the bank to obtain a specific encryption mode. Then, a random code of the encryption mode is generated and used as a key in the encryption process, and the random code is encrypted by using a public key acquired from the blockchain certificate before and then sent to the blockchain. After receiving the information sent by the bank, the blockchain decrypts the information by using the private key of the blockchain to obtain a symmetric encryption key, and in the subsequent session, the blockchain and the bank can use the key to carry out symmetric encryption to ensure the information security in the communication process.
In this scenario example, the security mechanism of the blockchain itself may include: the block chain is decentralised, a plurality of nodes are arranged in the block chain, each node has high autonomous characteristics, the nodes can be freely connected with each other to form a new connection unit, and any node possibly becomes a staged center but does not have a mandatory center control function; a consensus mechanism, wherein the blockchain node takes minority compliance as a rule; the non-repairable block chain has only adding operation and has no modifying and deleting operation, so that the non-tamper property of the data is ensured; addressing, all entities are addressed, so that external attack is prevented, and each client can only access block chain link points and data belonging to the client; an elliptic curve digital signature algorithm is used, so that the method is safer and more reliable.
Based on the same inventive concept, the embodiment of the application also provides a resource transfer device, such as the following embodiment. Since the principle of the resource transfer device for solving the problem is similar to that of the resource transfer method, the implementation of the resource transfer device can be referred to the implementation of the resource transfer method, and the repetition is not repeated. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated. FIG. 4 is a block diagram of a resource transfer device according to an embodiment of the present application, as shown in FIG. 4, may include: the configuration of the acquisition module 401, the transmission module 402, and the processing module 403 will be described below.
An obtaining module 401, configured to obtain a resource transfer request; the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence;
a sending module 402, configured to send a resource transfer request to a target database; the target database is realized by adopting a block chain technology;
the processing module 403 may be configured to sequentially execute the plurality of resource transfer instructions according to a preset order according to an intelligent contract deployed in the target database based on a blockchain technology.
The embodiment of the application also provides an electronic device, which specifically can refer to a schematic diagram of an electronic device composition structure based on the resource transfer method provided by the embodiment of the application shown in fig. 5, and the electronic device specifically can include an input device 51, a processor 52 and a memory 53. Wherein the input device 51 may be specifically used for inputting a resource transfer request. Processor 52 may be specifically configured to obtain a resource transfer request; the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence; transmitting the resource transfer request to a target database; the target database is realized by adopting a block chain technology; and sequentially executing a plurality of resource transfer instructions according to a preset sequence according to intelligent contracts deployed in a target database based on a blockchain technology. The memory 53 may be used to store parameters such as a plurality of resource transfer instructions.
In this embodiment, the input device may specifically be one of the main means for exchanging information between the user and the computer system. The input device may include a keyboard, mouse, camera, scanner, light pen, handwriting input board, voice input apparatus, etc.; the input device is used to input raw data and a program for processing these numbers into the computer. The input device may also obtain data transmitted from other modules, units, and devices. The processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor, and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable logic controller, and an embedded microcontroller, among others. The memory may in particular be a memory device for storing information in modern information technology. The memory may comprise a plurality of levels, and in a digital system, may be memory as long as binary data can be stored; in an integrated circuit, a circuit with a memory function without a physical form is also called a memory, such as a RAM, a FIFO, etc.; in the system, the storage device in physical form is also called a memory, such as a memory bank, a TF card, and the like.
In this embodiment, the specific functions and effects of the electronic device may be explained in comparison with other embodiments, which are not described herein.
The embodiment of the application also provides a computer storage medium based on the resource transfer method, which stores computer program instructions, and when the computer program instructions are executed, the method can be realized: acquiring a resource transfer request; the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence; transmitting the resource transfer request to a target database; the target database is realized by adopting a block chain technology; and sequentially executing a plurality of resource transfer instructions according to a preset sequence according to intelligent contracts deployed in a target database based on a blockchain technology.
In the present embodiment, the storage medium includes, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read-Only Memory (ROM), a Cache (Cache), a Hard Disk (HDD), or a Memory Card (Memory Card). The memory may be used to store computer program instructions. The network communication unit may be an interface for performing network connection communication, which is set in accordance with a standard prescribed by a communication protocol.
In this embodiment, the functions and effects of the program instructions stored in the computer storage medium may be explained in comparison with other embodiments, and are not described herein.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, embodiments of the application are not limited to any specific combination of hardware and software.
Although the present application provides method operational steps as described in the embodiments or flowcharts above, more or fewer operational steps may be included in the method based on routine or non-inventive labor. In the steps where there is logically no necessary causal relationship, the execution order of the steps is not limited to the execution order provided by the embodiment of the present application. When implemented in an actual device or end product, the methods of (a) may be performed sequentially or in parallel (e.g., in a parallel processor or a multithreaded environment) as shown in the embodiments or figures.
It is to be understood that the above description is intended to be illustrative, and not restrictive. Many embodiments and many applications other than the examples provided will be apparent to those of skill in the art upon reading the above description. The scope of the application should, therefore, be determined not with reference to the above description, but instead should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, and various modifications and variations can be made to the embodiments of the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. A method of resource transfer, comprising:
acquiring a resource transfer request; the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence;
the resource transfer request is sent to a target database; wherein the target database is realized by adopting a block chain technology;
according to intelligent contracts deployed in the target database based on a blockchain technology, sequentially executing the plurality of resource transfer instructions according to the preset sequence; the method specifically comprises the following steps: according to the intelligent contract, under the condition that the current resource transfer instruction is determined to be the last-stage resource transfer instruction in the preset sequence, determining a current resource transfer node of the current resource transfer instruction according to the current resource transfer instruction; forwarding the current resource transfer instruction to the current resource transfer node; the current resource transfer node executes the current resource transfer instruction; and ending the resource transfer flow corresponding to the resource transfer request under the condition that the current resource transfer node successfully executes the current resource transfer instruction.
2. The method of claim 1, further comprising, prior to ending the resource transfer flow corresponding to the resource transfer request:
updating the resource transfer state of the current resource transfer node under the condition that the current resource transfer node is determined to successfully execute the current resource transfer instruction;
and under the condition that the successful updating of the resource transfer state of the current resource transfer node is determined, sending the information of the successful updating of the resource transfer state of the current resource transfer node to the intelligent contract.
3. The method of claim 1, wherein sequentially executing the plurality of resource transfer instructions in the predetermined order according to a smart contract deployed in the target database based on blockchain technology comprises:
according to the intelligent contract, under the condition that the current resource transfer instruction is not the last-stage resource transfer instruction in the preset sequence, determining a current resource transfer node of the current resource transfer instruction according to the current resource transfer instruction;
forwarding the current resource transfer instruction to the current resource transfer node;
the current resource transfer node executes the current resource transfer instruction;
And under the condition that the current resource transfer node successfully executes the current resource transfer instruction, the intelligent contract determines a next resource transfer instruction of the current resource transfer instruction, takes the next resource transfer instruction of the current resource transfer instruction as the current resource transfer instruction, and executes the current resource transfer instruction according to the intelligent contract until the current resource transfer instruction is the last resource transfer instruction in the preset sequence.
4. The method of claim 3, further comprising, prior to the smart contract determining a next resource transfer instruction to the current resource transfer instruction:
under the condition that the current resource transfer node successfully executes the current resource transfer instruction, locking a target resource corresponding to the current resource transfer instruction;
and updating the resource transfer state of the current resource transfer node.
5. The method of claim 4, further comprising, after updating the resource transfer state of the smart contract:
under the condition that the resource transfer state of the current resource transfer node is successfully updated, sending information of the successful update of the resource transfer state of the current resource transfer node to the intelligent contract;
Unlocking the target resource;
and executing a next resource transfer instruction of the current resource transfer instruction based on the target resource according to the intelligent contract.
6. The method of claim 1, wherein the resource transfer instruction comprises: the method comprises the steps of a resource transfer initiator account number, a resource transfer initiator name, a resource transfer node number of the resource transfer initiator, a resource transfer node name of the resource transfer initiator, a resource transfer receiver account number, a resource transfer receiver name, a resource transfer node number of the resource transfer receiver, and a resource transfer node name of the resource transfer receiver.
7. A resource transfer device, comprising:
the acquisition module is used for acquiring the resource transfer request; the resource transfer request comprises a plurality of resource transfer instructions arranged according to a preset sequence;
the sending module is used for sending the resource transfer request to a target database; wherein the target database is realized by adopting a block chain technology;
the processing module is used for sequentially executing the plurality of resource transfer instructions according to the preset sequence according to intelligent contracts deployed in the target database based on the blockchain technology; the processing module is specifically configured to determine, according to the intelligent contract, a current resource transfer node of the current resource transfer instruction according to the current resource transfer instruction when determining that the current resource transfer instruction is a last-stage resource transfer instruction in the preset sequence; forwarding the current resource transfer instruction to the current resource transfer node; the current resource transfer node executes the current resource transfer instruction; and ending the resource transfer flow corresponding to the resource transfer request under the condition that the current resource transfer node successfully executes the current resource transfer instruction.
8. A resource transfer device comprising a processor and a memory for storing processor executable instructions, the processor implementing the steps of the method of any one of claims 1 to 6 when the instructions are executed.
9. A computer readable storage medium having stored thereon computer instructions which when executed implement the steps of the method of any of claims 1 to 6.
CN202010813404.8A 2020-08-13 2020-08-13 Resource transfer method, device and equipment Active CN111932233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010813404.8A CN111932233B (en) 2020-08-13 2020-08-13 Resource transfer method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010813404.8A CN111932233B (en) 2020-08-13 2020-08-13 Resource transfer method, device and equipment

Publications (2)

Publication Number Publication Date
CN111932233A CN111932233A (en) 2020-11-13
CN111932233B true CN111932233B (en) 2023-08-15

Family

ID=73311726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010813404.8A Active CN111932233B (en) 2020-08-13 2020-08-13 Resource transfer method, device and equipment

Country Status (1)

Country Link
CN (1) CN111932233B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112598510B (en) * 2021-01-06 2024-02-06 中国工商银行股份有限公司 Resource data processing method and device
CN112700569A (en) * 2021-03-23 2021-04-23 江苏苏宁银行股份有限公司 File safe based on block chain and access system, taking and storing method thereof
CN113240422B (en) * 2021-07-09 2021-12-03 天聚地合(苏州)数据股份有限公司 Financial product transfer method based on block chain and related device
CN113656499B (en) * 2021-08-16 2024-04-02 工银科技有限公司 Value transfer method and device based on block chain
CN116975158B (en) * 2023-09-25 2024-01-26 腾讯科技(深圳)有限公司 Request processing method, apparatus, computer device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009441A (en) * 2017-11-23 2018-05-08 阿里巴巴集团控股有限公司 Resource transfers and the method and apparatus of fund transfer
CN110175842A (en) * 2019-03-27 2019-08-27 阿里巴巴集团控股有限公司 Transfer account method, system, calculating equipment and storage medium based on block chain

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009441A (en) * 2017-11-23 2018-05-08 阿里巴巴集团控股有限公司 Resource transfers and the method and apparatus of fund transfer
CN110175842A (en) * 2019-03-27 2019-08-27 阿里巴巴集团控股有限公司 Transfer account method, system, calculating equipment and storage medium based on block chain

Also Published As

Publication number Publication date
CN111932233A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN111932233B (en) Resource transfer method, device and equipment
EP3688929B1 (en) System and method for providing privacy and security protection in blockchain-based private transactions
CN109154885B (en) Business process execution on a blockchain platform
KR102050129B1 (en) Block chain supporting multiple one-way functions used for verification of blocks
KR101727525B1 (en) Block chain based distributed storage method and device thereof
CN110363665B (en) Credit right data processing method, device, equipment and medium
US20190095879A1 (en) Blockchain payment channels with trusted execution environments
CN111095326B (en) Methods, systems, and apparatus for performing multiple transactions in a blockchain network
JP7021747B2 (en) Payment system, payment method, user device, payment program
CN110892434B (en) Transferring digital ticket based on blockchain network
CN110348853B (en) Block chain off-line transaction method and system based on identification authentication
JP7011203B2 (en) Payment system, payment method, user device, payment program
CN111563743B (en) Block chain transfer processing method, device, equipment and medium
CN108776896A (en) Digital cash wallet business management method based on multi-signature and system
TW202101323A (en) Escrowing system for cross-blockchain third-party settlement and method thereof
WO2019142884A1 (en) Block verification device, block verification method and program
CN110910000A (en) Block chain asset management method and device
US20240062203A1 (en) Reducing gas fees for smart contracts and other blockchain transactions
CN112927073A (en) Cross-link data interchange method, system, device and electronic equipment
Patel et al. Blockchain–future of decentralized systems
US20190266580A1 (en) Electronic transfer tracking using virtual wallets
CN112950183B (en) Cross-chain data interchange method, system, device and electronic equipment
CN111899007B (en) Digital currency double off-line payment method and payment system
CN114066451A (en) Method and system for managing fund transaction and electronic equipment
TWI693573B (en) Digital currency issuing system with regulatory and total controllable and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210122

Address after: 100140, 55, Fuxing Avenue, Xicheng District, Beijing

Applicant after: INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Applicant after: ICBC Technology Co.,Ltd.

Address before: 071700 unit 111, 1st floor, building C, enterprise office area, xiong'an Civic Service Center, Rongcheng County, xiong'an District, Baoding pilot Free Trade Zone, Hebei Province

Applicant before: ICBC Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant