CN111915296A - Virtual resource transfer method and system - Google Patents

Virtual resource transfer method and system Download PDF

Info

Publication number
CN111915296A
CN111915296A CN202010624741.2A CN202010624741A CN111915296A CN 111915296 A CN111915296 A CN 111915296A CN 202010624741 A CN202010624741 A CN 202010624741A CN 111915296 A CN111915296 A CN 111915296A
Authority
CN
China
Prior art keywords
virtual resource
hosting
resource transfer
transfer information
escrow
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.)
Granted
Application number
CN202010624741.2A
Other languages
Chinese (zh)
Other versions
CN111915296B (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.)
Lianlian Intelligent Technology Co ltd
Original Assignee
Lianlian Intelligent 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 Lianlian Intelligent Technology Co ltd filed Critical Lianlian Intelligent Technology Co ltd
Priority to CN202010624741.2A priority Critical patent/CN111915296B/en
Publication of CN111915296A publication Critical patent/CN111915296A/en
Application granted granted Critical
Publication of CN111915296B publication Critical patent/CN111915296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Abstract

The disclosure relates to a virtual resource transfer method and system. According to the virtual resource transfer method, a third party and a block chain network are introduced, the cross-row transfer of the virtual resources is realized based on an intelligent contract and a hosting mode, the virtual resource settlement is not required to be carried out by a special clearing mechanism, the system structure can be simplified, meanwhile, the final day rolling difference and final day account checking links can be avoided, and account adjustment is not required to be carried out by red punching and blue complement transactions, so that the consistency among different banks can be guaranteed in the virtual resource transfer process. The security of virtual resource transfer can also be improved.

Description

