CN110473093A - Parallel chain assets transfer method, equipment and storage medium - Google Patents
Parallel chain assets transfer method, equipment and storage medium Download PDFInfo
- Publication number
- CN110473093A CN110473093A CN201910688760.9A CN201910688760A CN110473093A CN 110473093 A CN110473093 A CN 110473093A CN 201910688760 A CN201910688760 A CN 201910688760A CN 110473093 A CN110473093 A CN 110473093A
- Authority
- CN
- China
- Prior art keywords
- transaction
- chain
- parallel chain
- common recognition
- parallel
- 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.)
- Pending
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
- 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 a kind of parallel chain assets transfer method, equipment and storage medium, this method comprises: executing the first transaction, by the first transaction record on main chain, for: each node of the first parallel chain executes the first transaction respectively to deduct assets to be transferred in the first parallel chain account of user;Each common recognition node of first parallel chain generates the transaction of the first common recognition respectively;Each first common recognition transaction is executed to carry out parallel chain common recognition, judges whether the first transaction runs succeeded on the first parallel chain: being, then increase assets transfer power in the main chain account of user;The second transaction is executed, minus asset transfer power: success, then by the second transaction record on main chain, for: each node of the second parallel chain executes the second transaction respectively to increase assets in the second parallel chain account of user;Each common recognition node of second parallel chain generates the transaction of the second common recognition respectively;Each second common recognition transaction is executed to carry out parallel chain common recognition.The application realizes convenient and fast assets transfer between parallel chain.
Description
Technical field
This application involves block chain technical fields, and in particular to a kind of parallel chain assets transfer method, equipment and storage are situated between
Matter.
Background technique
(the applied every parallel chain patent text of applicant is specifically referred in the parallel chain mechanism that applicant is proposed
This) in, parallel chain carries out parallel chain common recognition from main chain isochronous transaction, and by the common recognition of main chain.
Based on above-mentioned mechanism, can be traded at present by the transaction of main chain and a parallel chain composed by trading group into
Across the chain transaction of row main chain and parallel chain, but the assets transfer between parallel chain still can not be easily realized at present.
Summary of the invention
In view of drawbacks described above in the prior art or deficiency, more convenient and fast money is intended to provide between a kind of realization parallel chain
Produce parallel chain assets transfer method, equipment and the storage medium of transfer.
In a first aspect, the present invention provides a kind of parallel chain assets transfer method suitable for main chain node, comprising:
It is packaged and executes the first transaction, by the first transaction record on main chain, for:
Each node of first parallel chain synchronizes, is packaged and executes respectively the first transaction to deduct the first of the first user in parallel
First assets to be transferred in the account of chain;
Each common recognition node of first parallel chain generates the first common recognition respectively and trades and be sent to corresponding main chain node;Its
In, the first common recognition transaction includes the implementing result of the first transaction;
It is packaged and executes each first common recognition transaction to carry out the parallel chain common recognition of the first parallel chain, according to parallel chain common recognition
As a result judge whether the first transaction runs succeeded on the first parallel chain:
It is the transfer power for then increasing by the first assets in the account of the main chain of the first user;
It is packaged and is executed the second transaction, the transfer power of the first assets is deducted in the account of the main chain of the first user:
It deducts successfully, then the second transaction runs succeeded, by the second transaction record on main chain, for:
Each node of second parallel chain is synchronous respectively, is packaged and executes the second transaction in the second parallel chain of the first user
Account in increase by the first assets;
Each common recognition node of second parallel chain generates the second common recognition respectively and trades and be sent to corresponding main chain node;Its
In, the second common recognition transaction includes the implementing result of the second transaction;
It is packaged and executes each second common recognition transaction to carry out the parallel chain common recognition of the second parallel chain.
Second aspect, the present invention provide a kind of parallel chain assets transfer method of common recognition node suitable for parallel chain, packet
It includes:
It synchronizes the first transaction of current parallel chain from main chain and is packaged and execute to deduct the first parallel chain of the first user
First assets to be transferred in account;Wherein, the first transaction is recorded on main chain after being packaged execution by main chain node;
Generate include first transaction implementing result first common recognition trade and be sent to corresponding main chain node for:
Master link clicks through the parallel chain common recognition of parallel chain before the trade, and, first is judged according to the result that parallel chain is known together
Whether transaction runs succeeded on parallel chain: being the transfer power for then increasing by the first assets in the account of the main chain of the first user;
Main chain node is packaged and executes the second transaction, and the transfer of the first assets is deducted in the account of the main chain of the first user
Power: deducting successfully, then the second transaction runs succeeded, by the second transaction record on main chain, for:
Each node of second parallel chain is synchronous respectively, is packaged and executes the second transaction in the second parallel chain of the first user
Account in increase by the first assets;
Each common recognition node of second parallel chain generate respectively the second common recognition trade and be sent to corresponding main chain node for
Carry out the parallel chain common recognition of the second parallel chain;Wherein, the second common recognition transaction includes the implementing result of the second transaction;
Each first common recognition transaction that each common recognition node for synchronizing current parallel chain from main chain generates respectively is to carry out parallel chain
From common recognition.
The third aspect, the present invention provide a kind of parallel chain assets transfer method of non-common recognition node suitable for parallel chain,
Include:
It synchronizes the first transaction of current parallel chain from main chain and is packaged and execute to deduct the first parallel chain of the first user
First assets to be transferred in account;Wherein, the first transaction is recorded on main chain after being packaged execution by main chain node;
Each first common recognition transaction of current parallel chain is synchronized from main chain to carry out parallel chain from common recognition;Wherein, the first common recognition
Transaction include first transaction implementing result, by the common recognition node of current parallel chain generate and send to main chain node for:
Master link clicks through the parallel chain common recognition of parallel chain before the trade, and, first is judged according to the result that parallel chain is known together
Whether transaction runs succeeded on parallel chain: being the transfer power for then increasing by the first assets in the account of the main chain of the first user;
Main chain node is packaged and executes the second transaction, and the transfer of the first assets is deducted in the account of the main chain of the first user
Power: deducting successfully, then the second transaction runs succeeded, by the second transaction record on main chain, for:
Each node of second parallel chain is synchronous respectively, is packaged and executes the second transaction in the second parallel chain of the first user
Account in increase by the first assets;
Each common recognition node of second parallel chain generate respectively the second common recognition trade and be sent to corresponding main chain node for
Carry out the parallel chain common recognition of the second parallel chain;Wherein, the second common recognition transaction includes the implementing result of the second transaction.
Fourth aspect, the present invention also provides the parallel chain assets transfer sides of another common recognition node for being suitable for parallel chain
Method, comprising:
The second transaction of current parallel chain is synchronized from main chain and is packaged execution in the account of the current parallel chain of the first user
Increase by the first assets in family;Wherein, the second transaction is packaged by main chain node executes, and deducts in the account of the main chain of the first user
The transfer of first assets runs succeeded when weighing successfully and is recorded on main chain;Transfer power is packaged by main chain node and executes each first
Common recognition transaction is known together with the parallel chain for carrying out the first parallel chain, judges that the first transaction is flat first according to the result that parallel chain is known together
After running succeeded on row chain, increase in the account of the main chain of the first user;First transaction is packaged by main chain node to be executed to remember
Record is synchronized, be packaged and executed respectively to deduct the first of the first user in parallel on main chain, and by each node of the first parallel chain
First assets to be transferred in the account of chain;First common recognition transaction includes the implementing result of the first transaction;
The second common recognition is generated to trade and be sent to corresponding main chain node for carrying out the parallel chain common recognition of current parallel chain;
Wherein, the second common recognition transaction includes the implementing result of the second transaction;
Each second common recognition transaction of current parallel chain is synchronized from main chain to carry out parallel chain from common recognition.
5th aspect, the present invention also provides the parallel chain assets transfer sides of another non-common recognition node for being suitable for parallel chain
Method, comprising:
The second transaction of current parallel chain is synchronized from main chain and is packaged execution in the account of the current parallel chain of the first user
Increase by the first assets in family;Wherein, the second transaction is packaged by main chain node executes, and deducts in the account of the main chain of the first user
The transfer of first assets runs succeeded when weighing successfully and is recorded on main chain;Transfer power is packaged by main chain node and executes each first
Common recognition transaction is known together with the parallel chain for carrying out the first parallel chain, judges that the first transaction is flat first according to the result that parallel chain is known together
After running succeeded on row chain, increase in the account of the main chain of the first user;First transaction is packaged by main chain node to be executed to remember
Record is synchronized, be packaged and executed respectively to deduct the first of the first user in parallel on main chain, and by each node of the first parallel chain
First assets to be transferred in the account of chain;First common recognition transaction includes the implementing result of the first transaction;
Each second common recognition transaction of current parallel chain is synchronized from main chain to carry out parallel chain from common recognition;Wherein, the second common recognition
Transaction includes the implementing result of the second transaction, is generated and sent to main chain node by the common recognition node of current parallel chain for carrying out
The parallel chain common recognition of current parallel chain.
6th 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
The parallel chain assets transfer method that embodiment provides.
7th aspect, the present invention also provides a kind of storage medium for being stored with computer program, which makes to count
Calculation machine executes the parallel chain assets transfer method that each embodiment provides according to the present invention.
Parallel chain assets transfer method, equipment and the storage medium that many embodiments of the present invention provide by first by trading
It is configured to execute respectively in main chain and parallel chain with the second transaction, thus according to the first transaction in the first parallel chain on main chain
Implementing result judge whether in the main chain account of user increase assets transfer power, and then according in the main chain account of user whether
There is enough assets transfers power judge whether the second transaction runs succeeded on main chain, and passes through execution the on the second parallel chain
The transfer of assets is completed in two transaction, is realized and is completed more convenient and fast assets transfer between parallel chain by two transactions;
Parallel chain assets transfer method, equipment and the storage medium that some embodiments of the invention provide are further by money
The parallel chain for producing original place carries out the destruction operation that assets transfer is completed in transfer.
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 process for parallel chain assets transfer method suitable for main chain node that one embodiment of the invention provides
Figure.
Fig. 2 is a kind of parallel chain assets transfer method suitable for parallel chain common recognition node that one embodiment of the invention provides
Flow chart.
Fig. 3 is a kind of parallel chain assets transfer side suitable for the non-common recognition node of parallel chain that one embodiment of the invention provides
The flow chart of method.
Fig. 4 is the parallel chain assets transfer side that the another kind that one embodiment of the invention provides is suitable for parallel chain common recognition node
The flow chart of method.
Fig. 5 is the parallel chain assets transfer that the another kind that one embodiment of the invention provides is suitable for the non-common recognition node of parallel chain
The flow chart of method.
Fig. 6 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 process for parallel chain assets transfer method suitable for main chain node that one embodiment of the invention provides
Figure.
As shown in Figure 1, in the present embodiment, the present invention provides a kind of parallel chain assets transfer side suitable for main chain node
Method, comprising:
S12: being packaged and executes the first transaction, by the first transaction record on main chain, for:
Each node of first parallel chain synchronizes, is packaged and executes respectively the first transaction to deduct the first of the first user in parallel
First assets to be transferred in the account of chain;
Each common recognition node of first parallel chain generates the first common recognition respectively and trades and be sent to corresponding main chain node;Its
In, the first common recognition transaction includes the implementing result of the first transaction;
S141: being packaged and executes each first common recognition transaction to carry out the parallel chain common recognition of the first parallel chain;
S143: judge whether the first transaction runs succeeded on the first parallel chain according to the result that parallel chain is known together:
It is to then follow the steps S145: increases the transfer power of the first assets in the account of the main chain of the first user;
S161: being packaged and executes the second transaction, and the transfer power of the first assets is deducted in the account of the main chain of the first user:
It deducts successfully, then the second transaction runs succeeded, execute step S163: by the second transaction record on main chain, for:
Each node of second parallel chain is synchronous respectively, is packaged and executes the second transaction in the second parallel chain of the first user
Account in increase by the first assets;
Each common recognition node of second parallel chain generates the second common recognition respectively and trades and be sent to corresponding main chain node;Its
In, the second common recognition transaction includes the implementing result of the second transaction;
S18: being packaged and executes each second common recognition transaction to carry out the parallel chain common recognition of the second parallel chain.
Specifically, the parallel chain in the application refers to that the parallel chain mechanism proposed based on applicant is (synchronous from main chain
Transaction, knowing together by main chain carries out parallel chain common recognition, etc.) constructed by parallel chain, the main chain of the first parallel chain and second parallel
The main chain of chain is that (it will be understood by those skilled in the art that if based on different main chains, two parallel chains are mutually not for same main chain
" parallel ").
In parallel chain Pa, Pb, 10 abc generations that user's first will be held on parallel chain Pa, are configured with main chain P below
For coin is transferred on parallel chain Pb, exemplary elaboration is carried out to the above method.
In response to the assets transfer operation of user's first, the user terminal of user's first generates the first transaction tx1, and tx1 is sent to
Main chain node.Wherein, tx1 is configured with the title type (title1) for assets transfer, so that main chain and parallel chain identification are handed over
Easy type execute tx1 can by main chain and parallel chain respectively.
In step s 12, main chain node receives, broadcasts and be packaged tx1, passes through parallel chain assets transfer after identifying title1
Contract executes tx1, and tx1 is recorded in main chain block block after knowing together by main chain1In.
Each node of parallel chain Pa synchronizes tx1 (and block respectively1In other parallel chain Pa transaction) and be packaged generation
Parallel chain block block1-a, tx1 is executed, 10 abc tokens of user's first in the account of parallel chain Pa is deducted: deducting successfully,
Then tx1 runs succeeded;Failure is deducted, then tx1 executes failure.
Each common recognition node (for example, common recognition node m1, m2, m3, m4) of parallel chain Pa is respectively according to parallel chain block
block1-aImplementing result generate first common recognition transaction (correspondingly, tx1-a-m1、tx1-a-m2、tx1-a-m3、tx1-a-m4), and send
To main chain node.
In step s 141, main chain node, which is received respectively, broadcasted and is packaged, executes each first common recognition transaction (tx1-a-m1、
tx1-a-m2、tx1-a-m3、tx1-a-m4) to carry out the parallel chain block block of Pa chain1-aParallel chain common recognition.Wherein, parallel chain is total
Knowing principle can be with every parallel chain common recognition patent text that application reference people applies before this, and details are not described herein again.
In step S143, main chain node is according to the parallel chain block block by common recognition1-aImplementing result find
Implementing result of the tx1 on Pa chain, judges whether tx1 runs succeeded on Pa chain:
It is no, then do not execute operation;
It is to then follow the steps S145: increases the transfer power of 10 abc tokens in the main chain account of user's first.
Specifically, in the present embodiment, the increase for shifting power is configured to increase by 10 abc ' tokens in the account, more
It in embodiment, is also configured as increasing by 10 abc tokens freezed in the account, or, other those skilled in the art can be with
The different modes of understanding are, it can be achieved that identical technical effect.
In addition, each first common recognition transaction (tx1-a-m1、tx1-a-m2、tx1-a-m3、tx1-a-m4) be recorded on main chain after, in parallel
Each node of chain Pa synchronizes each first common recognition transaction respectively in local to parallel chain block block respectively1-aCarry out parallel chain certainly
Common recognition.Wherein, parallel chain from common recognition principle in brief that is, be first compared according to the common recognition transaction of each pen, then by comparison result
It is compared with local implementing result, it specifically can be with CN201910157805.X patent text that application reference people applies before this
This, repeats no more.
The user terminal of user's first can generate the second transaction tx2 in advance, periodically (or monitor that main chain increases specified quantity
After block) it is sent to main chain node;Can also by main chain inquire by parallel chain know together tx1 implementing result or
It is inquired through parallel chain from after the implementing result of the tx1 of common recognition by the first parallel chain, regeneration the second transaction tx2 is sent
To main chain node.Wherein, tx2 is also configured with the title type (title2) for assets transfer, for main chain and parallel chain
It identifies type of transaction, execute tx2 can by main chain and parallel chain respectively.
In step s 16, main chain node, which is received, broadcasted and is packaged, executes tx2, deducts 10 from the main chain account of user's first
The transfer of a abc token is weighed:
Failure is deducted, then tx2 executes failure, and tx2 will not be recorded on main chain;
It deducts successfully, then tx2 runs succeeded, and main chain block block is recorded in tx2 after through common recognition2In.
Each node of parallel chain Pb synchronizes tx2 (and block respectively2In other parallel chain Pb transaction) and be packaged generation
Parallel chain block block2-b, tx2 is executed, increases by 10 abc tokens in the account of parallel chain Pb in user's first.
Each common recognition node (for example, common recognition node n1, n2, n3, n4) of parallel chain Pb is respectively according to parallel chain block
block2-bImplementing result generate second common recognition transaction (correspondingly, tx2-b-n1、tx2-b-n2、tx2-b-n3、tx2-b-n4), and send
To main chain node.
In step S18, main chain node, which is received respectively, broadcasted and is packaged, executes each second common recognition transaction (tx2-b-n1、
tx2-b-n2、tx2-b-n3、tx2-b-n4) to carry out the parallel chain block block of Pb chain2-bParallel chain common recognition.
In addition, each second common recognition transaction (tx2-b-n1、tx2-b-n2、tx2-b-n3、tx2-b-n4) be recorded on main chain after, in parallel
Each node of chain Pb synchronizes each second common recognition transaction respectively in local to parallel chain block block respectively2-bCarry out parallel chain certainly
Common recognition.
Above-described embodiment is configured to execute respectively in main chain and parallel chain by the way that the first transaction and second are traded, thus
Judge whether that increasing assets in the main chain account of user turns in the implementing result of the first parallel chain according to the first transaction on main chain
Power is moved, and then judges whether the second transaction holds on main chain according to whether there are enough assets transfers to weigh in the main chain account of user
It goes successfully, and completes the transfer of assets by executing the second transaction on the second parallel chain, realize and completed by two transactions
More convenient and fast assets transfer between parallel chain.
In a preferred embodiment, the second transaction is first parallel for cancelling the transfer of the first assets, the second parallel chain
Chain.
Specifically, equally held on parallel chain Pa 10 abc tokens are transferred on parallel chain Pb with user's first
For, when tx1 is after main chain and parallel chain run succeeded respectively and pass through common recognition, user's first is wanted to cancel 10 abc tokens
Transfer, can choose destruction operation, the user terminal of user's first will be in tx2 when generating tx2 in response to the destruction operation
Second parallel chain is appointed as Pa chain, and tx2 is sent to main chain node, can complete to cancel by same principle.
Above preferred embodiment further completes assets transfer by carrying out transfer to parallel chain of the assets where original
Destruction operation.
Fig. 2 is a kind of parallel chain assets transfer method suitable for parallel chain common recognition node that one embodiment of the invention provides
Flow chart.Method shown in Fig. 2 can cooperate Fig. 1 to execute.
As shown in Fig. 2, in the present embodiment, the present invention also provides a kind of parallel chain moneys suitable for parallel chain common recognition node
Produce transfer method, comprising:
S22: from main chain synchronize the first of current parallel chain trade and be packaged execute it is parallel to deduct the first of the first user
First assets to be transferred in the account of chain;Wherein, the first transaction is recorded on main chain after being packaged execution by main chain node;
S24: generate include first transaction implementing result first common recognition trade and be sent to corresponding main chain node with
For:
Master link clicks through the parallel chain common recognition of parallel chain before the trade, and, first is judged according to the result that parallel chain is known together
Whether transaction runs succeeded on parallel chain: being the transfer power for then increasing by the first assets in the account of the main chain of the first user;
Main chain node is packaged and executes the second transaction, and the transfer of the first assets is deducted in the account of the main chain of the first user
Power: deducting successfully, then the second transaction runs succeeded, by the second transaction record on main chain, for:
Each node of second parallel chain is synchronous respectively, is packaged and executes the second transaction in the second parallel chain of the first user
Account in increase by the first assets;
Each common recognition node of second parallel chain generate respectively the second common recognition trade and be sent to corresponding main chain node for
Carry out the parallel chain common recognition of the second parallel chain;Wherein, the second common recognition transaction includes the implementing result of the second transaction;
S26: each first common recognition transaction that each common recognition node for synchronizing current parallel chain from main chain generates respectively is flat to carry out
Row chain is known together certainly.
Preferably, the second transaction is current parallel chain for cancelling the transfer of the first assets, the second parallel chain.
The assets transfer principle of method shown in Fig. 2 can refer to method shown in FIG. 1, and details are not described herein again.
Fig. 3 is a kind of parallel chain assets transfer side suitable for the non-common recognition node of parallel chain that one embodiment of the invention provides
The flow chart of method.Method shown in Fig. 3 can cooperate Fig. 1-2 to execute.
As shown in figure 3, in the present embodiment, the present invention also provides a kind of parallel chains suitable for the non-common recognition node of parallel chain
Assets transfer method, comprising:
S32: from main chain synchronize the first of current parallel chain trade and be packaged execute it is parallel to deduct the first of the first user
First assets to be transferred in the account of chain;Wherein, the first transaction is recorded on main chain after being packaged execution by main chain node;
S34: each first common recognition transaction of current parallel chain is synchronized to carry out parallel chain from common recognition from main chain;Wherein, first
Common recognition transaction include first transaction implementing result, by the common recognition node of current parallel chain generate and send to main chain node with
For:
Master link clicks through the parallel chain common recognition of parallel chain before the trade, and, first is judged according to the result that parallel chain is known together
Whether transaction runs succeeded on parallel chain: being the transfer power for then increasing by the first assets in the account of the main chain of the first user;
Main chain node is packaged and executes the second transaction, and the transfer of the first assets is deducted in the account of the main chain of the first user
Power: deducting successfully, then the second transaction runs succeeded, by the second transaction record on main chain, for:
Each node of second parallel chain is synchronous respectively, is packaged and executes the second transaction in the second parallel chain of the first user
Account in increase by the first assets;
Each common recognition node of second parallel chain generate respectively the second common recognition trade and be sent to corresponding main chain node for
Carry out the parallel chain common recognition of the second parallel chain;Wherein, the second common recognition transaction includes the implementing result of the second transaction.
Preferably, the second transaction is current parallel chain for cancelling the transfer of the first assets, the second parallel chain.
The assets transfer principle of method shown in Fig. 3 equally can refer to method shown in FIG. 1, and details are not described herein again.
Fig. 4 is the parallel chain assets transfer side that the another kind that one embodiment of the invention provides is suitable for parallel chain common recognition node
The flow chart of method.Method shown in Fig. 4 can cooperate Fig. 1-3 to execute.
As shown in figure 4, in the present embodiment, the present invention also provides another parallel chains for being suitable for parallel chain common recognition node
Assets transfer method, comprising:
S42: the second transaction of current parallel chain is synchronized from main chain and is packaged execution in the current parallel chain of the first user
Account in increase by the first assets;Wherein, the second transaction is packaged by main chain node executes, in the account of the main chain of the first user
It deducts when the transfers of the first assets is weighed successfully and runs succeeded and be recorded on main chain;Transfer power is packaged by main chain node and is executed each
First common recognition transaction judge that first trades the according to the result that parallel chain is known together to carry out the parallel chain common recognition of the first parallel chain
After running succeeded on one parallel chain, increase in the account of the main chain of the first user;First transaction is packaged by main chain node to be executed
To be recorded on main chain, and is synchronized, be packaged and executed respectively to be deducted the first of the first user by each node of the first parallel chain
First assets to be transferred in the account of parallel chain;First common recognition transaction includes the implementing result of the first transaction;
S44: it generates the second common recognition and trades and be sent to corresponding main chain node for carrying out the parallel chain of current parallel chain
Common recognition;Wherein, the second common recognition transaction includes the implementing result of the second transaction;
S46: each second common recognition transaction of current parallel chain is synchronized to carry out parallel chain from common recognition from main chain.
Preferably, the second transaction is the first parallel chain for cancelling the transfer of the first assets, above-mentioned current parallel chain.
The assets transfer principle of method shown in Fig. 4 equally can refer to method shown in FIG. 1, and details are not described herein again.
Fig. 5 is the parallel chain assets transfer that the another kind that one embodiment of the invention provides is suitable for the non-common recognition node of parallel chain
The flow chart of method.Method shown in fig. 5 can cooperate Fig. 1-4 to execute.
As shown in figure 5, in the present embodiment, being suitable for the parallel of the non-common recognition node of parallel chain the present invention also provides another
Chain assets transfer method, comprising:
S52: the second transaction of current parallel chain is synchronized from main chain and is packaged execution in the current parallel chain of the first user
Account in increase by the first assets;Wherein, the second transaction is packaged by main chain node executes, in the account of the main chain of the first user
It deducts when the transfers of the first assets is weighed successfully and runs succeeded and be recorded on main chain;Transfer power is packaged by main chain node and is executed each
First common recognition transaction judge that first trades the according to the result that parallel chain is known together to carry out the parallel chain common recognition of the first parallel chain
After running succeeded on one parallel chain, increase in the account of the main chain of the first user;First transaction is packaged by main chain node to be executed
To be recorded on main chain, and is synchronized, be packaged and executed respectively to be deducted the first of the first user by each node of the first parallel chain
First assets to be transferred in the account of parallel chain;First common recognition transaction includes the implementing result of the first transaction;
S54: each second common recognition transaction of current parallel chain is synchronized to carry out parallel chain from common recognition from main chain;Wherein, second
Common recognition transaction include second transaction implementing result, by the common recognition node of current parallel chain generate and send to main chain node for
Carry out the parallel chain common recognition of current parallel chain.
Preferably, the second transaction is the first parallel chain for cancelling the transfer of the first assets, above-mentioned current parallel chain.
The assets transfer principle of method shown in Fig. 5 equally can refer to method shown in FIG. 1, and details are not described herein again.
Fig. 6 is a kind of structural schematic diagram for equipment that one embodiment of the invention provides.
As shown in fig. 6, present invention also provides a kind of equipment 600, including one or more centres as on the other hand
Unit (CPU) 601 is managed, can be added according to the program being stored in read-only memory (ROM) 602 or from storage section 608
The program that is downloaded in random access storage device (RAM) 603 and execute various movements appropriate and processing.In RAM603, also deposit
It contains equipment 600 and operates required various programs and data.CPU601, ROM602 and RAM603 pass through the phase each other of bus 604
Even.Input/output (I/O) interface 605 is also connected to bus 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, the parallel chain assets transfer method of any of the above-described embodiment description can be with
It is implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer program product comprising visibly
Comprising computer program on a machine-readable medium, computer program includes the journey for executing parallel chain assets transfer method
Sequence code.In such embodiments, which can be downloaded and installed from network by communications portion 609,
And/or it is mounted from detachable media 611.
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 the parallel 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 be
Software program in computer or intelligent movable equipment is set, the hardware device being separately configured is also possible to.Wherein, these lists
The title of member 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 (12)
1. a kind of parallel chain assets transfer method, which is characterized in that the method is suitable for main chain node, which comprises
It is packaged and executes the first transaction, by first transaction record on main chain, for:
Each node of first parallel chain is synchronous respectively, be packaged and executes described first trades to deduct the first of the first user in parallel
First assets to be transferred in the account of chain;
Each common recognition node of first parallel chain generates the first common recognition respectively and trades and be sent to corresponding main chain node;Its
In, the first common recognition transaction includes the implementing result of first transaction;
It is packaged and executes each first common recognition transaction to carry out the parallel chain common recognition of first parallel chain, according to described parallel
The result of chain common recognition judges whether first transaction runs succeeded on first parallel chain:
It is the transfer power for then increasing by first assets in the account of the main chain of first user;
It is packaged and is executed the second transaction, the transfer power of first assets is deducted in the account of the main chain of first user:
It deducts successfully, then second transaction runs succeeded, by second transaction record on main chain, for:
Each node of second parallel chain is synchronous respectively, be packaged and executes second transaction in the second parallel chain of the first user
Account in increase by first assets;
Each common recognition node of second parallel chain generates the second common recognition respectively and trades and be sent to corresponding main chain node;Its
In, the second common recognition transaction includes the implementing result of second transaction;
It is packaged and executes each second common recognition transaction to carry out the parallel chain common recognition of second parallel chain.
2. the method according to claim 1, wherein second transaction is for cancelling turning for first assets
It moves, second parallel chain is first parallel chain.
3. a kind of parallel chain assets transfer method, which is characterized in that the method is suitable for the common recognition node of parallel chain, the side
Method includes:
It synchronizes the first transaction of current parallel chain from main chain and is packaged and execute to deduct the account of the first parallel chain of the first user
In the first assets to be transferred;Wherein, first transaction is recorded on main chain after being packaged execution by main chain node;
Generate include it is described first transaction implementing result first common recognition trade and be sent to corresponding main chain node for:
Master link clicks through the parallel chain common recognition of parallel chain before the trade, and, according to the result judgement that the parallel chain is known together
Whether the first transaction runs succeeded on the parallel chain: being, then in the account of the main chain of first user described in increase
The transfer of first assets is weighed;
Main chain node is packaged and executes the second transaction, and first assets are deducted in the account of the main chain of first user
Transfer power: deducting successfully, then second transaction runs succeeded, by second transaction record on main chain, for:
Each node of second parallel chain is synchronous respectively, be packaged and executes second transaction in the second parallel chain of the first user
Account in increase by first assets;
Each common recognition node of second parallel chain generate respectively the second common recognition trade and be sent to corresponding main chain node for
Carry out the parallel chain common recognition of second parallel chain;Wherein, the second common recognition transaction includes the execution knot of second transaction
Fruit;
Each first common recognition transaction that each common recognition node for synchronizing current parallel chain from main chain generates respectively is to carry out parallel chain from altogether
Know.
4. according to the method described in claim 3, it is characterized in that, second transaction is for cancelling turning for first assets
It moves, second parallel chain is the current parallel chain.
5. a kind of parallel chain assets transfer method, which is characterized in that the method is suitable for the non-common recognition node of parallel chain, described
Method includes:
It synchronizes the first transaction of current parallel chain from main chain and is packaged and execute to deduct the account of the first parallel chain of the first user
In the first assets to be transferred;Wherein, first transaction is recorded on main chain after being packaged execution by main chain node;
Each first common recognition transaction of current parallel chain is synchronized from main chain to carry out parallel chain from common recognition;Wherein, first common recognition
Transaction include it is described first transaction implementing result, by the common recognition node of current parallel chain generate and send to main chain node with
For:
Master link clicks through the parallel chain common recognition of parallel chain before the trade, and, according to the result judgement that the parallel chain is known together
Whether the first transaction runs succeeded on the parallel chain: being, then in the account of the main chain of first user described in increase
The transfer of first assets is weighed;
Main chain node is packaged and executes the second transaction, and first assets are deducted in the account of the main chain of first user
Transfer power: deducting successfully, then second transaction runs succeeded, by second transaction record on main chain, for:
Each node of second parallel chain is synchronous respectively, be packaged and executes second transaction in the second parallel chain of the first user
Account in increase by first assets;
Each common recognition node of second parallel chain generate respectively the second common recognition trade and be sent to corresponding main chain node for
Carry out the parallel chain common recognition of second parallel chain;Wherein, the second common recognition transaction includes the execution knot of second transaction
Fruit.
6. according to the method described in claim 5, it is characterized in that, second transaction is for cancelling turning for first assets
It moves, second parallel chain is the current parallel chain.
7. a kind of parallel chain assets transfer method, which is characterized in that the method is suitable for the common recognition node of parallel chain, the side
Method includes:
The second transaction of current parallel chain is synchronized from main chain and is packaged execution in the account of the current parallel chain of the first user
Increase by first assets;Wherein, second transaction is packaged by main chain node executes, in the account of the main chain of first user
It is deducted in family when the transfers of first assets is weighed successfully and runs succeeded and be recorded on main chain;The transfer power is by the main chain
Node is packaged and executes each first common recognition transaction to carry out the parallel chain common recognition of the first parallel chain, according to parallel chain common recognition
As a result after judging that the first transaction runs succeeded on first parallel chain, increase in the account of the main chain of first user
Add;First transaction is packaged by main chain node to be executed to be recorded on main chain, and by each node of first parallel chain point
It Tong Bu, not be packaged and execute to deduct the first assets to be transferred in the account of the first parallel chain of the first user;Described first
Common recognition transaction includes the implementing result of first transaction;
The second common recognition is generated to trade and be sent to corresponding main chain node for carrying out the parallel chain common recognition of current parallel chain;Its
In, the second common recognition transaction includes the implementing result of second transaction;
Each second common recognition transaction of current parallel chain is synchronized from main chain to carry out parallel chain from common recognition.
8. the method according to the description of claim 7 is characterized in that second transaction is for cancelling turning for first assets
It moves, the current parallel chain is first parallel chain.
9. a kind of parallel chain assets transfer method, which is characterized in that the method is suitable for the non-common recognition node of parallel chain, described
Method includes:
The second transaction of current parallel chain is synchronized from main chain and is packaged execution in the account of the current parallel chain of the first user
Increase by first assets;Wherein, second transaction is packaged by main chain node executes, in the account of the main chain of first user
It is deducted in family when the transfers of first assets is weighed successfully and runs succeeded and be recorded on main chain;The transfer power is by the main chain
Node is packaged and executes each first common recognition transaction to carry out the parallel chain common recognition of the first parallel chain, according to parallel chain common recognition
As a result after judging that the first transaction runs succeeded on first parallel chain, increase in the account of the main chain of first user
Add;First transaction is packaged by main chain node to be executed to be recorded on main chain, and by each node of first parallel chain point
It Tong Bu, not be packaged and execute to deduct the first assets to be transferred in the account of the first parallel chain of the first user;Described first
Common recognition transaction includes the implementing result of first transaction;
Each second common recognition transaction of current parallel chain is synchronized from main chain to carry out parallel chain from common recognition;Wherein, second common recognition
Transaction include it is described second transaction implementing result, by the common recognition node of current parallel chain generate and send to main chain node for
Carry out the parallel chain common recognition of current parallel chain.
10. according to the method described in claim 9, it is characterized in that, second transaction is for cancelling first assets
Transfer, the current parallel chain are first parallel chain.
11. 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-10.
12. 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-10.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910688760.9A CN110473093A (en) | 2019-07-29 | 2019-07-29 | Parallel chain assets transfer method, equipment and storage medium |
PCT/CN2020/097846 WO2021017693A1 (en) | 2019-07-29 | 2020-06-24 | Method for asset transfer between parachains, and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910688760.9A CN110473093A (en) | 2019-07-29 | 2019-07-29 | Parallel chain assets transfer method, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110473093A true CN110473093A (en) | 2019-11-19 |
Family
ID=68509860
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910688760.9A Pending CN110473093A (en) | 2019-07-29 | 2019-07-29 | Parallel chain assets transfer method, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110473093A (en) |
WO (1) | WO2021017693A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111432026A (en) * | 2020-04-14 | 2020-07-17 | 杭州复杂美科技有限公司 | Parallel chain transaction execution method, device and storage medium |
WO2021017693A1 (en) * | 2019-07-29 | 2021-02-04 | 杭州复杂美科技有限公司 | Method for asset transfer between parachains, and device and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107742210A (en) * | 2017-10-13 | 2018-02-27 | 布比(北京)网络技术有限公司 | Across the chain fund transfer system and method for a kind of different blocks interchain |
CN107909369A (en) * | 2017-10-13 | 2018-04-13 | 布比(北京)网络技术有限公司 | Based on the common recognition method, apparatus merchandised across chain and storage medium |
CN109325762A (en) * | 2018-08-30 | 2019-02-12 | 杭州复杂美科技有限公司 | Across the chain method of commerce of parallel chain, equipment and storage medium |
CN109345387A (en) * | 2018-09-04 | 2019-02-15 | 湖南宸瀚信息科技有限责任公司 | Across the chain method of commerce of block chain, across chain communication device and storage medium |
CN109377365A (en) * | 2018-10-18 | 2019-02-22 | 杭州复杂美科技有限公司 | A kind of assets transfer method, equipment and storage medium |
CN109493015A (en) * | 2018-10-18 | 2019-03-19 | 杭州复杂美科技有限公司 | A kind of assets transfer method, equipment and storage medium |
CN109831514A (en) * | 2019-03-02 | 2019-05-31 | 杭州复杂美科技有限公司 | Parallel chain common recognition method, data exception processing method, equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10762479B2 (en) * | 2017-04-05 | 2020-09-01 | Samsung Sds Co., Ltd. | Method and system for processing blockchain-based real-time transaction |
CN109271446B (en) * | 2018-08-30 | 2020-10-23 | 杭州复杂美科技有限公司 | Parallel chain data synchronization method, equipment and storage medium |
CN110473093A (en) * | 2019-07-29 | 2019-11-19 | 杭州复杂美科技有限公司 | Parallel chain assets transfer method, equipment and storage medium |
-
2019
- 2019-07-29 CN CN201910688760.9A patent/CN110473093A/en active Pending
-
2020
- 2020-06-24 WO PCT/CN2020/097846 patent/WO2021017693A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107742210A (en) * | 2017-10-13 | 2018-02-27 | 布比(北京)网络技术有限公司 | Across the chain fund transfer system and method for a kind of different blocks interchain |
CN107909369A (en) * | 2017-10-13 | 2018-04-13 | 布比(北京)网络技术有限公司 | Based on the common recognition method, apparatus merchandised across chain and storage medium |
CN109325762A (en) * | 2018-08-30 | 2019-02-12 | 杭州复杂美科技有限公司 | Across the chain method of commerce of parallel chain, equipment and storage medium |
CN109345387A (en) * | 2018-09-04 | 2019-02-15 | 湖南宸瀚信息科技有限责任公司 | Across the chain method of commerce of block chain, across chain communication device and storage medium |
CN109377365A (en) * | 2018-10-18 | 2019-02-22 | 杭州复杂美科技有限公司 | A kind of assets transfer method, equipment and storage medium |
CN109493015A (en) * | 2018-10-18 | 2019-03-19 | 杭州复杂美科技有限公司 | A kind of assets transfer method, equipment and storage medium |
CN109831514A (en) * | 2019-03-02 | 2019-05-31 | 杭州复杂美科技有限公司 | Parallel chain common recognition method, data exception processing method, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
DR.GAVIN WOOD ET.AL: "Polkadot:vision for a heterogeneous multi-chain framework", 《HTTPS://POLKADOT.NETWORK/POLKADOTPAPER.PDF》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021017693A1 (en) * | 2019-07-29 | 2021-02-04 | 杭州复杂美科技有限公司 | Method for asset transfer between parachains, and device and storage medium |
CN111432026A (en) * | 2020-04-14 | 2020-07-17 | 杭州复杂美科技有限公司 | Parallel chain transaction execution method, device and storage medium |
CN111432026B (en) * | 2020-04-14 | 2022-10-28 | 杭州复杂美科技有限公司 | Parallel chain transaction execution method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2021017693A1 (en) | 2021-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10862960B2 (en) | Blockchain-based property management | |
CN106228446B (en) | Transaction in assets plateform system and method based on privately owned block chain | |
CN109325762A (en) | Across the chain method of commerce of parallel chain, equipment and storage medium | |
CN109886677B (en) | Commodity purchasing method and device based on block chain | |
EP4089623A1 (en) | Blockchain-implemented method and system | |
CN109377365A (en) | A kind of assets transfer method, equipment and storage medium | |
CN109242453A (en) | A kind of method of commerce and system for depositing card based on centralization clearing and block chain | |
CN109493024A (en) | Digital asset trustship method, equipment and storage medium | |
CN109558454A (en) | Parallel chain digs mine common recognition method, equipment and storage medium | |
CN110084601A (en) | Parallel chain main chain stateful transaction synchronous method, equipment and storage medium | |
CN109377216A (en) | A kind of method of commerce and system for depositing card based on centralization clearing and block chain | |
CN104794832A (en) | Information processing apparatus and control method thereof | |
CN110428332A (en) | A kind of across the chain method of commerce of parallel chain, equipment and storage medium | |
CN109687953A (en) | Classification of business transaction method, equipment and storage medium | |
CN110443708A (en) | Parallel chain method of commerce, equipment and storage medium | |
CN109784888A (en) | Red packet processing method, equipment and storage medium | |
CN109359959A (en) | Across chain assets transfer method, equipment and storage medium | |
CN108921559A (en) | Across chain transaction method of calibration, equipment and storage medium | |
CN110473093A (en) | Parallel chain assets transfer method, equipment and storage medium | |
CN110598934A (en) | Method for recommending shopping routes and related device | |
CN105321065A (en) | Multi-destination routing of transactions | |
CN109741052A (en) | Red packet processing method, equipment and storage medium | |
CN109948960A (en) | Remove storehouse outbound, storage method and device and electronic equipment and storage medium | |
CN109493015A (en) | A kind of assets transfer method, equipment and storage medium | |
CN109934566A (en) | Red packet processing 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 |