CN110428332A - A kind of across the chain method of commerce of parallel chain, equipment and storage medium - Google Patents
A kind of across the chain method of commerce of parallel chain, equipment and storage medium Download PDFInfo
- Publication number
- CN110428332A CN110428332A CN201910688348.7A CN201910688348A CN110428332A CN 110428332 A CN110428332 A CN 110428332A CN 201910688348 A CN201910688348 A CN 201910688348A CN 110428332 A CN110428332 A CN 110428332A
- Authority
- CN
- China
- Prior art keywords
- transaction
- chain
- node
- main chain
- common recognition
- 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
- G06Q20/102—Bill distribution or payments
-
- 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
-
- 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/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
-
- 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 across chain method of commerce of parallel chain, this method comprises: receiving the first trading group and being packed into the first block and freeze the first assets of the first transaction on exchange after the enforceability for confirming the first trading group, and the first trading group is recorded on main chain;The common recognition for receiving the verifying node transmission of corresponding first parallel chain is traded and is recorded on main chain to freeze result to basis after the second block progress parallel chain common recognition and execute the first transaction;The execution that parallel chain determines the second transaction from after knowing together successfully according to the implementing result of the first transaction is carried out so that parallel chain node obtains each common recognition transaction.Across the chain method of commerce of parallel chain, equipment and the storage medium that many embodiments of the present invention provide by common recognition transaction that each parallel chain node is sent from corresponding main chain node synchronize come carry out parallel chain from common recognition, and in the execution for completing parallel chain transaction from after knowing together, this method can highly guarantee the atomicity of parallel chain transaction.
Description
Technical field
This application involves block chain financial fields, and in particular to a kind of across the chain method of commerce of parallel chain, equipment and storage are situated between
Matter.
Background technique
The method of commerce between parallel chain main chain is mainly the assets for passing through main chain and first locking main chain transaction at present, is then put down
Row chain node pulls the parallel chain transaction of this parallel chain to corresponding main chain node, sends out after then directly executing the transaction of parallel chain
Send common recognition transaction to main chain node so that main chain node executes the first transaction, this method is done after parallel chain side executes transaction
Real transfer operation, not by common recognition, it is possible to which result of knowing together is the case where main chain is unsuccessfully, in this way in parallel chain side
It is one-sided successful, cheating is be easy to cause in implementation process.
Summary of the invention
In view of drawbacks described above in the prior art or deficiency, it is intended to provide a kind of parallel chain of height guarantee transaction atomicity
Across chain method of commerce, equipment and storage medium.
In a first aspect, the present invention provides a kind of across chain method of commerce of parallel chain, this method is suitable for parallel chain and verifies node
Corresponding main chain node, which comprises
It receives the first trading group and is packed into the first block and freezes first after the enforceability for confirming the first trading group
First assets of transaction on exchange, and the first trading group is recorded on main chain so that each node of the first parallel chain is respectively from right
The main chain node answered obtains and confirms the second assets, the first parallel chain that freeze the second transaction on exchange after the second transaction is executable
Verifying node difference chain linked to owner send common recognition transaction;Wherein, the first trading group includes the first transaction on main chain and first flat
Second on row chain trades, and is packaged and is generated by brining server-side or wallet terminal together, common recognition transaction is freezed to tie including the second assets
Fruit;
The common recognition for receiving the verifying node transmission of corresponding first parallel chain is traded and is recorded on main chain to the secondth area
Basis freezes the first transaction of result execution after block carries out parallel chain common recognition: if freezing result is successfully, to execute the first transaction
Transfer operation;Otherwise it thaws the first assets;Parallel chain is carried out from after knowing together successfully so that parallel chain node obtains each common recognition transaction
The execution of the second transaction is determined according to the implementing result of the first transaction, the second block includes common recognition transaction.
Further, it receives the first trading group and the first trading group is recorded after the enforceability for confirming the first trading group
On main chain further include:
If the first trading group is in bifurcated block, the first block of rollback, for the synchronous main chain of the first parallel chain node
Rolling back action.
Further, after the record operation of the first trading group of rollback further include:
Confirm the first trading group whether within the first validity period of setting: if so, return receive the first trading group and
Freeze the first assets of the first transaction on exchange after confirming the enforceability of the first trading group, and master is recorded in the first trading group
So that each node of the first parallel chain is obtained from corresponding main chain node respectively and confirms that the second transaction is freezed after executable on chain
Second assets of the second transaction on exchange, the verifying node of the first parallel chain are packaged common recognition transaction and subsequent step respectively.
Second aspect, the present invention provide a kind of across chain method of commerce of parallel chain, and this method is suitable for non-parallel chain node pair
The main chain node answered, which comprises
It receives the first trading group and is packed into the first block and freezes first after the enforceability for confirming the first trading group
First assets of transaction on exchange, and the first trading group is recorded on main chain so that each node of the first parallel chain is respectively from right
The main chain node answered obtains and confirms the second assets, the first parallel chain that freeze the second transaction on exchange after the second transaction is executable
Verifying node difference chain linked to owner send common recognition transaction to corresponding main chain node on the transaction record to main chain that will know together with
It knows together to common recognition transaction;Wherein, the first trading group includes that the first transaction on main chain and second on the first parallel chain is handed over
Easily, it is packaged and is generated by brining server-side or wallet terminal together, common recognition transaction freezes result including the second assets;
The common recognition for receiving the verifying node transmission of corresponding first parallel chain is traded and is recorded on main chain to the secondth area
Basis freezes the first transaction of result execution after block carries out parallel chain common recognition: if freezing result is successfully, to execute the first transaction
Transfer operation;Otherwise it thaws the first assets;Parallel chain is carried out from after knowing together successfully so that parallel chain node obtains each common recognition transaction
The execution of the second transaction is determined according to the implementing result of the first transaction, the second block includes common recognition transaction.
Further, it receives the first trading group and the first trading group is recorded after the enforceability for confirming the first trading group
On main chain further include:
If the first trading group is in bifurcated block, the first block of rollback, for the synchronous main chain of the first parallel chain node
Rolling back action.
Further, after the record operation of the first trading group of rollback further include:
Confirm the first trading group whether within the first validity period of setting: if so, return receive the first trading group and
Freeze the first assets of the first transaction on exchange after confirming the enforceability of the first trading group, and master is recorded in the first trading group
So that each node of the first parallel chain is obtained from corresponding main chain node respectively and confirms that the second transaction is freezed after executable on chain
Second assets of the second transaction on exchange, the verifying node of the first parallel chain are packaged common recognition transaction and subsequent step respectively.
The third aspect, the present invention provide a kind of across chain method of commerce of parallel chain, and this method is suitable for testing for the first parallel chain
Demonstrate,prove node, which comprises
The second transaction in the first trading group is obtained from corresponding main chain node;Wherein, the first trading group includes on main chain
First transaction and the first parallel chain on second transaction, by bring together server-side or wallet terminal packing generate and send main chain
On node, by the first assets for freezing the first transaction on exchange after the enforceability of received main chain node the first trading group of confirmation
And the first trading group is recorded on main chain;
Freeze the second assets of the second transaction on exchange after the enforceability of the second transaction of confirmation;
Being packaged the second block including common recognition transaction will know together on transaction record to main chain to corresponding main chain node
Basis freezes the first transaction of result execution after carrying out parallel chain common recognition to the second block for each main chain node: being if freezing result
Success then executes the transfer operation of the first transaction;Otherwise it thaws the first assets;Wherein, common recognition transaction includes the jelly of the second assets
Junction fruit;
Each common recognition transaction, which is obtained, from corresponding main chain node carries out parallel chain holding according to the first transaction from after knowing together successfully
Row result determines the execution of the second transaction.
Further, by master is recorded in the first trading group after the enforceability of received main chain node the first trading group of confirmation
Include: on chain
The rolling back action of synchronous main chain;Wherein, rolling back action is in bifurcated block in the first trading group of master link point discovery
In, then it is executed after the record operation of the first trading group of rollback.
Further, common recognition transaction is obtained from corresponding main chain node further include: if obtaining each common recognition Fail Transaction, connect weight
It is new to send common recognition transaction.
Fourth 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 method of commerce of parallel chain that embodiment provides.
5th 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 method of commerce of parallel chain that each embodiment provides according to the present invention.
Across the chain method of commerce of parallel chain, equipment and the storage medium that many embodiments of the present invention provide are by will be on main chain
The transaction of parallel chain is freezed again after freezing and common recognition transaction is sent to main chain by transaction, then again sends each parallel chain node
Common recognition transaction from corresponding main chain node synchronize carry out parallel chain from know together, and from know together after complete parallel chain transaction
Execution, this method can highly guarantee parallel chain transaction atomicity, while also avoid transaction cheating the case where appearance.
Across the chain method of commerce of parallel chain, equipment and the storage medium that many embodiments of the present invention provide are further by from master
The common recognition Fail Transaction that each parallel chain node is sent is obtained on chain, parallel chain node retransmits common recognition transaction again, reaches common understanding
To execute subsequent across chain transaction flow, it is further ensured that the atomicity of transaction.
Across the chain method of commerce of parallel chain of many embodiments offers of the present invention, equipment further pass through parallel with storage medium
Chain guarantees that block trading group can quickly guarantee atomicity of trading in rollback from common recognition, reduces the waiting time.
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 flow chart of a kind of parallel chain across chain method of commerce that one embodiment of the invention provides.
Fig. 2 is schematic diagram of a scenario of one embodiment of the invention parallel chain from common recognition.
Fig. 3 is a kind of flow chart of preferred embodiment of method shown in Fig. 1.
Fig. 4 is flow chart of another parallel chain across chain method of commerce that one embodiment of the invention provides.
Fig. 5 is a kind of flow chart of preferred embodiment of method shown in Fig. 4.
Fig. 6 is flow chart of another parallel chain across chain method of commerce that one embodiment of the invention provides.
Fig. 7 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.
Parallel chain is from mechanism of knowing together: assuming that four parallel chains that a, b, c, d are parallel chain M verify node, e is parallel chain M
Parallel chain non-authentication node, the corresponding main chain node of a be A, the corresponding main chain node of b be B, the corresponding main chain node of c be C, d
Corresponding main chain node is D, and the corresponding main chain node of e is E;So a to A node obtain common recognition transaction (txa, txb, txc,
Txd, wherein txa is sent by parallel chain node a, txb, txc, and txd is the broadcast acquisition for receiving other main chain nodes), it calculates
Common recognition transaction (txa, txb, txc, txd), calculation is similar with the method for main chain execution common recognition transaction in parallel chain common recognition, i.e.,
Calculated result identical more than 2/3 result is implementing result, and implementing result and parallel chain local computing result are carried out pair
Than if unanimously, knowing together successfully certainly;Other parallel chain nodes similarly, are traded only for all common recognitions of non-authentication node e
From broadcast.
Fig. 1 is flow chart of a kind of parallel chain across chain method of commerce that one embodiment of the invention provides.
As shown in Figure 1, in the present embodiment, the present invention provides a kind of across chain method of commerce of parallel chain, this method is suitable for
Parallel chain verifies the corresponding main chain node of node, which comprises
S11, it receives the first trading group and is packed into the first block and freezes after the enforceability for confirming the first trading group
First assets of the first transaction on exchange, and the first trading group is recorded on main chain so that each node of the first parallel chain is distinguished
The second assets for freezing the second transaction on exchange after the second transaction is executable, first flat are obtained and confirmed from corresponding main chain node
The verifying node difference chain linked to owner of row chain sends common recognition transaction;Wherein, the first trading group includes the first transaction and the on main chain
The second transaction on one parallel chain is packaged and is generated by brining server-side or wallet terminal together, and common recognition transaction includes the jelly of the second assets
Junction fruit;
S12, the verifying node transmission for receiving corresponding first parallel chain common recognition trade and be recorded on main chain to the
Basis freezes the first transaction of result execution after two blocks carry out parallel chain common recognition: if freezing result is successfully, to execute first and hand over
Easy transfer operation;Otherwise it thaws the first assets;For parallel chain node obtain the transaction of each common recognition carry out parallel chain from know together at
The execution of the second transaction is determined after function according to the implementing result of the first transaction, the second block includes common recognition transaction.
Specifically, user's first wants to sell the user integral on main chain to exchange the moon cake certificate on the first parallel chain for, issues
Trade txFirst, moon cake certificate of the desired sale of user's second oneself on the first parallel chain to exchange the user integral on main chain for, hand over by publication
Easy txSecond, at this point, brining server-side together will trade txFirstAnd txSecondIt is brought together to generate the first trading group (txFirst, txSecond).And it will transaction
Group is sent to main chain node, main chain node verification txFirstEnforceability, as user's first account balance in whether have and meet txFirst
The first assets traded are, then by first freezing of assets.Parallel chain node a is according to trading group acquisition of information to the second transaction
txSecondAfterwards, judge whether the account of user's second has and meet txSecondThe second assets, if so, freezing the second assets, and send common recognition
Transaction tx1 carries out parallel chain common recognition to corresponding main chain node A, and whether judgement freezes result after parallel chain is known together successfully
The first transaction is executed if success for success, i.e., the first assets of user's first is deducted from main chain, is freezed before otherwise thawing
The first assets.Certainly common recognition scene as shown in Figure 2, parallel chain node a chain linked to owner node obtain each common recognition that each node is sent
Transaction (tx1, tx2, tx3, wherein tx2, tx3 are to receive main chain node B, the transaction broadcast that C is issued), executes each common recognition transaction
(tx1, tx2, tx3), and by the implementing result and local computing Comparative result, if unanimously, from knowing together successfully, then according to first
The implementing result of transaction executes the second transaction, and the first assets of the even first transaction deduct successfully, then deducts the second of user's second
Assets complete transaction;If the first assets of the first transaction are defrosted, parallel chain node does not deal with the account of user's second.
In step s 11, parallel chain common recognition node chain linked to owner sends common recognition transaction and arrives corresponding main chain node, the master link
Point also receives the common recognition that other main chain nodes receive and oneself corresponding parallel chain for broadcasting is sent simultaneously and trades;For parallel chain
Non-authentication node (permission of this parallel chain transaction such as d) is only executed, without sending the permission of common recognition transaction, but still can
To obtain each common recognition transaction (tx1, tx2, tx3) from corresponding main chain node to carry out parallel chain from common recognition.
Fig. 3 is a kind of flow chart of preferred embodiment of method shown in Fig. 1.As shown in figure 3, step S11 further include:
If the first trading group is in bifurcated block, the first block of rollback, for the synchronous main chain of the first parallel chain node
Rolling back action.
Specifically, being led if the first transaction of the first trading group has been found to the block in bifurcated before execution
Before the chain node direct rollback bifurcated block to bifurcated, for freezing the behaviour of the second assets before corresponding parallel chain node rollback
Make to return back to the initial conditions of the first trading group.
It is further preferred that confirming the first trading group whether within the first validity period of setting after the completion of rolling back action: if
It is then to return to receive the first trading group and freeze the first of the first transaction on exchange after the enforceability for confirming the first trading group
Assets, and the first trading group is recorded on main chain so that each node of the first parallel chain is obtained from corresponding main chain node respectively
And confirms and freeze the second assets of the second transaction on exchange, the verifying node chain linked to owner of the first parallel chain after the second transaction is executable
Send common recognition transaction and subsequent step.
Specifically, the validity that the first trading group can be set, before main chain rolls back to trading group, main chain node verification
The validity period of first trading group re-executes the first trading group and subsequent step if being not above the validity period;If being more than
Validity period, then user needs to retransmit transaction txFirst, txSecond。
Fig. 4 is flow chart of another parallel chain across chain method of commerce that one embodiment of the invention provides.As shown in figure 4,
In the present embodiment, across the chain method of commerce of a kind of parallel chain, this method are suitable for the corresponding main chain node of non-parallel chain node, institute
The method of stating includes:
S21, it receives the first trading group and is packed into the first block and freezes after the enforceability for confirming the first trading group
First assets of the first transaction on exchange, and the first trading group is recorded on main chain so that each node of the first parallel chain is distinguished
The second assets for freezing the second transaction on exchange after the second transaction is executable, first flat are obtained and confirmed from corresponding main chain node
The verifying node difference chain linked to owner of row chain sends common recognition transaction to corresponding main chain node so that the transaction record that will know together is to main chain
On with to common recognition transaction know together;Wherein, the first trading group includes the first transaction on main chain and the on the first parallel chain
Two trade, and are packaged and are generated by brining server-side or wallet terminal together, common recognition transaction freezes result including the second assets;
S22, the verifying node transmission for receiving corresponding first parallel chain common recognition trade and be recorded on main chain to the
Basis freezes the first transaction of result execution after two blocks carry out parallel chain common recognition: if freezing result is successfully, to execute first and hand over
Easy transfer operation;Otherwise it thaws the first assets;For parallel chain node obtain the transaction of each common recognition carry out parallel chain from know together at
The execution of the second transaction is determined after function according to the implementing result of the first transaction, the second block includes common recognition transaction.
Specifically, across the chain transaction principles of method shown in Fig. 4 and method shown in Fig. 1 are essentially identical, and difference is, executes figure
The corresponding parallel chain node of the main chain node of method shown in 4 and non-authentication node, therefore corresponding parallel chain link will not be received
The common recognition transaction that point is sent, but the main chain node for executing method shown in Fig. 1 is cooperated to know together the first block information.
Fig. 5 is a kind of flow chart of preferred embodiment of method shown in Fig. 4.As shown in figure 3, step S21 further include:
If the first trading group is in bifurcated block, the first block of rollback, for the synchronous main chain of the first parallel chain node
Rolling back action.
Specifically, being led if the first transaction of the first trading group has been found to the block in bifurcated before execution
Before the chain node direct rollback bifurcated block to bifurcated, for freezing the behaviour of the second assets before corresponding parallel chain node rollback
Make to return back to the initial conditions of the first trading group.
It is further preferred that confirming the first trading group whether within the first validity period of setting after the completion of rolling back action: if
It is then to return to receive the first trading group and freeze the first of the first transaction on exchange after the enforceability for confirming the first trading group
Assets, and the first trading group is recorded on main chain so that each node of the first parallel chain is obtained from corresponding main chain node respectively
And confirm the verifying nodes of the second assets, the first parallel chain of freezing the second transaction on exchange after the second transaction is executable respectively to
Main chain node sends common recognition transaction and subsequent step.
Specifically, the difference of method shown in method and Fig. 3 shown in Fig. 5 is consistent with the difference of method shown in Fig. 4 and Fig. 1, In
This is repeated no more.
Fig. 6 is flow chart of another parallel chain across chain method of commerce that one embodiment of the invention provides.As shown in fig. 6,
In the present embodiment, across the chain method of commerce of a kind of parallel chain, this method are suitable for the verifying node of the first parallel chain, the method
Include:
S31, it trades from second in corresponding main chain node the first trading group of acquisition;Wherein, the first trading group includes master
The first transaction on chain and the second transaction on the first parallel chain are generated and sent by brining server-side or the packing of wallet terminal together
On main chain node, freeze the first of the first transaction on exchange after the enforceability of the first trading group is confirmed by received main chain node
Simultaneously the first trading group is recorded on main chain for assets;
Freeze the second assets of the second transaction on exchange after the enforceability that S32, confirmation second are traded;
S33, be packaged include common recognition transaction the second block will know together to corresponding main chain node transaction record to lead
Basis freezes the first transaction of result execution after carrying out parallel chain common recognition to the second block for each main chain node on chain: if freezing to tie
Fruit is successfully, then to execute the transfer operation of the first transaction;Otherwise it thaws the first assets;Wherein, common recognition transaction includes the second assets
Freeze result;
S34, each common recognition transaction progress parallel chain is obtained from after knowing together successfully according to the first transaction from corresponding main chain node
Implementing result determine the execution of the second transaction.
Specifically, the implementation principle of method shown in Fig. 6 is identical as the implementation principle of method shown in Fig. 1, and details are not described herein.
Fig. 7 is a kind of structural schematic diagram for equipment that one embodiment of the invention provides.
As shown in fig. 7, present invention also provides a kind of equipment 700, including one or more centres as on the other hand
Unit (CPU) 701 is managed, can be added according to the program being stored in read-only memory (ROM) 702 or from storage section 708
The program that is downloaded in random access storage device (RAM) 703 and execute various movements appropriate and processing.In RAM703, also deposit
It contains equipment 700 and operates required various programs and data.CPU701, ROM702 and RAM703 pass through the phase each other of bus 704
Even.Input/output (I/O) interface 705 is also connected to bus 704.
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.;
And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because
The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon
Computer program be mounted into storage section 708 as needed.
Particularly, in accordance with an embodiment of the present disclosure, across the chain method of commerce of parallel chain 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, the computer program includes for executing across the chain method of commerce of parallel chain
Program code.In such embodiments, which can be downloaded and be pacified from network by communications portion 709
Dress, and/or be mounted from detachable media 711.
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 method of commerce of parallel chain 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 (11)
1. a kind of across chain method of commerce of parallel chain, which is characterized in that the method is suitable for the corresponding master of parallel chain verifying node
Chain node, which comprises
It receives the first trading group and is packed into the first block and freezes after the enforceability for confirming first trading group described
First assets of the first transaction on exchange, and each node on main chain for the first parallel chain is recorded in first trading group
It obtains and confirms from corresponding main chain node respectively and freeze the of second transaction on exchange after second transaction is executable
The verifying node difference chain linked to owner transmission common recognition transaction of two assets, first parallel chain;Wherein, first trading group includes
The first transaction on main chain and the second transaction on the first parallel chain are packaged and are generated by brining server-side or wallet terminal together, described
Common recognition transaction freezes result including second assets;
The common recognition that the verifying node of corresponding first parallel chain is sent is received to trade and be recorded on the main chain to the
Two blocks carry out parallel chain common recognition after freeze according to result execute it is described first trade: if it is described freeze result be successfully,
Then execute the transfer operation of first transaction;Otherwise it thaws first assets;So that the acquisition of parallel chain node is each described total
Know transaction and carries out the execution that parallel chain determines the second transaction from after knowing together successfully according to the implementing result of first transaction, it is described
Second block includes the common recognition transaction.
2. the method according to claim 1, wherein the first trading group of the reception and confirm it is described first hand over
First trading group is recorded on main chain after the enforceability easily organized further include:
If first trading group is in bifurcated block, the first block described in rollback, for the first parallel chain node
The rolling back action of synchronous main chain.
3. according to the method described in claim 2, it is characterized in that, also being wrapped after the record operation of the first trading group of the rollback
It includes:
Confirm first trading group whether within the first validity period of setting: if so, returning to the first trading group of the reception
And freeze the first assets of first transaction on exchange after the enforceability for confirming first trading group, and by described the
One trading group is recorded on main chain so that each node of the first parallel chain is obtained from corresponding main chain node respectively and it is described to confirm
Freeze the second assets of second transaction on exchange, the verifying node difference of first parallel chain after second transaction is executable
It is packaged common recognition transaction and subsequent step.
4. a kind of across chain method of commerce of parallel chain, which is characterized in that the method is suitable for the corresponding main chain of non-parallel chain node
Node, which comprises
It receives the first trading group and is packed into the first block and freezes after the enforceability for confirming first trading group described
First assets of the first transaction on exchange, and each node on main chain for the first parallel chain is recorded in first trading group
It obtains and confirms from corresponding main chain node respectively and freeze the of second transaction on exchange after second transaction is executable
Two assets, first parallel chain verifying node difference chain linked to owner send common recognition transaction to corresponding main chain node for by institute
It states on common recognition transaction record to main chain to know together to common recognition transaction;Wherein, first trading group includes on main chain
The first transaction and the first parallel chain on the second transaction, be packaged by brining server-side or wallet terminal together and generated, the common recognition friendship
Easily freeze result including second assets;
The common recognition for receiving the verifying node transmission of corresponding first parallel chain is traded and is recorded on the main chain to institute
State the second block carry out parallel chain common recognition after freeze according to result execute it is described first transaction: if it is described freeze result at
Function then executes the transfer operation of first transaction;Otherwise it thaws first assets;So that the acquisition of parallel chain node is each described
Common recognition transaction carries out the execution that parallel chain determines the second transaction from after knowing together successfully according to the implementing result of first transaction, institute
Stating the second block includes the common recognition transaction.
5. according to the method described in claim 4, it is characterized in that, the first trading group of the reception and confirm it is described first hand over
First trading group is recorded on main chain after the enforceability easily organized further include:
If first trading group is in bifurcated block, the first block described in rollback, for the first parallel chain node
The rolling back action of synchronous main chain.
6. according to the method described in claim 5, it is characterized in that, also being wrapped after the record operation of the first trading group of the rollback
It includes:
Confirm first trading group whether within the first validity period of setting: if so, returning to the first trading group of the reception
And freeze the first assets of first transaction on exchange after the enforceability for confirming first trading group, and by described the
One trading group is recorded on main chain so that each node of the first parallel chain is obtained from corresponding main chain node respectively and it is described to confirm
Freeze the second assets of second transaction on exchange, the verifying node difference of first parallel chain after second transaction is executable
It is packaged common recognition transaction and subsequent step.
7. a kind of across chain method of commerce of parallel chain, which is characterized in that the method is suitable for the verifying node of the first parallel chain, institute
The method of stating includes:
The second transaction in the first trading group is obtained from corresponding main chain node;Wherein, first trading group includes on main chain
The first transaction and first parallel chain on second transaction, by bring together server-side or wallet terminal be packaged generate it is concurrent
It is sent on main chain node, freezes first transaction after the enforceability of first trading group is confirmed by received main chain node
Simultaneously first trading group is recorded on main chain for the first assets for being traded;
Freeze the second assets of second transaction on exchange after confirming the enforceability of second transaction;
Be packaged include common recognition transaction the second block to corresponding main chain node for will be on the common recognition transaction record to main chain
Freeze result execution described first according to after carrying out parallel chain common recognition to second block for each main chain node
Transaction: if the result of freezing is successfully, to execute the transfer operation of first transaction;Otherwise it thaws first assets;
Wherein, the common recognition transaction freezes result including second assets;
Each common recognition transaction, which is obtained, from corresponding main chain node carries out parallel chain from after knowing together successfully according to first transaction
Implementing result determine the execution of the second transaction.
8. the method according to the description of claim 7 is characterized in that described by received main chain node confirmation first transaction
First trading group is recorded on main chain after the enforceability of group and includes:
Synchronize the rolling back action of the main chain;Wherein, the rolling back action is in first trading group of master link point discovery
In bifurcated block, then executed after the record operation of the first trading group described in rollback.
9. according to the method described in claim 8, it is characterized in that, described also wrap from the acquisition common recognition transaction of corresponding main chain node
It includes:
If obtaining each common recognition Fail Transaction, connects and retransmit the common recognition transaction.
10. 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 method as claimed in any one of claims 1-9 wherein.
11. 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-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910688348.7A CN110428332A (en) | 2019-07-29 | 2019-07-29 | A kind of across the chain method of commerce of parallel chain, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910688348.7A CN110428332A (en) | 2019-07-29 | 2019-07-29 | A kind of across the chain method of commerce of parallel chain, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110428332A true CN110428332A (en) | 2019-11-08 |
Family
ID=68412850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910688348.7A Pending CN110428332A (en) | 2019-07-29 | 2019-07-29 | A kind of across the chain method of commerce of parallel chain, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110428332A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111597077A (en) * | 2020-05-13 | 2020-08-28 | 腾讯科技(深圳)有限公司 | Data processing method, data processing device, computer equipment and storage medium |
CN112184228A (en) * | 2020-09-30 | 2021-01-05 | 杭州复杂美科技有限公司 | Asset exchange method, device and storage medium |
CN112258184A (en) * | 2020-10-28 | 2021-01-22 | 成都质数斯达克科技有限公司 | Method and device for freezing area block chain network, electronic equipment and readable storage medium |
WO2021139542A1 (en) * | 2020-01-07 | 2021-07-15 | Alipay Labs (singapore) Pte. Ltd. | Methods and devices for providing atomic transaction on blockchain |
WO2021139392A1 (en) * | 2020-01-07 | 2021-07-15 | Alipay Labs (singapore) Pte. Ltd. | Methods and devices for providing atomic transaction on blockchain |
CN113537991A (en) * | 2021-09-16 | 2021-10-22 | 中国信息通信研究院 | Cross-chain transaction ordered execution method and cross-chain system |
CN114331718A (en) * | 2021-12-21 | 2022-04-12 | 弥达斯科技(深圳)有限公司 | Cross-chain transaction method, device, equipment, storage medium and computer program product |
WO2022262510A1 (en) * | 2021-06-18 | 2022-12-22 | 支付宝(杭州)信息技术有限公司 | Method and apparatus for synchronizing cross-blockchain transactions |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107862216A (en) * | 2017-10-13 | 2018-03-30 | 布比(北京)网络技术有限公司 | Method for secret protection, device and the storage medium merchandised for anonymity across chain |
WO2018076760A1 (en) * | 2016-10-27 | 2018-05-03 | 上海亿账通区块链科技有限公司 | Block chain-based transaction processing method, system, electronic device, and storage medium |
CN108269190A (en) * | 2018-01-17 | 2018-07-10 | 深圳四方精创资讯股份有限公司 | Across chain method and its system based on across chain relaying platform |
CN109214818A (en) * | 2017-06-30 | 2019-01-15 | 华为技术有限公司 | Across the chain method of commerce of one kind and device |
CN109325762A (en) * | 2018-08-30 | 2019-02-12 | 杭州复杂美科技有限公司 | Across the chain method of commerce of parallel chain, equipment and storage medium |
CN109377365A (en) * | 2018-10-18 | 2019-02-22 | 杭州复杂美科技有限公司 | A kind of assets transfer method, equipment and storage medium |
CN109472572A (en) * | 2018-11-21 | 2019-03-15 | 北京蓝石环球区块链科技有限公司 | Contract deployment and transaction based on the more subchains of block chain main chain adduction row |
CN109831514A (en) * | 2019-03-02 | 2019-05-31 | 杭州复杂美科技有限公司 | Parallel chain common recognition method, data exception processing method, equipment and storage medium |
-
2019
- 2019-07-29 CN CN201910688348.7A patent/CN110428332A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018076760A1 (en) * | 2016-10-27 | 2018-05-03 | 上海亿账通区块链科技有限公司 | Block chain-based transaction processing method, system, electronic device, and storage medium |
CN109214818A (en) * | 2017-06-30 | 2019-01-15 | 华为技术有限公司 | Across the chain method of commerce of one kind and device |
CN107862216A (en) * | 2017-10-13 | 2018-03-30 | 布比(北京)网络技术有限公司 | Method for secret protection, device and the storage medium merchandised for anonymity across chain |
CN108269190A (en) * | 2018-01-17 | 2018-07-10 | 深圳四方精创资讯股份有限公司 | Across chain method and its system based on across chain relaying platform |
CN109325762A (en) * | 2018-08-30 | 2019-02-12 | 杭州复杂美科技有限公司 | Across the chain method of commerce of parallel chain, equipment and storage medium |
CN109377365A (en) * | 2018-10-18 | 2019-02-22 | 杭州复杂美科技有限公司 | A kind of assets transfer method, equipment and storage medium |
CN109472572A (en) * | 2018-11-21 | 2019-03-15 | 北京蓝石环球区块链科技有限公司 | Contract deployment and transaction based on the more subchains of block chain main chain adduction row |
CN109831514A (en) * | 2019-03-02 | 2019-05-31 | 杭州复杂美科技有限公司 | Parallel chain common recognition method, data exception processing method, equipment and storage medium |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021139542A1 (en) * | 2020-01-07 | 2021-07-15 | Alipay Labs (singapore) Pte. Ltd. | Methods and devices for providing atomic transaction on blockchain |
WO2021139392A1 (en) * | 2020-01-07 | 2021-07-15 | Alipay Labs (singapore) Pte. Ltd. | Methods and devices for providing atomic transaction on blockchain |
CN111597077A (en) * | 2020-05-13 | 2020-08-28 | 腾讯科技(深圳)有限公司 | Data processing method, data processing device, computer equipment and storage medium |
CN112184228A (en) * | 2020-09-30 | 2021-01-05 | 杭州复杂美科技有限公司 | Asset exchange method, device and storage medium |
CN112184228B (en) * | 2020-09-30 | 2023-05-30 | 杭州复杂美科技有限公司 | Asset exchange method, device and storage medium |
CN112258184A (en) * | 2020-10-28 | 2021-01-22 | 成都质数斯达克科技有限公司 | Method and device for freezing area block chain network, electronic equipment and readable storage medium |
WO2022262510A1 (en) * | 2021-06-18 | 2022-12-22 | 支付宝(杭州)信息技术有限公司 | Method and apparatus for synchronizing cross-blockchain transactions |
CN113537991A (en) * | 2021-09-16 | 2021-10-22 | 中国信息通信研究院 | Cross-chain transaction ordered execution method and cross-chain system |
CN114331718A (en) * | 2021-12-21 | 2022-04-12 | 弥达斯科技(深圳)有限公司 | Cross-chain transaction method, device, equipment, storage medium and computer program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110428332A (en) | A kind of across the chain method of commerce of parallel chain, equipment and storage medium | |
CN109325762A (en) | Across the chain method of commerce of parallel chain, equipment and storage medium | |
CN109377365A (en) | A kind of assets transfer method, equipment and storage medium | |
CN109087080A (en) | Across chain method of commerce, equipment and storage medium | |
CN109831514A (en) | Parallel chain common recognition method, data exception processing method, equipment and storage medium | |
CN110471984A (en) | Method for processing business and device, electronic equipment based on block chain | |
CN110443708B (en) | Parallel chain transaction method, device and storage medium | |
CN108492183A (en) | Account trading method, system and the computer readable storage medium of block chain | |
CN109087204A (en) | Across chain transaction method of calibration, equipment and storage medium | |
CN109558454A (en) | Parallel chain digs mine common recognition method, equipment and storage medium | |
CN109816362A (en) | Red packet processing method, equipment and storage medium | |
CN109146490A (en) | block generation method, device and system | |
CN110580618A (en) | Commodity transaction method and system for block chain intelligent contracts | |
CN109272388A (en) | A kind of purchase method based on block chain, equipment and storage medium | |
CN109727009A (en) | Red packet processing method, equipment and storage medium | |
CN109636362A (en) | Virtual asset transaction method and device and block chain network node | |
CN109784888A (en) | Red packet processing method, equipment and storage medium | |
CN108921559A (en) | Across chain transaction method of calibration, equipment and storage medium | |
CN110458557A (en) | A kind of mode of payment, equipment and storage medium | |
Ciampi et al. | Fairmm: A fast and frontrunning-resistant crypto market-maker | |
CN109389466A (en) | A kind of delivery of cargo method, equipment and storage medium based on block chain | |
CN109741052A (en) | Red packet processing method, equipment and storage medium | |
CN109410039A (en) | Pledge loaning bill method, equipment and storage medium | |
CN109409886A (en) | Pledge loaning bill method, equipment and storage medium | |
CN107909440A (en) | A kind of distribution general ledger system transaction synchronization liquidation method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191108 |
|
RJ01 | Rejection of invention patent application after publication |