CN109359959A - Across chain assets transfer method, equipment and storage medium - Google Patents
Across chain assets transfer method, equipment and storage medium Download PDFInfo
- Publication number
- CN109359959A CN109359959A CN201811148015.7A CN201811148015A CN109359959A CN 109359959 A CN109359959 A CN 109359959A CN 201811148015 A CN201811148015 A CN 201811148015A CN 109359959 A CN109359959 A CN 109359959A
- Authority
- CN
- China
- Prior art keywords
- assets
- block chain
- user
- chain
- cryptographic hash
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3823—Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Abstract
The present invention provides across the chain assets transfer method of one kind, equipment and storage medium, this method comprises: the first order registration information that the first user terminal for receiving the first user is sent, registers the first order on the first block chain according to the first order registration information;The first account information is returned to the first user terminal, so that the first user terminal initiates according to the first account information the first money transfer transactions that several first assets are transferred to destiny account on the second block chain, and passes through the first cryptographic Hash that server-side is sent and lock several first assets;The assets transfer information that server-side is sent is received, several second assets for being anchored to the first assets are generated according to assets transfer information, and several second assets are stored in account of first user on the first block chain;First key is received, unlocks several first assets on the second block chain by first key to complete the first money transfer transactions.The present invention can meet multichain mapping demand by relatively simple scheme.
Description
Technical field
This application involves internet financial technology fields, and in particular to across the chain assets transfer method of one kind, equipment and storage
Medium.
Background technique
Referring to across chain tra nsfer for assets shifts assets on different block chains, to realize that business abundant is answered
With.
Existing across chain tra nsfer technology has side chain technology, multi-party to calculate lock-in techniques etc..Wherein, side chain technology is usually handle
Object chain and source chain do an anchoring, just as currency is anchored gold, uses currency in transaction, can exchange when needing
Return gold;The multi-party lock-in techniques that calculate are usually the assets on other chains to be locked by multiple accounts, while assets are mapped
Onto purpose chain, waits destroy assets on purpose chain when needed, unlock assets on other chains.
Side chain technology is had a disadvantage in that by taking more typical rootstock as an example, when side chain and main chain be anchored into
It when row joint digs mine, can only be anchored with a chain, and multiple chains cannot be anchored simultaneously;
For calculating lock-in techniques in many ways, have a disadvantage in that, although multiple chains can be anchored simultaneously, since needs are more
The locking of square account causes assets complex to the scheme of converting unlock assets after other people, is returned in mapping chain tra nsfer.
Summary of the invention
In view of drawbacks described above in the prior art or deficiency, it is intended to provide and a kind of multichain is met by relatively simple scheme
Across chain assets transfer method, equipment and the storage medium of mapping demand.
In a first aspect, the present invention provides a kind of across chain assets transfer method suitable for mapping chain node, comprising:
The first order registration information that the first user terminal of the first user is sent is received, is asked according to the registration of the first order
Information is asked to register the first order on the first block chain;Wherein, the first order is for stating the first user in the second block chain
On several first assets transfers to the first block chain on;
To the first user terminal return the first account information, for the first user terminal according to the first account information in the second block
The first cryptographic Hash that several first assets are transferred to the first money transfer transactions of destiny account, and are sent by server-side is initiated on chain
Lock several first assets;Wherein, the first account information is that the account of the first block chain destiny account on the second block chain is believed
Breath, the first cryptographic Hash are the data of the first block of server synchronization chain and the Kazakhstan for monitoring the first key generated after the first order
Uncommon value;
The assets transfer information that server-side is sent is received, the several of the first assets are anchored to according to the generation of assets transfer information
Second assets, and several second assets are stored in account of first user on the first block chain;Wherein, assets transfer information by
Server-side receives the Transaction Information for the first money transfer transactions that the first user terminal is sent, and passes through the data core of synchronous second block chain
To errorless rear generation;
First key is received, several first assets is unlocked on the second block chain by first key and is transferred accounts with completing first
Transaction;Wherein, first key monitors that several second assets are stored in account of first user on the first block chain by server-side
When send.
Second aspect, the present invention provide it is a kind of suitable for user terminal by assets transfer to mapping chain across chain assets transfer side
Method, comprising:
The first order registration information is sent to the node of the first block chain to order to register first on the first block chain
It is single;Wherein, the first order is used to state several first assets transfers by active user on the second block chain to the first block
On chain;
Receive the first cryptographic Hash of node the first account information returned and server-side transmission of the first block chain;Wherein,
First account information is the account information of the first block chain destiny account on the second block chain, and the first cryptographic Hash is that server-side is same
It walks the data of the first block chain and monitors the cryptographic Hash of the first key generated after the first order;
First turn that several first assets are transferred to destiny account is initiated on the second block chain according to the first account information
Account transaction, and several first assets are locked by the first cryptographic Hash;
The Transaction Information of first money transfer transactions is sent to server-side, so that server-side passes through the number of synchronous second block chain
According to initiation will be anchored to the account of several second assets deposit active user of the first assets on the first block chain after confirmation
The transaction at family, and first key is provided so that the node of the first block chain unlocks several first assets on the second block chain with complete
At the first money transfer transactions.
The third aspect, the present invention provide a kind of across chain assets transfer side that will convert assets from mapping chain time suitable for user terminal
Method, comprising:
The second order registration information is sent to the node of the first block chain to order to register second on the first block chain
Singly, the second key and the second cryptographic Hash are generated for the data of server synchronization the first block chain and after monitoring the second order,
By the second cryptographic Hash be issued to the node of the first block chain for according to the second order registration information on the second block chain
The second money transfer transactions that the first assets exchanged are transferred to the account of second user are initiated, are converted by the locking of the second cryptographic Hash
The first assets changed, and the Transaction Information of the second money transfer transactions is sent to server-side for verification, and, according to the second order
Registration information destroys the second assets of second user request transfer;Wherein, the second order exists second user for stating
In several second assets transfers to the second block chain on first block chain, the second cryptographic Hash is the cryptographic Hash of the second key;
The second key that server-side is provided in the data of synchronous first block chain and after monitoring to destroy successfully is received, according to
Second key unlocks the first exchanged assets on the second block chain to complete the second money transfer transactions.
Fourth aspect, the present invention also provides a kind of across chain assets transfer methods suitable for server-side, comprising:
The data of synchronous first block chain and the second block chain;
First key and the first cryptographic Hash are generated when monitoring the first order;Wherein, the first order is by the first block chain
Node receive the first user the first user terminal send the first order registration information after register generate, be used for sound
In bright several first assets transfers to the first block chain by the first user on the second block chain, the first cryptographic Hash is first close
The cryptographic Hash of key;
First cryptographic Hash is sent to the first user terminal, is returned for the first user terminal according to the node of the first block chain
First account information initiates for several first assets to be transferred to the first money transfer transactions of destiny account on the second block chain, and passes through
The first cryptographic Hash that server-side is sent locks several first assets;
The Transaction Information of the first money transfer transactions of the first user terminal transmission is received, and passes through the data of synchronous second block chain
Generate assets transfer information after confirmation and be sent to the node of the first block chain, for the first block chain node according to money
It produces transinformation and generates several second assets for being anchored to the first assets, and several second assets are stored in the first user first
Account on block chain;
Monitoring the first user when the account on the first block chain is stored in several second assets to the first block chain
Node sends first key, so that the node of the first block chain unlocks several first moneys by first key on the second block chain
It produces to complete the first money transfer transactions.
5th aspect, the present invention also provides a kind of equipment, including one or more processors and memory, wherein memory
Comprising can by instruction that the one or more processors execute so that the one or more processors execute it is each according to the present invention
Across the chain assets transfer method that embodiment provides.
6th aspect, the present invention also provides a kind of storage medium for being stored with computer program, which makes to count
Calculation machine executes across the chain assets transfer method that each embodiment provides according to the present invention.
Across chain assets transfer method, equipment and the storage medium that many embodiments of the present invention provide pass through as mapping chain (the
One block chain) synchronous with (the second block chain) configuration of other chains across chain transaction data, and configure Hash for across chain transaction and lock to protect
The server-side for hindering across chain transaction atomicity is provided and a kind of is carried out by relatively simple mode between chain and other chains mapping
Assets across chain tra nsfer, can meet multichain mapping demand across chain assets transfer solution;
Across chain assets transfer method, equipment and the storage medium that some embodiments of the invention provide are further by mapping
Transaction in assets is carried out according to the real-time exchange rate of be anchored assets on chain, further improves across the chain mobility of assets.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of schematic diagram of a scenario across chain assets transfer that one embodiment of the invention provides.
Fig. 2 is a kind of flow chart for across chain assets transfer method that one embodiment of the invention provides.
Fig. 3 is a kind of flow chart of preferred embodiment of method shown in Fig. 2.
Fig. 4 is a kind of flow chart of preferred embodiment of method shown in Fig. 3.
Fig. 5 is a kind of flow chart for across chain assets transfer method that one embodiment of the invention provides.
Fig. 6 is a kind of flow chart of preferred embodiment of method shown in Fig. 5.
Fig. 7 is a kind of flow chart for across chain assets transfer method that one embodiment of the invention provides.
Fig. 8 is a kind of flow chart for across chain assets transfer method that one embodiment of the invention provides.
Fig. 9 is a kind of flow chart of preferred embodiment of method shown in Fig. 8.
Figure 10 is a kind of structural schematic diagram for equipment that one embodiment of the invention provides.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is a kind of schematic diagram of a scenario across chain assets transfer that one embodiment of the invention provides.
As shown in Figure 1, in the present embodiment, to be cooperated by the block catenary system 100 and server-side 400 of mapping chain XYZ
User terminal 300 provides bit coin from BTC chain tra nsfer to XYZ chain for user, returns and converted to BTC chain from XYZ chain, and by ether
Mill is converted to XYZ chain, from XYZ times to the service of ETH chain from ETH chain tra nsfer, provided by the invention across chain in conjunction with Fig. 2-10 pairs
Assets transfer solution is described in detail.It, can also according to actual needs will be on any other chain in more embodiments
Assets transfer to mapping chain on, and can carry out back converting, and be not limited to the above-mentioned BTC chain enumerated and ETH chain, it can be achieved that identical
Technical effect.
Fig. 2 is a kind of flow chart for across chain assets transfer method that one embodiment of the invention provides.
As shown in Fig. 2, in the present embodiment, the present invention provides a kind of across chain assets transfer side suitable for mapping chain node
Method, comprising:
S101: the first order registration information that the first user terminal of the first user is sent is received, according to the first order
Registration information registers the first order on the first block chain.Wherein, the first order is for stating the first user second
In several first assets transfers to the first block chain on block chain.
S103: returning to the first account information to the first user terminal, for the first user terminal according to the first account information the
Several first assets are transferred to the first money transfer transactions of destiny account, and are sent by server-side first is initiated on two block chains
Cryptographic Hash locks several first assets.Wherein, the first account information is the first block chain destiny account on the second block chain
Account information, the first cryptographic Hash are the data of the first block of server synchronization chain and monitor that generate after the first order first is close
The cryptographic Hash of key.
S105: receiving the assets transfer information that server-side is sent, and is anchored to the first assets according to the generation of assets transfer information
Several second assets, and several second assets are stored in account of first user on the first block chain.Wherein, assets transfer
Information is received the Transaction Information for the first money transfer transactions that the first user terminal is sent by server-side, and passes through synchronous second block chain
It is generated after verification of data is errorless.
S107: receiving first key, unlocks several first assets on the second block chain by first key to complete the
One money transfer transactions.Wherein, first key monitors that several second assets are stored in the first user on the first block chain by server-side
Account when send.
By user's first by 10 bit coin for from BTC chain tra nsfer to XYZ chain, the user terminal 300 of user's first generates first
Order registration information, and it is sent to the node 101 of XYZ chain;
In step s101, the first order registration that the user terminal 300 that the node 101 of XYZ chain receives user's first is sent
Solicited message, registers the first order in a manner of intelligent contract on XYZ chain, and statement user's first compares 10 on BTC chain
Special coin is transferred to XYZ chain;
In step s 103, the node 101 of XYZ chain returns to the first account information to the client 300 of user's first, this first
Account information specifically includes XYZ chain in the account Account of BTC chainBTC_XYZInformation.
The client 300 of user's first also receives the first of the transmission of server-side 400 other than receiving the first account information
Cryptographic Hash H1.Specifically, server-side 400 passes through the data of synchronous XYZ chain and BTC chain, detects the first of step S101 registration
Order generates first key s1With the first cryptographic Hash H1=hash (s1), and by the first cryptographic Hash H1It is sent to the client of user's first
End 300.In the present embodiment, first key s1For random number nothing can also be configured by first key in more embodiments
The non-random numbers that method is cracked are, it can be achieved that identical technical effect.
The client 300 of user's first receives the first account information and the first cryptographic Hash H1Afterwards, it initiates on BTC chain by 10
A bit coin is transferred to the first money transfer transactions of XYZ chain destiny account, and passes through the first cryptographic Hash H1Lock 10 bit coin.
The Transaction Information of first money transfer transactions is sent to server-side 400 by the client 300 of user's first, and server-side 400 is logical
Cross the verification of data of synchronous BTC chain received first money transfer transactions Transaction Information:
It such as checks wrong, then continues waiting for correct Transaction Information, error message also can be generated and feed back to user's first
Client 300;
Such as confirmation, then generates assets transfer information and be sent to the node 101 of XYZ chain.
In step s105, after the node 101 of XYZ chain receives assets transfer information, generation is anchored to above-mentioned 10 ratios
Second assets of special coin: 10 XYZ_BTC, and it is stored in account Account of user's first on XYZ chainXYZ_ first。
Server-side 400 is existed 10 XYZ_BTC deposit user's first to above-mentioned by the data monitoring of synchronized XYZ chain
Account Account on XYZ chainXYZ_ firstAfterwards, by first key s1It is sent to the node 101 of XYZ chain.
In step s 107, the node 101 of XYZ chain receives first key s1Afterwards, pass through first key s1On BTC chain
Unlock passes through the first cryptographic Hash H110 BTC of locking, to complete the first money transfer transactions.
With above-mentioned user's first by method shown in Fig. 2 by process of 10 BTC on from BTC chain tra nsfer to XYZ chain similarly,
User's second can be by identical method by 100 ETH on from ETH chain tra nsfer to XYZ chain, and user third can also be by identical
100 DCR are transferred on XYZ chain, etc. by method.Therefore, method shown in Fig. 2 can satisfy the demand of multichain mapping.
In the present embodiment, by by 10 BTC on from BTC chain tra nsfer to XYZ chain for, to method shown in Fig. 2 carry out
It is described in detail, in more embodiments, method shown in Fig. 2 can also be applied to assets transfer on any chain to reflecting
It penetrates on chain, it can be achieved that identical technical effect.
Fig. 3 is a kind of flow chart of preferred embodiment of method shown in Fig. 2.As shown in figure 3, in a preferred embodiment
In, the second assets can be used on the first block chain trading, the above method further include:
S201: the second order registration information that the second user end of second user is sent is received, according to the second order
Registration information registers the second order on the first block chain, so that server-side monitors to generate the second key when the second order
With the second cryptographic Hash.Wherein, the second order is used to state several second assets transfers by second user on the first block chain
Onto the second block chain, the second cryptographic Hash is the cryptographic Hash of the second key.
S203: the second cryptographic Hash is received, initiates to be converted on the second block chain according to the second order registration information
The first assets changed are transferred to the second money transfer transactions of the account of second user, and the first exchanged money is locked by the second cryptographic Hash
It produces, and the Transaction Information of the second money transfer transactions is sent to server-side for verification.
S205: the second assets of second user request transfer are destroyed, according to the second order registration information for service
End monitors to provide the second key to second user end after requesting the second assets of transfer to be destroyed successfully, so that second user end exists
The first exchanged assets are unlocked on second block chain to complete the second money transfer transactions.
Specifically, equally with above-mentioned user's first by 10 BTC on from BTC chain tra nsfer to XYZ chain, user's second is by 100 ETH
For on from ETH chain tra nsfer to XYZ chain, user's first and second can be separately employed in the assets XYZ_BTC and XYZ_ held on XYZ chain
ETH trades.
In the present embodiment, when the friendship for carrying out the second assets with the 4th assets for being anchored to third assets on the first block chain
The exchange proportion of Yi Shi, the second assets and the 4th assets is determined by the real-time exchange rate of the first assets and third assets.For example, working as
When first and second are traded with XYZ_BTC and XYZ_ETH respectively, XYZ_ is determined according to the real-time exchange rate 1:12.67 of BTC and ETH
The exchange proportion of BTC and XYZ_ETH is equally 1:12.67.It, can also be according to actual needs with different in more embodiments
Mode arranges the exchange proportion of above-mentioned second assets and the 4th assets, such as the ratio voluntarily arranged in user's first and second, or with
The mode of encryption monetary assets and franc asset portfolio trade, etc..
It, can be first with 63.35 when user's second is wanted to exchange 5 bit coin it is assumed that in the case where no service charge
XYZ_ETH and user's first exchange 5 XYZ_BTC, then 5 XYZ_BTC are transferred back to BTC chain by method shown in Fig. 3, obtain
5 bit coin.
Specifically, the user terminal 300 of user's second generates the second order registration information, and is sent to the node of XYZ chain
101;
In step s 201, the second order registration that the user terminal 300 that the node 101 of XYZ chain receives user's second is sent
Solicited message registers the second order on XYZ chain, states that 5 XYZ_BTC on XYZ chain are transferred to BTC chain by user's second;
After data monitoring to the second order of the server-side 400 according to synchronous XYZ chain, the second key s is generated2It is breathed out with second
Uncommon value H2=hash (s2), and by the second cryptographic Hash H2It is sent to the node 101 of XYZ chain;
In step S203, the node 101 of XYZ chain receives the second cryptographic Hash H2, believed according to the second order registration request
The second money transfer transactions for initiating for 5 bit coin to be transferred to user's second account on BTC chain on BTC chain are ceased, and are breathed out by second
Uncommon value H25 exchanged bit coin are locked, and the Transaction Information of the second money transfer transactions is sent to server-side 400, for clothes
It is checked according to the data of the BTC chain synchronized at business end 400;
In step S205, the node 101 of XYZ chain, which destroys user's second according to the second order registration information, requests to turn
5 XYZ_BTC moved;
Server-side 400 to after destroying successfully, is sent according to the Data Detection of the XYZ chain synchronized to the user terminal of user's second
Second key s2, for user's second user terminal on BTC chain according to the second key s2Unlock 5 bit coin of locking.
Similar to the above processly, the XYZ_ETH that transaction obtains can also be transferred back on ETH chain by user's first, obtain phase
Answer the ether mill of quantity.
Fig. 4 is a kind of flow chart of preferred embodiment of method shown in Fig. 3.As shown in figure 4, in a preferred embodiment
In, the above method further include:
S207: if destroying failure, the second money transfer transactions are recalled.
Specifically, in the present embodiment, when Sorry, your ticket has not enough value by the XYZ_BTC in user's second account, it can not exchange and request to turn
When the BTC of shifting, the node 101 of XYZ chain recalls the second money transfer transactions;In more embodiments, the node 101 of XYZ chain can be with
Notify the user terminal of user's second that Sorry, your ticket has not enough value, and after waiting for a period of time or receiving the notification information of user terminal of user's second
Destruction operation is re-started, can also notify the user terminal of user's second that other people can be asked to pay out and exchange required the second money destroyed
Produce, etc..
Fig. 5 is a kind of flow chart for across chain assets transfer method that one embodiment of the invention provides.Method shown in fig. 5 can
Method shown in Fig. 2 is cooperated to execute.
As shown in figure 5, the present invention also provides it is a kind of suitable for user terminal by assets transfer to mapping chain on across chain assets
Transfer method, comprising:
S301: the first order registration information is sent to register the on the first block chain to the node of the first block chain
One order.Wherein, the first order is used to state several first assets transfers by active user on the second block chain to first
On block chain.
S303: the first cryptographic Hash of node the first account information returned and server-side transmission of the first block chain is received.
Wherein, the first account information is the account information of the first block chain destiny account on the second block chain, and the first cryptographic Hash is clothes
The data of the synchronous first block chain in business end and the cryptographic Hash for monitoring the first key generated after the first order.
S305: several first assets are transferred to destiny account is initiated on the second block chain according to the first account information
One money transfer transactions, and several first assets are locked by the first cryptographic Hash.
S307: being sent to server-side for the Transaction Information of the first money transfer transactions, so that server-side passes through synchronous second block
It initiates that the current use of several second assets deposit of the first assets will be anchored on the first block chain after the verification of data of chain is errorless
The transaction of the account at family, and provide first key so that the node of the first block chain unlocks on the second block chain it is several first money
It produces to complete the first money transfer transactions.
Specifically, across the chain tra nsfer principle of method shown in fig. 5 can refer to above-mentioned method shown in Fig. 2, no longer superfluous herein
It states.
Fig. 6 is a kind of flow chart of preferred embodiment of method shown in Fig. 5.As shown in fig. 6, in a preferred embodiment
In, the above method further include:
S309: whether the second assets of monitoring arrive account in intended duration: it is no, then recall the first money transfer transactions.
Specifically, in the present embodiment, when the node 101 of XYZ chain deposits the XYZ_BTC of exchange not in intended duration
For access customer first in the account of XYZ chain, the user terminal 300 of user's first can recall the first money transfer transactions;In more embodiments,
The user terminal 300 of user's first can also send prompt information, and continue waiting for.
Fig. 7 is a kind of flow chart for across chain assets transfer method that one embodiment of the invention provides.Method shown in Fig. 7 can
Method shown in Fig. 3 is cooperated to execute.
As shown in fig. 7, in the present embodiment, the present invention also provides one kind to be suitable for user terminal for assets from mapping chain tra nsfer
Across the chain assets transfer method of Hui Yuanlian, comprising:
S401: the second order registration information is sent to register the on the first block chain to the node of the first block chain
Two orders, for server synchronization the first block chain data and generate the second key and the second Hash after monitoring the second order
Value, by the second cryptographic Hash be issued to the node of the first block chain for according to the second order registration information in the second block chain
Upper the first assets for initiating to be exchanged are transferred to the second money transfer transactions of the account of second user, lock institute by the second cryptographic Hash
The first assets exchanged, and the Transaction Information of the second money transfer transactions is sent to server-side for verification, and, it is ordered according to second
Single registration information destroys the second assets of second user request transfer.Wherein, the second order is for stating second user
In several second assets transfers to the second block chain on the first block chain, the second cryptographic Hash is the cryptographic Hash of the second key.
S403: it is close to receive server-side is provided in the data of synchronous first block chain and after monitoring to destroy successfully second
Key unlocks the first exchanged assets on the second block chain according to the second key to complete the second money transfer transactions.
Across the chain tra nsfer principle of method shown in Fig. 7 can refer to above-mentioned method shown in Fig. 3, and details are not described herein again.
Fig. 8 is a kind of flow chart for across chain assets transfer method that one embodiment of the invention provides.Method shown in Fig. 8 can
Fig. 2, method shown in fig. 5 is cooperated to execute.
As shown in figure 8, in the present embodiment, the present invention also provides a kind of across chain assets transfer sides suitable for server-side
Method, comprising:
S501: the data of synchronous first block chain and the second block chain.
S503: first key and the first cryptographic Hash are generated when monitoring the first order.Wherein, the first order is by the firstth area
The node of block chain is registered after the first order registration information that the first user terminal for receiving the first user is sent and is generated, and is used
In statement by the first user in several first assets transfers to the first block chain on the second block chain, the first cryptographic Hash is the
The cryptographic Hash of one key.
S505: being sent to the first user terminal for the first cryptographic Hash, so that the first user terminal is according to the node of the first block chain
The first account information returned initiates the first money transfer transactions that several first assets are transferred to destiny account on the second block chain,
And several first assets are locked by the first cryptographic Hash that server-side is sent.
S507: the Transaction Information for the first money transfer transactions that the first user terminal is sent is received, and passes through synchronous second block chain
Verification of data it is errorless after generate assets transfer information and be sent to the node of the first block chain, for the node of the first block chain
Several second assets for being anchored to the first assets are generated according to assets transfer information, and several second assets are stored in the first user
Account on the first block chain.
S509: monitoring the first user when the account on the first block chain is stored in several second assets to the first block
The node of chain sends first key, so that the node of the first block chain unlocks several the by first key on the second block chain
One assets are to complete the first money transfer transactions.
Across the chain tra nsfer principle of method shown in Fig. 8 can refer to above-mentioned method shown in Fig. 2, and details are not described herein again.
Fig. 9 is a kind of flow chart of preferred embodiment of method shown in Fig. 8.Method shown in Fig. 9 can cooperate Fig. 3, Fig. 7
Shown in method execute.
As shown in figure 9, in a preferred embodiment, the above method further include:
S601: the second key and the second cryptographic Hash are generated when monitoring the second order.Wherein, the second order is by the firstth area
The node of block chain is registered after the second order registration information that the second user end for receiving second user is sent and is generated, and is used for
It states in several second assets transfers to the second block chain by second user on the first block chain, the second cryptographic Hash is second
The cryptographic Hash of key.
Second cryptographic Hash: being sent to the node of the first block chain by S603, for the first block chain node according to second
Order registration information is initiated for the first assets exchanged to be transferred to the second of the account of second user on the second block chain
Money transfer transactions lock the first exchanged assets by the second cryptographic Hash, and, it is destroyed according to the second order registration information
Second assets of second user request transfer;
S605: the Transaction Information for the second money transfer transactions that the node of the first block chain is sent is received, according to the synchronized
The data of two block chains are checked;
S607: providing the second key to second user end after monitoring that the second assets of request transfer are destroyed successfully, with
The first exchanged assets are unlocked on the second block chain for second user end to complete the second money transfer transactions.
Across the chain tra nsfer principle of method shown in Fig. 9 can refer to above-mentioned method shown in Fig. 3, and details are not described herein again.
Figure 10 is a kind of structural schematic diagram for equipment that one embodiment of the invention provides.
As shown in Figure 10, as on the other hand, present invention also provides a kind of equipment 1000, including one or more centers
Processing unit (CPU) 1001, can be according to the program being stored in read-only memory (ROM) 1002 or from storage section
1008 programs being loaded into random access storage device (RAM) 1003 and execute various movements appropriate and processing.In RAM1003
In, it is also stored with equipment 1000 and operates required various programs and data.CPU1001, ROM1002 and RAM1003 pass through total
Line 1004 is connected with each other.Input/output (I/O) interface 1005 is also connected to bus 1004.
I/O interface 1005 is connected to lower component: the importation 1006 including keyboard, mouse etc.;Including such as cathode
The output par, c 1007 of ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section including hard disk etc.
1008;And the communications portion 1009 of the network interface card including LAN card, modem etc..Communications portion 1009 passes through
Communication process is executed by the network of such as internet.Driver 1010 is also connected to I/O interface 1005 as needed.It is detachable to be situated between
Matter 1011, such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 1010, so as to
In being mounted into storage section 1008 as needed from the computer program read thereon.
Particularly, in accordance with an embodiment of the present disclosure, across the chain assets transfer method of any of the above-described embodiment description can be by
It is embodied as computer software programs.For example, embodiment of the disclosure includes a kind of computer program product comprising visibly wrap
Containing computer program on a machine-readable medium, the computer program includes the journey for executing across chain assets transfer method
Sequence code.In such embodiments, which can be downloaded and installed from network by communications portion 1009,
And/or it is mounted from detachable media 1011.
As another aspect, present invention also provides a kind of computer readable storage medium, the computer-readable storage mediums
Matter can be computer readable storage medium included in the device of above-described embodiment;It is also possible to individualism, it is unassembled
Enter the computer readable storage medium in equipment.Computer-readable recording medium storage has one or more than one program, should
Program is used to execute across the chain assets transfer method for being described in the application by one or more than one processor.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depending on related function.Also it wants
It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yitong
The dedicated hardware based system of functions or operations as defined in executing is crossed to realize, or by specialized hardware and can be calculated
The combination of machine instruction is realized.
Being described in the embodiment of the present application involved unit or module can be realized by way of software, can also be with
It is realized by way of hardware.Described unit or module also can be set in the processor, for example, each unit can
To be the software program being arranged in computer or intelligent movable equipment, it is also possible to the hardware device being separately configured.Wherein, this
The title of a little units or module does not constitute the restriction to the unit or module itself under certain conditions.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the application design, appointed by above-mentioned technical characteristic or its equivalent feature
Other technical solutions of meaning combination and formation.Such as features described above and (but being not limited to) disclosed herein have similar functions
Technical characteristic replaced mutually and the technical solution that is formed.
Claims (10)
1. a kind of across chain assets transfer method characterized by comprising
The first order registration information that the first user terminal of the first user is sent is received, is asked according to first order registration
Information is asked to register the first order on the first block chain;Wherein, first order is for stating first user the
In several first assets transfers to the first block chain on two block chains;
The first account information is returned to first user terminal, so that first user terminal exists according to first account information
It initiates several first assets being transferred to the first money transfer transactions of destiny account on the second block chain, and passes through server-side
The first cryptographic Hash sent locks several first assets;Wherein, first account information is that the first block chain exists
The account information of destiny account on the second block chain, first cryptographic Hash are the first block described in the server synchronization
The data of chain and the cryptographic Hash for monitoring the first key generated after first order;
The assets transfer information that the server-side is sent is received, first money is anchored to according to assets transfer information generation
Several second assets produced, and several second assets are stored in account of first user on the first block chain
Family;Wherein, the assets transfer information is received the friendship for the first money transfer transactions that first user terminal is sent by the server-side
Easy information, and pass through the errorless rear generation of the verification of data of synchronous second block chain;
Receive the first key, unlocked on the second block chain by the first key several first assets with
Complete first money transfer transactions;Wherein, the first key monitors that several second assets are stored in by the server-side
First user sends in the account on the first block chain.
2. the method according to claim 1, wherein second assets can be used on the first block chain
It trades, the method also includes:
The second order registration information that the second user end of second user is sent is received, is asked according to second order registration
It asks information to register the second order on the first block chain, it is close that second is generated when monitoring second order for the server-side
Key and the second cryptographic Hash;Wherein, second order is used to state the second user several the on the first block chain
In two assets transfers to the second block chain, second cryptographic Hash is the cryptographic Hash of second key;
Second cryptographic Hash is received, is initiated on the second block chain by institute according to the second order registration information
The first assets exchanged are transferred to the second money transfer transactions of the account of the second user, are converted by second cryptographic Hash locking
The first assets changed, and the Transaction Information of second money transfer transactions is sent to the server-side for verification;
The second assets of the second user request transfer are destroyed, according to the second order registration information for the clothes
Business end monitors to provide second key to the second user end after requesting the second assets of transfer to be destroyed successfully, for institute
It states second user end and unlocks the first exchanged assets on the second block chain to complete second money transfer transactions.
3. method according to claim 1 or 2, which is characterized in that provided when carrying out described second on the first block chain
When producing and be anchored to the transaction of the 4th assets of third assets, the exchange proportion of second assets and the 4th assets passes through
The real-time exchange rate of first assets and the third assets determines.
4. a kind of across chain assets transfer method characterized by comprising
The first order registration information is sent to the node of the first block chain to order to register first on the first block chain
It is single;Wherein, first order is used to state several first assets transfers by active user on the second block chain described in
On first block chain;
Receive the first account information that the node returns and the first cryptographic Hash that server-side is sent;Wherein, first account
Information is the account information of the first block chain destiny account on the second block chain, and first cryptographic Hash is described
The data of first block chain described in server synchronization and the cryptographic Hash for monitoring the first key generated after first order;
It is initiated for several first assets to be transferred on the second block chain according to first account information described specified
First money transfer transactions of account, and several first assets are locked by first cryptographic Hash;
The Transaction Information of first money transfer transactions is sent to the server-side, so that the server-side passes through synchronous secondth area
It initiates that several second assets of first assets will be anchored on the first block chain after the verification of data of block chain is errorless
It is stored in the transaction of the account of the active user, and is monitoring several second assets deposits first user first
When account on block chain to the node of the first block chain send the first key for the first block chain node described
Several first assets are unlocked on second block chain to complete first money transfer transactions.
5. according to the method described in claim 4, it is characterized by further comprising:
Monitor whether second assets arrive account in intended duration: it is no, then recall first money transfer transactions.
6. a kind of across chain assets transfer method characterized by comprising
The second order registration information is sent to the node of the first block chain to order to register second on the first block chain
It is single, the second key and second are generated for the data of the first block chain described in server synchronization and after monitoring second order
Second cryptographic Hash is issued to the node of the first block chain for according to the second order registration information by cryptographic Hash
The second money transfer transactions that the first assets exchanged are transferred to the account of second user are initiated on the second block chain, are passed through
Second cryptographic Hash locks the first exchanged assets, and the Transaction Information of second money transfer transactions is sent to the clothes
End be engaged in for verification, and, the second of the second user request transfer is destroyed according to the second order registration information
Assets;Wherein, second order is used to state several second assets transfers by the second user on the first block chain
Onto the second block chain, second cryptographic Hash is the cryptographic Hash of second key;
Receive the server-side is provided after synchronizing the data of the first block chain and monitoring to destroy successfully described second
Key unlocks the first exchanged assets on the second block chain according to second key and is transferred accounts with completing described second
Transaction.
7. a kind of across chain assets transfer method characterized by comprising
The data of synchronous first block chain and the second block chain;
First key and the first cryptographic Hash are generated when monitoring the first order;Wherein, first order is by firstth area
The node of block chain is registered after the first order registration information that the first user terminal for receiving the first user is sent and is generated, and is used
In statement by first user in several first assets transfers to the first block chain on the second block chain, institute
State the cryptographic Hash that the first cryptographic Hash is the first key;
First cryptographic Hash is sent to first user terminal, so that first user terminal is according to the section of the first block chain
The first account information that point returns initiates for several first assets to be transferred on the second block chain the of destiny account
One money transfer transactions, and several first assets are locked by first cryptographic Hash;
The Transaction Information for the first money transfer transactions that first user terminal is sent is received, and passes through the data of synchronous second block chain
Generate assets transfer information after confirmation and be sent to the node of the first block chain, for the first block chain node according to institute
It states assets transfer information and generates several second assets for being anchored to first assets, and several second assets are stored in institute
State account of first user on the first block chain;
When monitoring that several second assets are stored in first user in the account on the first block chain to the first block
The node of chain sends the first key, for the first block chain node by the first key in the second block chain
Upper unlock several first assets are to complete first money transfer transactions.
8. the method according to the description of claim 7 is characterized in that further include:
The second key and the second cryptographic Hash are generated when monitoring second order;Wherein, second order is by described
The node of one block chain is registered after the second order registration information that the second user end for receiving second user is sent and is generated,
For state several second assets transfers by the second user on the first block chain to the second block chain, it is described
Second cryptographic Hash is the cryptographic Hash of second key;
Second cryptographic Hash is sent to the node of the first block chain, so that the node of the first block chain is ordered according to described second
Single registration information initiates the account that the first assets exchanged are transferred to the second user on the second block chain
The second money transfer transactions, exchanged the first assets are locked by second cryptographic Hash, and, infused according to second order
Volume solicited message destroys the second assets of the second user request transfer;
The Transaction Information for receiving second money transfer transactions of the node transmission of the first block chain, according to second synchronized
The data of block chain are checked;
Second key is provided to the second user end after monitoring that the second assets of request transfer are destroyed successfully, for
The second user end unlocks the first exchanged assets on the second block chain to complete second money transfer transactions.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors
Execute such as method of any of claims 1-8.
10. a kind of storage medium for being stored with computer program, which is characterized in that realize when the program is executed by processor as weighed
Benefit requires method described in any one of 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811148015.7A CN109359959A (en) | 2018-09-29 | 2018-09-29 | Across chain assets transfer method, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811148015.7A CN109359959A (en) | 2018-09-29 | 2018-09-29 | Across chain assets transfer method, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109359959A true CN109359959A (en) | 2019-02-19 |
Family
ID=65348218
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811148015.7A Withdrawn CN109359959A (en) | 2018-09-29 | 2018-09-29 | Across chain assets transfer method, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109359959A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110245517A (en) * | 2019-05-29 | 2019-09-17 | 杭州秘猿科技有限公司 | A kind of across chain method, apparatus, system and the electronic equipment of block chain |
CN111192054A (en) * | 2020-04-15 | 2020-05-22 | 傲林科技有限公司 | Multi-block chain linkage method and device and storage medium |
CN111311209A (en) * | 2020-02-03 | 2020-06-19 | 腾讯科技(深圳)有限公司 | Cross-block-chain data processing method, device, equipment and computer storage medium |
CN111582845A (en) * | 2020-04-30 | 2020-08-25 | 北京金山云网络技术有限公司 | Cross-chain transaction method and device of block chain and electronic equipment |
CN111640017A (en) * | 2020-05-06 | 2020-09-08 | 深圳前海微众银行股份有限公司 | Transaction correctness verification method and device applied to alliance chain cross-chain transfer |
CN112488684A (en) * | 2020-12-14 | 2021-03-12 | 中钞信用卡产业发展有限公司杭州区块链技术研究院 | Block chain asset security deal method and system based on legal digital currency |
CN113191756A (en) * | 2021-06-04 | 2021-07-30 | 杭州复杂美科技有限公司 | Cross-chain asset security management method, computer device and storage medium |
-
2018
- 2018-09-29 CN CN201811148015.7A patent/CN109359959A/en not_active Withdrawn
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110245517A (en) * | 2019-05-29 | 2019-09-17 | 杭州秘猿科技有限公司 | A kind of across chain method, apparatus, system and the electronic equipment of block chain |
CN111311209A (en) * | 2020-02-03 | 2020-06-19 | 腾讯科技(深圳)有限公司 | Cross-block-chain data processing method, device, equipment and computer storage medium |
CN111192054A (en) * | 2020-04-15 | 2020-05-22 | 傲林科技有限公司 | Multi-block chain linkage method and device and storage medium |
CN111582845A (en) * | 2020-04-30 | 2020-08-25 | 北京金山云网络技术有限公司 | Cross-chain transaction method and device of block chain and electronic equipment |
CN111640017A (en) * | 2020-05-06 | 2020-09-08 | 深圳前海微众银行股份有限公司 | Transaction correctness verification method and device applied to alliance chain cross-chain transfer |
CN112488684A (en) * | 2020-12-14 | 2021-03-12 | 中钞信用卡产业发展有限公司杭州区块链技术研究院 | Block chain asset security deal method and system based on legal digital currency |
CN113191756A (en) * | 2021-06-04 | 2021-07-30 | 杭州复杂美科技有限公司 | Cross-chain asset security management method, computer device and storage medium |
CN113191756B (en) * | 2021-06-04 | 2022-07-19 | 杭州复杂美科技有限公司 | Cross-chain asset security management method, computer device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109146448A (en) | Across chain assets transfer method, equipment and storage medium | |
CN109359959A (en) | Across chain assets transfer method, equipment and storage medium | |
CN109493024A (en) | Digital asset trustship method, equipment and storage medium | |
Singh et al. | Blockchain technology for decentralized autonomous organizations | |
CN108734574B (en) | Cross-chain operation method of block chain and block chain management system | |
US10437630B2 (en) | System for transforming large scale electronic processing using application block chain and multi-structured data stores | |
CN110363665B (en) | Credit right data processing method, device, equipment and medium | |
CN110383311A (en) | Supervise the transaction of block chain secret | |
EP4120150A1 (en) | Calculation method for vertical federated learning, apparatus, device, and medium | |
JP2019523495A (en) | Digital goods management in a distributed transaction consensus network | |
US9773237B2 (en) | Synchronous split payment transaction management | |
CN109314643A (en) | Transacter, transaction methods and the program for it | |
CN107392767A (en) | Method of commerce, electronic equipment and the storage medium of electricity market based on block chain | |
CN109087080A (en) | Across chain method of commerce, equipment and storage medium | |
WO2020155832A1 (en) | Cross-chain usage-rights system and method, device, eletronic apparatus and storage medium | |
US11037143B2 (en) | Platform for atomic transfer of smart assets within blockchain networks | |
US20230410111A1 (en) | Cryptocurrency Storage Distribution | |
CN110084594A (en) | A kind of block chain method of commerce and device by lightning network | |
CN111598679B (en) | Block chain-based multi-law person-to-person combined loan method, system and medium | |
CN109146488A (en) | Assets match method, assets match system, equipment and storage medium | |
CN109272311A (en) | A kind of across chain flogic system based on digital wallet | |
CN107590731A (en) | A kind of recording method, device and the equipment of bill expense | |
CN110417917B (en) | Method, system, computer device and medium for ticket circulation | |
Goyal et al. | Atomic cross-chain asset exchange for ethereum public chains | |
CN110473093A (en) | Parallel chain assets transfer method, equipment and storage medium |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190219 |
|
WW01 | Invention patent application withdrawn after publication |