Virtual resource transfer method and system
Technical Field
The present disclosure relates to the field of block chaining technologies, and in particular, to a virtual resource transfer method and system.
Background
Currently, virtual resource transfer between different accounts, such as inter-bank transfer, is generally implemented by a clearing institution or a proprietary system. Particularly, in cross-border payment, because different countries and regions have various differences and foreign exchange remittance and other problems, bank transfer or remittance of different countries needs to be processed for a longer time, and the problems of low efficiency of cross bank transfer and inconsistency among accounts are caused. Moreover, the existing transfer across lines cannot ensure the safety.
Disclosure of Invention
In view of this, the present disclosure provides a virtual resource transfer method and system.
According to an aspect of the present disclosure, there is provided a virtual resource transfer method, including:
the first business server sends a first hosting and creating instruction to the blockchain network;
the block chain network creates first hosting virtual resource transfer information according to the first hosting creation instruction, and records the first hosting virtual resource transfer information on a block chain;
if the second node server in the block chain network monitors the record of the first hosting virtual resource transfer information, the first hosting virtual resource transfer information is sent to a second business server;
the second service server generates second hosting preparation information according to the first hosting virtual resource transfer information; and sending a second escrow creation instruction to the blockchain network;
the block chain network creates second hosting virtual resource transfer information according to the second hosting creation instruction, and records the second hosting virtual resource transfer information on a block chain;
if the second node server monitors the record of the second hosting virtual resource transfer information, the second hosting virtual resource transfer information is sent to a corresponding second terminal through a second service server;
if receiving a confirmation message of a second terminal, a second service server transfers the virtual resource from a third party to the second terminal according to a key in the confirmation message and the second hosting preparation information, and sends the key and a target hosting confirmation method to the block chain network;
the block chain network creates hosting confirmation virtual resource transfer information according to the secret key and the target hosting confirmation method, and records the hosting confirmation virtual resource transfer information on a block chain;
if the first node server in the block chain network monitors the record of the escrow confirmation virtual resource transfer information, acquiring the key and sending the key to the first service server;
and the first service server transfers the virtual resource from the first terminal to a third party according to the key and the first escrow preparation information.
According to another aspect of the present disclosure, there is provided a virtual resource transfer system including:
the first business server is used for sending a first hosting and creating instruction to the blockchain network;
the block chain network is used for creating first hosting virtual resource transfer information according to the first hosting creation instruction and recording the first hosting virtual resource transfer information on a block chain;
the second node server in the block chain network is used for sending the first hosted virtual resource transfer information to a second service server if the record of the first hosted virtual resource transfer information is monitored;
the second service server is used for generating second hosting preparation information according to the first hosting virtual resource transfer information; and sending a second escrow creation instruction to the blockchain network;
the block chain network is used for creating second hosting virtual resource transfer information according to the second hosting creation instruction and recording the second hosting virtual resource transfer information on a block chain;
the second node server is used for sending the second hosting virtual resource transfer information to a corresponding second terminal through a second service server if the record of the second hosting virtual resource transfer information is monitored;
the second service server is used for transferring the virtual resource from the third party to the second terminal according to the key in the confirmation message and the second escrow preparation information if the confirmation message of the second terminal is received, and sending the key and the target escrow confirmation method to the block chain network;
the block chain network is used for creating hosting confirmation virtual resource transfer information according to the secret key and the target hosting confirmation method and recording the hosting confirmation virtual resource transfer information on a block chain;
the first node server in the block chain network is used for acquiring the key and sending the key to the first service server if the record of the escrow confirmation virtual resource transfer information is monitored;
and the first service server is used for transferring the virtual resource from the first terminal to a third party according to the key and the first escrow preparation information.
By introducing a third party and a block chain network and realizing the cross-row transfer of virtual resources based on an intelligent contract and a hosting mode, a special clearing mechanism is not needed for virtual resource settlement, the system structure can be simplified, and meanwhile, the account adjustment can be carried out by avoiding the steps of rolling off the day and the end and checking the account, and the redrush and blue compensation transactions, so that the consistency among different banks can be realized in the virtual resource transfer process. The security of virtual resource transfer can also be improved.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a schematic diagram of a virtual resource transfer system according to an embodiment of the present disclosure.
Fig. 2 shows a flowchart of a virtual resource transfer method according to an embodiment of the present disclosure.
Fig. 3 illustrates a flowchart of a method for host rejection in a virtual resource transfer method according to an embodiment of the present disclosure.
Fig. 4 is a flowchart of a method for a blockchain network to create first hosted virtual resource transfer information according to the first hosted creation instruction and record the first hosted virtual resource transfer information on a blockchain according to an embodiment of the disclosure.
Fig. 5 is a flowchart illustrating a method for generating, by a first node server, first hosted virtual resource transfer information according to the hosting creation method and the first hosting preparation information according to an embodiment of the present disclosure.
Fig. 6 is a flowchart illustrating a method for generating second hosting preparation information by the second business server according to the first hosting virtual resource transfer information according to an embodiment of the present disclosure.
Fig. 7 shows a flowchart of a virtual resource transfer method according to an embodiment of the present disclosure.
Fig. 8 shows a flowchart of a virtual resource transfer method according to an embodiment of the present disclosure.
FIG. 9 is a block diagram illustrating a server 900 used in a virtual resource transfer system in accordance with an exemplary embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Fig. 1 shows a schematic diagram of a virtual resource transfer system according to an embodiment of the present disclosure. As shown in fig. 1, the system includes: the system comprises a first service server, a second service server and a block chain network. The block chain network comprises a first node server, a second node server and a third party node server. The first node server corresponds to the first service server, that is, the first service server can communicate with the first node server in the block chain network; the second node server corresponds to the second service server, i.e., the second service server may communicate with the second node server in the blockchain network. In this way, the first service server and the second service server can realize cross-row virtual resource transfer through the blockchain network.
In this embodiment, the first service server may refer to a service server of a first bank, and the second service server may refer to a service server of a second bank. The first bank may arrange a first node server corresponding to the first service server in the blockchain network, and the second bank may arrange a second node server corresponding to the second service server in the blockchain network. The third party may be an intermediary that provides mobility support for the virtual resource transfer, may open accounts in the first bank and the second bank, respectively, and may arrange a third party node server in the blockchain network.
In practical applications, the first bank, the second bank and the third party may establish (determine) an intelligent contract through negotiation, and the intelligent contract may be an intelligent contract for virtual resource transfer. The intelligent contract can be diffused to each node in the blockchain network through a P2P (Peer-to-Peer) network to be stored in the blockchain network, namely, the intelligent contract of the virtual resource transfer can be issued to the blockchain network. And the intelligent contract can periodically check the state of the automatic machine and automatically execute after the consensus is achieved. The intelligent contract can comprise a hosting creation method, a hosting confirmation method and a hosting rejection method, so that a hash time lock intelligent contract is formed for being called in the whole virtual resource transfer period. Therefore, when virtual resource transfer needs to be performed across rows, the virtual resource transfer system can realize transfer of virtual resources in a hosting mode according to the intelligent contract.
Specifically, the virtual resource transfer system may include:
the first business server is used for sending a first hosting and creating instruction to the blockchain network;
the block chain network is used for creating first hosting virtual resource transfer information according to the first hosting creation instruction and recording the first hosting virtual resource transfer information on a block chain;
the second node server in the block chain network is used for sending the first hosted virtual resource transfer information to a second service server if the record of the first hosted virtual resource transfer information is monitored;
the second service server is used for generating second hosting preparation information according to the first hosting virtual resource transfer information; and sending a second escrow creation instruction to the blockchain network;
the block chain network is used for creating second hosting virtual resource transfer information according to the second hosting creation instruction and recording the second hosting virtual resource transfer information on a block chain;
the second node server is used for sending the second hosting virtual resource transfer information to a corresponding second terminal through a second service server if the record of the second hosting virtual resource transfer information is monitored;
the second service server is used for transferring the virtual resource from the third party to the second terminal according to the key in the confirmation message and the second escrow preparation information if the confirmation message of the second terminal is received, and sending the key and the target escrow confirmation method to the block chain network;
the block chain network is used for creating hosting confirmation virtual resource transfer information according to the secret key and the target hosting confirmation method and recording the hosting confirmation virtual resource transfer information on a block chain;
the first node server in the block chain network is used for acquiring the key and sending the key to the first service server if the record of the escrow confirmation virtual resource transfer information is monitored;
and the first service server is used for transferring the virtual resource from the first terminal to a third party according to the key and the first escrow preparation information.
By introducing a third party and a block chain network into the virtual resource transfer system and realizing the cross-row transfer of the virtual resources based on an intelligent contract and a hosting mode, a special clearing mechanism is not needed for virtual resource settlement, the system structure can be simplified, and meanwhile, the account adjustment can be carried out without the steps of rolling off and checking account in the day and the night and the trade of blue compensation, so that the consistency among different banks can be realized in the virtual resource transfer process. The security of virtual resource transfer can also be improved.
For the specific implementation details of the virtual resource transfer system, the following virtual resource transfer method can be referred to. Fig. 2 shows a flowchart of a virtual resource transfer method according to an embodiment of the present disclosure. As shown in fig. 2, the virtual resource transfer method may include:
s101, the first service server sends a first hosting creation instruction to the blockchain network.
In this embodiment of the present description, if a virtual resource transfer request of a user, for example, a cross-bank transfer request, is received by a first service server, a first escrow creation instruction may be generated according to content of the cross-bank transfer.
In one example, the first escrow creation instruction may include first escrow preparation information and a target escrow creation method. The first hosting preparation information may include information of the virtual resource transfer, such as both-side information of the virtual resource transfer, the transferred virtual resource, and the like. The target hosted creation method may be used to instruct the blockchain network (specifically the first node server in the blockchain network) to invoke the hosted creation method in the corresponding intelligent contract. The target hosting creation method may include an identification of the target intelligent contract and an identification of the hosting creation method in the target intelligent contract. The target intelligent contract herein may refer to an intelligent contract for virtual resource transfer.
And S102, the block chain network creates first hosting virtual resource transfer information according to the first hosting creation instruction, and records the first hosting virtual resource transfer information on a block chain.
In this embodiment of the present specification, the blockchain network may call a corresponding hosting creation method in the intelligent contract for virtual resource transfer according to the first hosting creation instruction, so that the first hosting virtual resource transfer information may be created according to the hosting creation method and the first hosting preparation information. And the first hosted virtual resource transfer information may be recorded on the blockchain based on a consensus mechanism of the blockchain network. Wherein the first hosted virtual resource transfer information may include information of a virtual resource transfer.
And S103, if the second node server in the block chain network monitors the record of the first hosted virtual resource transfer information, sending the first hosted virtual resource transfer information to a second service server.
In this embodiment, the second node server in the blockchain network may monitor virtual resource transfer in the blockchain network, that is, may monitor transactions in the blockchain network. For example, virtual resource transfer in the Event monitoring block chain network is performed, and the virtual resource transfer may be filtered or screened, and if a record of the first hosted virtual resource transfer information is filtered or screened, the first hosted virtual resource transfer information may be sent to the second service server.
In one example, by detecting information of virtual resource transfer in the first hosted virtual resource transfer information, if the virtual resource transfer address in the information of virtual resource transfer matches with the second business server, it can be considered that the record of the first hosted virtual resource transfer information is intercepted.
S104, the second service server generates second hosting preparation information according to the first hosting virtual resource transfer information; and sending a second escrow creation instruction to the blockchain network.
In this embodiment of the present specification, the second service server may detect whether both virtual resource transfer parties in the first hosted virtual resource transfer information are accounts in the second service server, and if not, the second service server may generate second hosted preparation information according to the first hosted virtual resource transfer information. That is, the second service server detects that the first hosted virtual resource transfer information is a virtual resource transfer across service servers, and may generate virtual resource transfer information inside the second service server, that is, second hosted preparation information, according to the first hosted virtual resource transfer information.
Optionally, the second service server may send a second hosting creation instruction to the blockchain network after generating the second hosting preparation information.
And S105, the block chain network creates second hosting virtual resource transfer information according to the second hosting creation instruction, and records the second hosting virtual resource transfer information on the block chain. This step can be referred to as step S102, and is not described herein.
And S106, if the second node server monitors the record of the second hosting virtual resource transfer information, the second hosting virtual resource transfer information is sent to a corresponding second terminal through a second service server.
In this embodiment of the present description, if the second node server monitors the record of the second hosted virtual resource transfer information, the second hosted virtual resource transfer information may be sent to the second service server, so that the second service server may send the second hosted virtual resource transfer information to the corresponding second terminal.
In an example, the second service server may detect that the virtual resource transfer party and the virtual resource transfer party in the second hosted virtual resource transfer information are both accounts in the second service server, may obtain a second terminal corresponding to the virtual resource transfer party, and send the second hosted virtual resource transfer information to the corresponding second terminal.
And S107, if receiving the confirmation message of the second terminal, the second service server transfers the virtual resource from the third party to the second terminal according to the key in the confirmation message and the second hosting preparation information, and sends the key and the target hosting confirmation method to the block chain network.
In this embodiment of the present specification, the second terminal may verify the second hosted virtual resource transfer information, for example, may verify whether a virtual resource in the second hosted virtual resource transfer information is correct, whether a key is matched with a hosted locking condition in the second hosted virtual resource transfer information (i.e., whether the key is matched with a hash value), and if the virtual resource is correct, and the key is matched with the hosted locking condition in the second hosted virtual resource transfer information, the second terminal may send a confirmation message to the second service server.
If the second service server receives the confirmation message of the second terminal, the second service server can verify whether the key in the confirmation message is matched with the hash value in the second escrow preparation information, if so, the virtual resource can be transferred from the third party to the second terminal according to the second escrow preparation information, and the key and the target escrow confirmation method are sent to the blockchain network. Where the third party may include an identification of the third party. The second terminal may include an identification of the second terminal. Specifically, the virtual resource may be transferred from an account corresponding to the third party in the second service server to an account corresponding to the second terminal in the second service server.
And S108, the block chain network creates hosting confirmation virtual resource transfer information according to the key and the target hosting confirmation method, and records the hosting confirmation virtual resource transfer information on a block chain.
In this embodiment of the present description, the blockchain network may unlock the second escrow virtual resource transfer information by using the key, call an escrow confirmation method in the corresponding intelligent contract according to the target escrow confirmation method, create escrow confirmation virtual resource transfer information, and record the escrow confirmation virtual resource transfer information on the blockchain. Wherein the hosting confirmation virtual resource transfer information may include a key.
And S109, if the first node server in the block chain network monitors the record of the escrow confirmation virtual resource transfer information, acquiring the key, and sending the key to the first service server.
In this embodiment of the present description, the first node server may monitor virtual resource transfer in the blockchain network, for example, monitor virtual resource transfer in the blockchain network through an Event, and if a record of hosting confirmation virtual resource transfer information is monitored, may obtain a key and send the key to the first service server.
Optionally, the first node server may further carry a virtual resource transfer identifier when sending the key, where the virtual resource transfer identifier may refer to that the first hosting preparation information, the first hosting virtual resource transfer information, the second hosting preparation information, the second hosting virtual resource transfer information, and the hosting confirmation virtual resource transfer information have the same virtual resource transfer identifier. In addition, the following hosting rejection virtual resource transfer information may also have the same virtual resource transfer identifier, which is used to identify the related information of the same virtual resource transfer.
And S110, the first service server transfers the virtual resource from the first terminal to a third party according to the key and the first escrow preparation information.
In this embodiment of the present description, if the key is consistent with the hash value in the first escrow preparation information, the virtual resource in the first escrow preparation information may be transferred from the first terminal to a third party, so as to implement transfer of the virtual resource from the first terminal to the second terminal. The third party here may include an identification of the third party. The first terminal may include an identification of the first terminal. Specifically, the virtual resource may be transferred from an account corresponding to the first terminal in the first service server to an account corresponding to the third party in the first service server.
Optionally, a virtual resource transfer success message may be sent to the first terminal.
By introducing a third party and a block chain network, the cross-row transfer of virtual resources is realized based on an intelligent contract and a hosting mode, a special clearing mechanism is not needed for virtual resource settlement, the system structure can be simplified, and meanwhile, the steps of final day rolling difference and final day account checking can be avoided, and account adjustment is not needed for red punching and blue complement transactions, so that the consistency among different banks can be realized in the virtual resource transfer process. The security of virtual resource transfer can also be improved.
Fig. 3 illustrates a flowchart of a method for host rejection in a virtual resource transfer method according to an embodiment of the present disclosure. As shown in fig. 3, the virtual resource transfer method may further include:
and S301, if the second service server receives a rejection message of the second terminal, the second service server backs the virtual resource to a third party according to the key in the rejection message and the second escrow preparation information, and sends the key and the target escrow rejection method to the block chain network.
In this embodiment of the present specification, the second terminal may verify the second hosted virtual resource transfer information, for example, may verify whether a virtual resource in the second hosted virtual resource transfer information is correct, and whether a key is matched with a hosted locking condition in the second hosted virtual resource transfer information, and if the virtual resource is incorrect or the key is not matched with the hosted locking condition in the second hosted virtual resource transfer information, the second terminal may send a rejection message to the second service server.
If the second service server receives the rejection message of the second terminal, the second service server may verify whether the key in the confirmation message matches the hash value in the second escrow preparation information, and if so, the second service server may rollback the virtual resource to a third party according to the second escrow preparation information, and send the key and the target escrow rejection method to the blockchain network.
S302, the block chain network creates escrow rejection virtual resource transfer information according to the key and the target escrow rejection method, and records the escrow rejection virtual resource transfer information on a block chain.
In this embodiment of the present specification, the blockchain network may verify whether the key matches the escrow lock condition in the second escrow virtual resource transfer information, and if yes, may call an escrow rejection method in a corresponding intelligent contract according to the target escrow rejection method, create escrow rejection virtual resource transfer information, and may record the escrow rejection virtual resource transfer information on the blockchain. Wherein the escrow rejection virtual resource transfer information may include a key.
And S303, if the first node server monitors the record of the escrow rejection virtual resource transfer information, acquiring the key, and sending the key to the first service server.
In this embodiment of the present description, the first node server may monitor virtual resource transfer in the blockchain network, for example, monitor virtual resource transfer in the blockchain network through an Event, and if a record of information of trusting rejection of virtual resource transfer is monitored, may obtain a key and send the key to the first service server.
Optionally, the first node server may further carry a virtual resource transfer identifier when sending the key.
And S304, the first service server backs the virtual resource to the first terminal according to the key and the first escrow preparation information.
In this embodiment of the present description, if the key is consistent with the hash value in the first escrow preparation information, the virtual resource in the first escrow preparation information may be rolled back to the first terminal. Optionally, the first service server may determine, according to the carried virtual resource transfer identifier, first escrow preparation information that needs to be processed, and then may rollback the virtual resource in the first escrow preparation information to the first terminal when the key is consistent with the hash value in the first escrow preparation information.
Optionally, the first service server may send a virtual resource transfer failure message to the first terminal.
Fig. 4 is a flowchart of a method for a blockchain network to create first hosted virtual resource transfer information according to the first hosted creation instruction and record the first hosted virtual resource transfer information on a blockchain according to an embodiment of the disclosure. As shown in fig. 4, in one possible implementation, the first escrow creation instruction may include first escrow preparation information and a target escrow creation method. The step S102 may include:
s401, the first node server in the block chain network calls a hosting creation method in a corresponding intelligent contract according to the target hosting creation method.
In one example, the target hosted creation method may include an identification of the intelligent contract and/or an identification of the hosted creation method, and the first node server may invoke the hosted creation method in the respective intelligent contract based on the identification of the intelligent contract and the identification of the hosted creation method. The corresponding intelligent contract herein may refer to an intelligent contract for virtual resource transfer.
S402, the first node server generates first hosting virtual resource transfer information according to the hosting creation method and the first hosting preparation information, and broadcasts the first hosting virtual resource transfer information.
In one example, the first hosting preparation information may include a hash value, a first virtual resource transfer party, a first virtual resource transfer counterpart, a first virtual resource, a first hosting duration, and a virtual resource transfer address. As shown in fig. 5, this step S402 may include:
s501, taking the hash value as a hosting locking condition of the first hosting virtual resource transfer information;
and S502, generating first hosting virtual resource transfer information according to the hosting locking condition, the first virtual resource transfer party, the first virtual resource transfer opposite party, the first virtual resource, the first hosting duration and the virtual resource transfer address.
The first virtual resource transfer party may refer to a first terminal in the first service server, the first virtual resource transfer counterpart may refer to a third party in the first service server, and the first virtual resource may refer to a transfer amount; the virtual resource transfer address may refer to an account of the second terminal at the second service server. The first escrow period may be preset, such as 60 minutes. The first hosting duration may be used to control the effectiveness of virtual resource transfer from the first terminal to the second terminal in the first service server. Optionally, the first service server may time when the first hosting preparation information is generated, and the time reaches the first hosting duration, and does not receive the hosting confirmation virtual resource transfer information or the hosting rejection virtual resource transfer information, may end the virtual resource transfer, and rollback the virtual resource to the first terminal.
S403, the blockchain network records the first hosted virtual resource transfer information on a blockchain based on a consensus mechanism.
It should be noted that, for a specific implementation manner of step S105, reference may be made to the implementation manner of S102, which is not described herein again.
Fig. 6 is a flowchart illustrating a method for generating second hosting preparation information by the second business server according to the first hosting virtual resource transfer information according to an embodiment of the present disclosure. As shown in fig. 6, in a possible implementation manner, the step S104 may include:
s601, using the hosting locking condition as a hash value;
s602, the first virtual resource transfer party is used as a second virtual resource transfer party. That is, the third party in the first service server can be used as the second virtual resource transfer party.
S603, determining a second virtual resource transfer counterpart according to the virtual resource transfer address.
In this embodiment of the present specification, the second terminal may be determined according to the virtual resource transfer address, so that the second terminal may be determined as a second virtual resource transfer counterpart. Thereby generating a virtual resource transfer from the third party to the second terminal at the second service server.
S604, generating a second hosting duration according to the first hosting duration. The present disclosure does not limit this as long as the second escrow period is less than the first escrow period.
In this embodiment of the present specification, the second hosting duration may be used to control validity of virtual resource transfer from the third party to the second terminal in the second service server. Optionally, the second service server may time when the second hosting preparation information is generated, and when the time reaches the second hosting time and no confirmation message or rejection message sent by the second terminal is received, the virtual resource transfer may be ended, and the virtual resource is returned to the third party.
S605, generating a second virtual resource according to the first virtual resource.
In embodiments of the present description, such as in a cross-country payment, the first hosted virtual resource transfer information may also include a virtual resource conversion rate, such as an exchange rate and/or currency. The step S605 may include: and generating a second virtual resource according to the virtual resource conversion rate and the first virtual resource. And the exchange rate conversion of virtual resource transfer in the cross-border scene is realized.
And S606, generating second hosting preparation information according to the hash value, the second virtual resource transfer party, the second virtual resource transfer counterpart, the second virtual resource and the second hosting duration.
That is, the second hosting preparation information may include the hash value, the second virtual resource transfer party, the second virtual resource transfer counterpart, the second virtual resource, and the second hosting duration.
Fig. 7 shows a flowchart of a virtual resource transfer method according to an embodiment of the present disclosure. As shown in fig. 7, in a possible implementation manner, the virtual resource transfer method may further include:
s701, the first terminal acquires a secret key of the second terminal;
s702, generating a hash value by using the key.
In this embodiment of the present specification, the first terminal may obtain the key of the second terminal in a wired or wireless manner, for example, obtain the key through a short message, a telephone or other communication manners. The first terminal may generate a hash value with the key for use in a escrow lock condition for the virtual resource transfer.
And S703, generating the virtual resource transfer request message according to the hash value and the virtual resource transfer information.
In this embodiment, the virtual resource transfer information may include the first virtual resource and a virtual resource transfer address. The virtual resource transfer address may refer to a recipient of the virtual resource transfer, and may include an identifier of the second terminal and an account of the second terminal in the second service server.
The first terminal may generate the virtual resource transfer request message according to the hash value and the virtual resource transfer information.
S704, sending the virtual resource transfer request message to the first service server.
In this embodiment, the first terminal may send a virtual resource transfer request message to the first service server.
Fig. 8 shows a flowchart of a virtual resource transfer method according to an embodiment of the present disclosure. As shown in fig. 8, in a possible implementation manner, the virtual resource transfer method may further include:
s801, the first service server generates the first hosting preparation information according to the received virtual resource transfer request message.
In this embodiment, the first service server may obtain a sender of the virtual resource transfer request message, and may use the sender as the first virtual resource transfer party.
In this embodiment of the present specification, the hash value, the first virtual resource, and the virtual resource transfer address in the virtual resource transfer request message may be obtained. According to the virtual resource transfer address, transfer across service servers, namely cross-bank transfer, can be determined, and the third party is used as the first virtual resource transfer counterpart. And may generate a first escrow time period, which may be predetermined, and this disclosure does not limit this.
The first service server may generate first hosting preparation information according to the hash value, the first virtual resource transfer party, the first virtual resource transfer counterpart, the first virtual resource, the first hosting duration, and the virtual resource transfer address.
S802, determining a target hosting creation method.
After the first service server generates the first hosting preparation information, hosting creation needs to be performed in the blockchain network, and therefore a target hosting creation method needs to be determined. The matched intelligent contract can be searched according to the first service server, the third party and the second service server in the virtual resource transfer address. So that the managed creation method in the intelligent contract can be determined as the target managed creation method which needs to be called by the first managed preparation information.
S803, generate the first hosting creation instruction according to the first hosting preparation information and the target hosting creation method. That is, the first escrow creation instruction may include first escrow preparation information and a target escrow creation method. The target hosted creation method may be used to instruct the first node server to invoke the hosted creation method in the respective intelligent contract.
FIG. 9 is a block diagram illustrating a server 900 used in a virtual resource transfer system in accordance with an exemplary embodiment. Referring to fig. 9, the server 900 includes a processing component 922 that further includes one or more processors and memory resources, represented by memory 932, for storing instructions, such as applications, that are executable by the processing component 922. The application programs stored in memory 932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 922 is configured to execute instructions to perform the above-described methods.
The server 900 may also include a power component 926 configured to perform power management of the server 900, a wired or wireless network interface 950 configured to connect the server 900 to a network, and an input/output (I/O) interface 958. The server 900 may operate based on an operating system stored in memory 932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 932, is also provided that includes computer program instructions executable by the processing component 922 of the server 900 to perform the above-described method.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A virtual resource transfer method, comprising:
the first business server sends a first hosting and creating instruction to the blockchain network;
the block chain network creates first hosting virtual resource transfer information according to the first hosting creation instruction, and records the first hosting virtual resource transfer information on a block chain;
if the second node server in the block chain network monitors the record of the first hosting virtual resource transfer information, the first hosting virtual resource transfer information is sent to a second business server;
the second service server generates second hosting preparation information according to the first hosting virtual resource transfer information; and sending a second escrow creation instruction to the blockchain network;
the block chain network creates second hosting virtual resource transfer information according to the second hosting creation instruction, and records the second hosting virtual resource transfer information on a block chain;
if the second node server monitors the record of the second hosting virtual resource transfer information, the second hosting virtual resource transfer information is sent to a corresponding second terminal through a second service server;
if receiving a confirmation message of a second terminal, a second service server transfers the virtual resource from a third party to the second terminal according to a key in the confirmation message and the second hosting preparation information, and sends the key and a target hosting confirmation method to the block chain network;
the block chain network creates hosting confirmation virtual resource transfer information according to the secret key and the target hosting confirmation method, and records the hosting confirmation virtual resource transfer information on a block chain;
if the first node server in the block chain network monitors the record of the escrow confirmation virtual resource transfer information, acquiring the key and sending the key to the first service server;
and the first service server transfers the virtual resource from the first terminal to a third party according to the key and the first escrow preparation information.
2. The method of claim 1, further comprising:
if the second service server receives a rejection message of a second terminal, according to a key in the rejection message and the second escrow preparation information, returning the virtual resource to a third party, and sending the key and a target escrow rejection method to the blockchain network;
the block chain network creates escrow rejection virtual resource transfer information according to the key and the target escrow rejection method, and records the escrow rejection virtual resource transfer information on a block chain;
if the first node server monitors the record of the trusteeship rejection virtual resource transfer information, acquiring the key and sending the key to a first service server;
and the first service server backs the virtual resource to the first terminal according to the key and the first escrow preparation information.
3. The method of claim 1, wherein the first escrow creation instruction includes first escrow preparation information and a target escrow creation method; the block chain network creates first hosting virtual resource transfer information according to the first hosting creation instruction, and records the first hosting virtual resource transfer information on a block chain, including:
a first node server in the block chain network calls a hosting creation method in a corresponding intelligent contract according to the target hosting creation method;
the first node server generates first hosting virtual resource transfer information according to the hosting creation method and the first hosting preparation information, and broadcasts the first hosting virtual resource transfer information;
the blockchain network records the first hosted virtual resource transfer information on a blockchain based on a consensus mechanism.
4. The method according to claim 3, wherein the first hosting preparation information includes a hash value, a first virtual resource transfer party, a first virtual resource transfer counterpart, a first virtual resource, a first hosting duration, and a virtual resource transfer address; the first node server generates first hosted virtual resource transfer information according to the hosting creation method and the first hosted preparation information, and the method includes:
taking the hash value as a hosting lock condition of the first hosting virtual resource transfer information;
and generating first hosting virtual resource transfer information according to the hosting locking condition, the first virtual resource transfer party, the first virtual resource transfer opposite party, the first virtual resource, the first hosting duration and the virtual resource transfer address.
5. The method of claim 4, wherein the second business server generates second hosting preparation information according to the first hosting virtual resource transfer information, and wherein the second hosting preparation information comprises:
taking the escrow lock condition as a hash value;
taking the first virtual resource transfer counterpart as a second virtual resource transfer counterpart;
determining a second virtual resource transfer counterpart according to the virtual resource transfer address;
generating a second hosting duration according to the first hosting duration, wherein the second hosting duration is smaller than the first hosting duration;
generating a second virtual resource according to the first virtual resource;
and generating second hosting preparation information according to the hash value, the second virtual resource transfer party, the second virtual resource transfer opposite party, the second virtual resource and the second hosting duration.
6. The method of claim 5, wherein the first hosted virtual resource transfer information further includes a virtual resource conversion rate; the generating of the second virtual resource according to the first virtual resource includes:
and generating a second virtual resource according to the virtual resource conversion rate and the first virtual resource.
7. The method of claim 1, further comprising:
the first terminal acquires a secret key of the second terminal;
generating a hash value using the key;
generating the virtual resource transfer request message according to the hash value and the virtual resource transfer information;
and sending the virtual resource transfer request message to the first service server.
8. The method of claim 7, further comprising:
the first service server generates the first hosting preparation information according to the received virtual resource transfer request message;
determining a target hosting creation method;
and generating the first hosting creation instruction according to the first hosting preparation information and the target hosting creation method.
9. The method of claim 1, further comprising:
the first service server, the second service server and the third party determine an intelligent contract for virtual resource transfer through negotiation;
issuing the intelligent contract to the blockchain network;
wherein the intelligent contract comprises a escrow creation method, an escrow confirmation method, and an escrow rejection method.
10. A virtual resource transfer system, comprising:
the first business server is used for sending a first hosting and creating instruction to the blockchain network;
the block chain network is used for creating first hosting virtual resource transfer information according to the first hosting creation instruction and recording the first hosting virtual resource transfer information on a block chain;
the second node server in the block chain network is used for sending the first hosted virtual resource transfer information to a second service server if the record of the first hosted virtual resource transfer information is monitored;
the second service server is used for generating second hosting preparation information according to the first hosting virtual resource transfer information; and sending a second escrow creation instruction to the blockchain network;
the block chain network is used for creating second hosting virtual resource transfer information according to the second hosting creation instruction and recording the second hosting virtual resource transfer information on a block chain;
the second node server is used for sending the second hosting virtual resource transfer information to a corresponding second terminal through a second service server if the record of the second hosting virtual resource transfer information is monitored;
the second service server is used for transferring the virtual resource from the third party to the second terminal according to the key in the confirmation message and the second escrow preparation information if the confirmation message of the second terminal is received, and sending the key and the target escrow confirmation method to the block chain network;
the block chain network is used for creating hosting confirmation virtual resource transfer information according to the secret key and the target hosting confirmation method and recording the hosting confirmation virtual resource transfer information on a block chain;
the first node server in the block chain network is used for acquiring the key and sending the key to the first service server if the record of the escrow confirmation virtual resource transfer information is monitored;
and the first service server is used for transferring the virtual resource from the first terminal to a third party according to the key and the first escrow preparation information.
CN202010624741.2A 2020-07-02 2020-07-02 Virtual resource transfer method and system Active CN111915296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010624741.2A CN111915296B (en) 2020-07-02 2020-07-02 Virtual resource transfer method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010624741.2A CN111915296B (en) 2020-07-02 2020-07-02 Virtual resource transfer method and system

Publications (2)

Publication Number Publication Date
CN111915296A true CN111915296A (en) 2020-11-10
CN111915296B CN111915296B (en) 2022-11-22

Family

ID=73228038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010624741.2A Active CN111915296B (en) 2020-07-02 2020-07-02 Virtual resource transfer method and system

Country Status (1)

Country Link
CN (1) CN111915296B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource
CN108765129A (en) * 2018-05-17 2018-11-06 北京众享比特科技有限公司 Traditional bank assets distribution based on block chain and system for settling account and method
CN109345259A (en) * 2018-09-29 2019-02-15 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, medium and electronic equipment based on block chain
CN109993530A (en) * 2019-03-29 2019-07-09 北京柏链基石科技有限公司 A kind of virtual resource management method, device and electronic equipment
CN110097467A (en) * 2019-05-05 2019-08-06 华中科技大学 A kind of side chain test method for intelligent contract safety and stability
CN110585698A (en) * 2019-09-29 2019-12-20 腾讯科技(深圳)有限公司 Virtual asset transaction method and related device
US20200118116A1 (en) * 2018-04-23 2020-04-16 Rajeev Gupta Security-backed cryptocurrency methods and systems
CN111213170A (en) * 2018-09-18 2020-05-29 王健 Asset hosting method, storage medium, blockchain system, and blockchain node

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource
US20200118116A1 (en) * 2018-04-23 2020-04-16 Rajeev Gupta Security-backed cryptocurrency methods and systems
CN108765129A (en) * 2018-05-17 2018-11-06 北京众享比特科技有限公司 Traditional bank assets distribution based on block chain and system for settling account and method
CN111213170A (en) * 2018-09-18 2020-05-29 王健 Asset hosting method, storage medium, blockchain system, and blockchain node
CN109345259A (en) * 2018-09-29 2019-02-15 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, medium and electronic equipment based on block chain
CN109993530A (en) * 2019-03-29 2019-07-09 北京柏链基石科技有限公司 A kind of virtual resource management method, device and electronic equipment
CN110097467A (en) * 2019-05-05 2019-08-06 华中科技大学 A kind of side chain test method for intelligent contract safety and stability
CN110585698A (en) * 2019-09-29 2019-12-20 腾讯科技(深圳)有限公司 Virtual asset transaction method and related device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HUI LI等: "The Prototype of Decentralized Multilateral Co-Governing Post-IP Internet Architecture and Its Testing on Operator Networks", 《网页在线公开:ARXIV:1906.06901》 *
吴桐 等: "区块链和金融的融合发展研究", 《金融监管研究》 *

Also Published As

Publication number Publication date
CN111915296B (en) 2022-11-22

Similar Documents

Publication Publication Date Title
US11182851B2 (en) Inter-ledger messaging in a blockchain
US20220051235A1 (en) Settlement system, settlement method, user device, and settlement program
CA3011600C (en) Information transaction infrastructure
CN111382168B (en) Node group creating method and node group-based transaction method in alliance chain network
CN112150141A (en) Block chain consensus method, device and system
WO2018040877A1 (en) Recovery method and system for password keyboard usb communication abnormality
WO2020083112A1 (en) Numerical value transfer method, device, and system
US11057392B2 (en) Data security method utilizing mesh network dynamic scoring
KR20220074971A (en) Blockchain-based data processing method, apparatus and device, and readable storage medium
CN111915296B (en) Virtual resource transfer method and system
CN110825797B (en) Data exchange method and device
CN111294210B (en) Medical information management method and related equipment
CN111666590A (en) Distributed file secure transmission method, device and system
CN113626850B (en) Request processing method, device, equipment and storage medium based on alliance chain
CN116263925A (en) Accounting method and device based on blockchain
CN114202332A (en) Digital currency wallet management method, device and system
KR20220056574A (en) A method and an apparatus for master key management based on sharing algorithms for block chain transactions
KR102510353B1 (en) Method and system for providing golf service based blockchain
CN114765595B (en) Chat message display method, chat message sending device, electronic equipment and media
CN110264202B (en) Financial market fund settlement method based on block chain and node device
CN115499836B (en) Communication method, communication device, electronic equipment, storage medium and vehicle
US20230068597A1 (en) Cryptocurrency system and method for performing financial transactions
US9703606B2 (en) Workflow termination detection and workflow recovery
CN114827918B (en) Short message sending method, device, electronic equipment and computer readable storage medium
CN110827027B (en) Block chain resource processing method and system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: B2, 12th floor, building 1, 79 Yueda lane, Binjiang District, Hangzhou City, Zhejiang Province 310000

Applicant after: Zhonglian Intelligent Technology Co.,Ltd.

Address before: B2, 12th floor, building 1, 79 Yueda lane, Binjiang District, Hangzhou City, Zhejiang Province 310000

Applicant before: Lianlian Intelligent Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant