CN110135991A - The method, device and equipment of the logical card of user's span block chain exchange - Google Patents
The method, device and equipment of the logical card of user's span block chain exchange Download PDFInfo
- Publication number
- CN110135991A CN110135991A CN201910399515.6A CN201910399515A CN110135991A CN 110135991 A CN110135991 A CN 110135991A CN 201910399515 A CN201910399515 A CN 201910399515A CN 110135991 A CN110135991 A CN 110135991A
- Authority
- CN
- China
- Prior art keywords
- address
- logical card
- exchange
- block chain
- sent
- 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
This application involves the method, device and equipments that a kind of user's span block chain exchanges logical card, comprising: the logical card that expectation exchanges quantity is sent to the second address by the first address, obtains Transaction Information;Transaction Information includes the first address of sender, the second address of recipient, expectation exchange quantity;First address obtains third address, the 4th address and redemption amounts according to Transaction Information, default exchange proportion and pre-set address of cache contract;The logical card of redemption amounts is sent to third address by the 4th address;First address and third address are the address that the first user is possessed, and are mapped by address of cache contract;Second address and the 4th address are the address that second user is possessed, and are mapped by address of cache contract.User can realize the exchange of user's span block chain, without carrying out low level development when adapting to new block chain every time by way of presetting address of cache contract.
Description
Technical field
This application involves block chain technical field more particularly to a kind of methods of the logical card of user's span block chain exchange, dress
It sets and equipment.
Background technique
Currently, between block chain lead to card, i.e. token, exchange mainly use notary's mechanism, Hash locking and side
These three modes of chain mode are realized.Wherein, notary's mechanism be realized by eye-witness's mode of centralization or multi-signature across
Chain exchanges token;Hash locking is to generate Hash, and then realize in the way of Hash locking contract by generating random number
Across chain exchange token;Pendant manner is by realizing across chain exchange token based on the token that is anchored on certain former chain.
The method of above-mentioned across chain exchange token can only often use specific two block chains, if applying it to it
It between his block chain, then needs to re-start low level development, causes applicable block chain limited, cannot achieve relatively broad answer
With.
Summary of the invention
To be overcome the problems, such as present in the relevant technologies at least to a certain extent, the application provides a kind of user's span block
The method, device and equipment of the logical card of chain exchange.
According to a first aspect of the present application, a kind of method of logical card of user's span block chain exchange is provided, comprising:
The logical card that expectation exchanges quantity is sent to the second address by the first address, obtains Transaction Information;First address
It is co-located in the first block chain with second address;The Transaction Information includes the first address of sender, recipient second
Address, the expectation exchange quantity;
First address obtains third according to the Transaction Information, default exchange proportion and pre-set address of cache contract
Address, the 4th address and redemption amounts;The third address and the 4th address are co-located in the second block chain;
The logical card of redemption amounts is sent to third address by the 4th address;
First address and the third address are the address that the first user is possessed, and pass through the address of cache
Contract is mapped;
Second address and the 4th address are the address that second user is possessed, and pass through the address of cache
Contract is mapped;
The default exchange proportion leads to the exchange proportion of card between the first block chain and the second block chain.
Optionally, before the logical card that expectation exchanges quantity is sent to the second address by first address, further includes:
It inquires in the first address and leads to the quantity of card, obtain the first logical card quantity;
It inquires in the 4th address and leads to the quantity of card, obtain the second logical card quantity;
Judge whether the described first logical card quantity and the second logical card quantity meet the default exchange proportion, obtains judgement knot
Fruit;
When the judging result is to meet, first address is executed by the logical card that expectation exchanges quantity and is sent to second
Address.
Optionally, it is closed in the first address according to the Transaction Information, default exchange proportion and pre-set address of cache
After about obtaining third address, the 4th address and redemption amounts, and, the logical card of redemption amounts is sent in the 4th address
Before third address, further includes:
4th address locks the logical card in the 4th address, exchanges ratio to guarantee that the logical card in the 4th address meets
Example.
Optionally, the logical card of redemption amounts is sent to third address by the 4th address, comprising:
4th address unlocks the logical card in the 4th address;
The logical card of redemption amounts is sent to the third address by the 4th address;
Quantity is exchanged according to default exchange proportion and the expectation to the 4th address to send the logical card of redemption amounts
It is monitored to the third address, so that the 4th address is sent again when sending logical card failure to the third address,
Until sending successfully.
Optionally, after the logical card that expectation exchanges quantity is sent to the second address by first address, and, described
First address obtains third address, the according to the Transaction Information, default exchange proportion and pre-set address of cache contract
Before four addresses and redemption amounts, further includes:
It monitors first address and the logical card that expectation exchanges quantity is sent to the second address events;
When expectation is exchanged the logical card of quantity by first address is sent to the success of the second address events, described the is executed
One address obtains third address, the 4th according to the Transaction Information, default exchange proportion and pre-set address of cache contract
Address and redemption amounts;
When the logical card that expectation exchanges quantity is sent to the failure of the second address events by first address, it is same to terminate transaction
When will expectation exchange quantity logical card first address is returned to from second address.
According to a second aspect of the present application, a kind of device of logical card of user's span block chain exchange is provided, comprising:
The logical card that expectation exchanges quantity is sent to the second address for the first address, is traded by the first sending module
Information;First address and second address are co-located in the first block chain;The Transaction Information includes sender
One address, the second address of recipient, the expectation exchange quantity;
Processing module is reflected for the first address according to the Transaction Information, default exchange proportion and pre-set address
It penetrates contract and obtains third address, the 4th address and redemption amounts;The third address and the 4th address are co-located at second
In block chain;
The logical card of redemption amounts is sent to third address for the 4th address by the second sending module;
First address and the third address are the address that the first user is possessed, and pass through the address of cache
Contract is mapped;
Second address and the 4th address are the address that second user is possessed, and pass through the address of cache
Contract is mapped;
The default exchange proportion leads to the exchange proportion of card between the first block chain and the second block chain.
Further include:
First enquiry module obtains the first logical card quantity for inquiring in the first address the quantity for leading to card;
Second enquiry module obtains the second logical card quantity for inquiring in the 4th address the quantity for leading to card;
Judgment module, for judging whether the described first logical card quantity and the second logical card quantity meet the default exchange ratio
Example, obtains judging result;
First execution module, for executing first address for expectation and exchanging number when the judging result is to meet
The logical card of amount is sent to the second address.
Optionally, further includes:
Locking module locks the logical card in the 4th address for the 4th address, to guarantee in the 4th address
Logical card meets exchange proportion.
Optionally, second sending module includes:
Unlocking unit unlocks the logical card in the 4th address for the 4th address;
The logical card of redemption amounts is sent to the third address for the 4th address by transmission unit;
Monitoring unit, for number will to be exchanged according to default exchange proportion and expectation exchange quantity to the 4th address
The logical card of amount is sent to the third address and is monitored so that when the 4th address sends logical card failure to the third address into
Row is sent again, until sending successfully.
The device of the logical card of user's span block chain exchange further include:
Module is monitored, the logical card that expectation exchanges quantity is sent to the second address events for monitoring first address;
Second execution module, for the logical card that expectation exchanges quantity to be sent to the second address events when first address
When success, first address is executed according to the Transaction Information, default exchange proportion and pre-set address of cache contract
Obtain third address, the 4th address and redemption amounts;
Module is returned, for the logical card that expectation exchanges quantity to be sent to the failure of the second address events when first address
When, it terminates transaction and the logical card that expectation exchanges quantity is returned into first address from second address simultaneously.
According to the third aspect of the application, a kind of system, device of logical card of user's span block chain exchange is provided, comprising:
Processor, and the memory being connected with the processor;
For storing computer program, the computer program is at least used to execute user as described below the memory
The method of the logical card of span block chain exchange;
The logical card that expectation exchanges quantity is sent to the second address by the first address, obtains Transaction Information;First address
It is co-located in the first block chain with second address;The Transaction Information includes the first address of sender, recipient second
Address, the expectation exchange quantity;
First address obtains third according to the Transaction Information, default exchange proportion and pre-set address of cache contract
Address, the 4th address and redemption amounts;The third address and the 4th address are co-located in the second block chain;
The logical card of redemption amounts is sent to third address by the 4th address;
First address and the third address are the address that the first user is possessed, and pass through the address of cache
Contract is mapped;
Second address and the 4th address are the address that second user is possessed, and pass through the address of cache
Contract is mapped;
The default exchange proportion leads to the exchange proportion of card between the first block chain and the second block chain.
Optionally, before the logical card that expectation exchanges quantity is sent to the second address by first address, further includes:
It inquires in the first address and leads to the quantity of card, obtain the first logical card quantity;
It inquires in the 4th address and leads to the quantity of card, obtain the second logical card quantity;
Judge whether the described first logical card quantity and the second logical card quantity meet the default exchange proportion, obtains judgement knot
Fruit;
When the judging result is to meet, first address is executed by the logical card that expectation exchanges quantity and is sent to second
Address.
Optionally, it is closed in the first address according to the Transaction Information, default exchange proportion and pre-set address of cache
After about obtaining third address, the 4th address and redemption amounts, and, the logical card of redemption amounts is sent in the 4th address
Before third address, further includes:
4th address locks the logical card in the 4th address, exchanges ratio to guarantee that the logical card in the 4th address meets
Example.
Optionally, the logical card of redemption amounts is sent to third address by the 4th address, comprising:
4th address unlocks the logical card in the 4th address;
The logical card of redemption amounts is sent to the third address by the 4th address;
Quantity is exchanged according to default exchange proportion and the expectation to the 4th address to send the logical card of redemption amounts
It is monitored to the third address, so that the 4th address is sent again when sending logical card failure to the third address,
Until sending successfully.
Optionally, after the logical card that expectation exchanges quantity is sent to the second address by first address, and, described
First address obtains third address, the according to the Transaction Information, default exchange proportion and pre-set address of cache contract
Before four addresses and redemption amounts, further includes:
It monitors first address and the logical card that expectation exchanges quantity is sent to the second address events;
When expectation is exchanged the logical card of quantity by first address is sent to the success of the second address events, described the is executed
One address obtains third address, the 4th according to the Transaction Information, default exchange proportion and pre-set address of cache contract
Address and redemption amounts;
When the logical card that expectation exchanges quantity is sent to the failure of the second address events by first address, it is same to terminate transaction
When will expectation exchange quantity logical card first address is returned to from second address.
The processor is for calling and executing the computer program in the memory.
Technical solution provided by the present application can include the following benefits: between two block chains, two use
The logical card of family exchange, firstly, two users, which need to establish in two block chains, address, the first user is in the first block chain
Possess the first address, possesses third address in the second block chain;Second user possesses the second address in the first block chain,
Possess the 4th address in second block chain, the logical card that expectation exchanges quantity is sent to the second address, is traded by the first address
Information, wherein include that the first address of sender, the second address of reciever and expectation exchange quantity in Transaction Information;First address
Third address, the 4th address are obtained according to Transaction Information, default exchange proportion and pre-set address of cache contract and are converted
Change quantity;First address and third address are mapped by address of cache contract, the second address and the 4th address pass through address of cache
Contract mapping;Then, the logical card of redemption amounts is sent to third address by the 4th address, completes the logical card of user's span block chain
Exchange, wherein default exchange proportion leads to the exchange proportion of card between the first block chain and the second block chain.It is based on
This, user can realize the exchange of user's span block chain, and this method makes by way of presetting address of cache contract
With most block chains, without carrying out low level development when adapting to new block chain every time.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The application can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application
Example, and together with specification it is used to explain the principle of the application.
Fig. 1 is a kind of process signal of the method for the logical card of user's span block chain exchange that embodiments herein one provides
Figure.
Fig. 2 is a kind of structural representation of the device for the logical card of user's span block chain exchange that embodiments herein two provides
Figure.
Fig. 3 is that a kind of structure of the system, device for the logical card of user's span block chain exchange that embodiments herein three provides is shown
It is intended to.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
Currently, between block chain lead to card, i.e. token, exchange mainly use notary's mechanism, Hash locking and side
These three modes of chain mode are realized.Wherein, notary's mechanism be realized by eye-witness's mode of centralization or multi-signature across
Chain exchanges token;Hash locking is to generate Hash, and then realize in the way of Hash locking contract by generating random number
Across chain exchange token;Pendant manner is by realizing across chain exchange token based on the token that is anchored on certain former chain.
The method of above-mentioned across chain exchange token can only often use specific two block chains, if applying it to it
It between his block chain, then needs to re-start low level development, causes applicable block chain limited, cannot achieve relatively broad answer
With.
In order to solve the above technical problems, the application is realized and is used by mapping address of the same user on different blocks chain
The logical card of family span block chain exchange.
Embodiment one
Referring to Fig. 1, Fig. 1 is a kind of method for the logical card of user's span block chain exchange that embodiments herein one provides
Flow diagram.
As shown in Figure 1, the method for the logical card of user's span block chain exchange provided in this embodiment includes:
The logical card that expectation exchanges quantity is sent to the second address by step 11, the first address, obtains Transaction Information;First ground
Location and the second address are co-located in the first block chain;Transaction Information includes the first address of sender, the second address of recipient, phase
Hope exchange quantity;
Step 12, the first address are obtained according to Transaction Information, default exchange proportion and pre-set address of cache contract
Third address, the 4th address and redemption amounts;Third address and the 4th address are co-located in the second block chain.
The logical card of redemption amounts is sent to third address by step 13, the 4th address.
Wherein, the first address and third address are the address that the first user is possessed, and by address of cache contract into
Row mapping;Second address and the 4th address are the address that second user is possessed, and are mapped by address of cache contract;
Default exchange proportion leads to the exchange proportion of card between the first block chain and the second block chain.
It is demonstrate,proved between two block chains, two user's exchanges are logical, firstly, two users need in two block chains
Establishing has address, and the first user possesses the first address in the first block chain, possesses third address in the second block chain;The
Two users possess the second address in the first block chain, and the 4th address is possessed in the second block chain, and expectation is handed in the first address
The logical card for changing quantity is sent to the second address, obtains Transaction Information, wherein includes the first address of sender in Transaction Information, connects
The second address of recipient and expectation exchange quantity;First address is according to Transaction Information, default exchange proportion and pre-set
Location mapping contract obtains third address, the 4th address and redemption amounts;First address and third address pass through address of cache contract
Mapping, the second address and the 4th address are mapped by address of cache contract;Then, the 4th address sends the logical card of redemption amounts
Third address is given, completes the logical card exchange of user's span block chain, wherein default exchange proportion is the first block chain and the secondth area
Lead to the exchange proportion of card between block chain.Based on this, user can realize user by way of presetting address of cache contract
The exchange of span block chain, and this method uses most block chains, without carrying out bottom when adapting to new block chain every time
Layer exploitation.
It should be noted that the use of the premise that the present processes realize that user's span block chain exchanges logical card being to be related to
User need all have at least one address in the block chain being related to.Wherein, when above-mentioned premise is unsatisfactory for, Ke Yitong
It crosses the method for establishing address on block chain and meets above-mentioned premise, be highly developed behaviour due to establishing address on block chain
Make, compared with existing user's span chain exchanges the method for logical card, even if needing to establish on block chain before using this method
Address, be still it is simple to operation, solve problems of the prior art.
Before step 11, the present processes can also include:
It inquires in the first address and leads to the quantity of card, obtain the first logical card quantity;
It inquires in the 4th address and leads to the quantity of card, obtain the second logical card quantity;
Judge whether the first logical card quantity and the second logical card quantity meet default exchange proportion, obtains judging result;
When judging result is to meet, the first address is executed by the logical card that expectation exchanges quantity and is sent to the second address.
In the above process, meets default exchange proportion and refer to the default exchange proportion for working as the first block chain and the second block chain
When for 1:n, if the expectation exchange quantity that the first address is sent is m, the quantity in the 4th address have to be larger than or be equal to m ×
n。
In addition, the default exchange proportion between block chain is floating exchange proportion, it is default to convert similar to the exchange rate between currency
The management method for changing ratio is referred to the management method (market) of the exchange rate between currency, carries out by the trade market of block interchain
It adjusts.
In addition, between step 12 and step 13, the method in the present embodiment can also include:
4th address locks the logical card in the 4th address, to guarantee that the logical card in the 4th address meets exchange proportion.
The logical card in the 4th address is locked it is possible to prevente effectively from other transaction should occur in the process causes in the 4th address
Logical card quantity is unsatisfactory for default exchange proportion.
In addition, the logical card locked in the 4th address at this can be locked out the logical card of the whole in the 4th address, it is also possible to
The logical card of calculated redemption amounts in lock step 12.
In addition, step 13 can also include:
4th address unlocks the logical card in the 4th address;
The logical card of redemption amounts is sent to third address by the 4th address;
4th address according to default exchange proportion and it is expected to exchange quantity by the logical card of redemption amounts with being sent to third
Location is monitored, so that the 4th address is sent again when sending logical card failure to third address, until sending successfully.
Between step 11 and step 12, the method for the present embodiment can also include:
It monitors the first address and the logical card that expectation exchanges quantity is sent to the second address events;
When the logical card that expectation exchanges quantity is sent to the success of the second address events by the first address, the first address root is executed
Third address, the 4th address are obtained according to Transaction Information, default exchange proportion and pre-set address of cache contract and exchange number
Amount;
When the logical card that expectation exchanges quantity is sent to the failure of the second address events by the first address, termination trades while will
It is expected that the logical card for exchanging quantity returns to the first address from the second address.
Wherein, the logical card that expectation exchanges quantity is sent to the second address by the first address can pass through special method
TransferX is realized, corresponding, and monitoring the first address will it is expected that the logical card for exchanging quantity is sent to the second address events and monitors
TransferX event.
It should be noted that address of cache contract is by user by the method for addressMapping in different blocks chain
In address of cache get up.
The above method can be realized by disposing intelligent contract on each block chain, included at least and sent in intelligent contract
The special method transferX of block chain sends logical card event (transferX event) and based on addressMapping
Address of cache contract.
Embodiment two
Referring to Fig. 2, Fig. 2 is a kind of device for the logical card of user's span block chain exchange that embodiments herein two provides
Structural schematic diagram.
As shown in Fig. 2, the device of the logical card of user's span block chain exchange provided in this embodiment includes:
The logical card that expectation exchanges quantity is sent to the second address for the first address, is handed over by the first sending module 21
Easy information;First address and the second address are co-located in the first block chain;Transaction Information includes the first address of sender, receives
The second address of side, expectation exchange quantity;
Processing module 22, for the first address according to Transaction Information, default exchange proportion and pre-set address of cache
Contract obtains third address, the 4th address and redemption amounts;Third address and the 4th address are co-located in the second block chain;
The logical card of redemption amounts is sent to third address for the 4th address by the second sending module 23;
First address and third address are the address that the first user is possessed, and are reflected by address of cache contract
It penetrates;
Second address and the 4th address are the address that second user is possessed, and are reflected by address of cache contract
It penetrates;
Default exchange proportion leads to the exchange proportion of card between the first block chain and the second block chain.
Further, the present apparatus can also include:
First enquiry module obtains the first logical card quantity for inquiring in the first address the quantity for leading to card;
Second enquiry module obtains the second logical card quantity for inquiring in the 4th address the quantity for leading to card;
Judgment module is obtained for judging whether the first logical card quantity and the second logical card quantity meet default exchange proportion
Judging result;
First execution module, for executing the logical card that expectation is exchanged quantity by the first address when judging result is to meet
It is sent to the second address.
Further, the present apparatus can also include:
Locking module locks the logical card in the 4th address for the 4th address, is met with the logical card guaranteed in the 4th address
Exchange proportion.
In addition, the second sending module may include:
Unlocking unit unlocks the logical card in the 4th address for the 4th address;
The logical card of redemption amounts is sent to third address for the 4th address by transmission unit;
Monitoring unit, for exchanging quantity for the logical card of redemption amounts according to default exchange proportion and expectation to the 4th address
Third address is sent to be monitored, so that the 4th address is sent again when sending logical card failure to third address, until
It sends successfully.
The device demonstrate,proved is led in user's span block chain exchange of the present embodiment to include:
Module is monitored, the logical card that expectation exchanges quantity is sent to the second address events for monitoring the first address;
Second execution module, for the logical card that expectation exchanges quantity to be sent to the success of the second address events when the first address
When, execute the first address according to Transaction Information, default exchange proportion and pre-set address of cache contract obtain third address,
4th address and redemption amounts;
Module is returned, when for that will it is expected that the logical card of exchange quantity is sent to the failure of the second address events when the first address,
It terminates transaction and the logical card that expectation exchanges quantity is returned into the first address from the second address simultaneously.
Embodiment three
Referring to Fig. 3, it is to set that Fig. 3, which is the logical card of a kind of user's span block chain exchange that embodiments herein three provides,
Standby structural schematic diagram.
As shown in figure 3, the system, device of the logical card of user's span block chain exchange provided in this embodiment includes:
Processor, and the memory being connected with processor;
For storing computer program, computer program is at least used to execute transregional between the user such as embodiment one memory
The method of the logical card of block chain exchange;
Processor is for calling and executing the computer program in memory.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodiments
Unspecified content may refer to the same or similar content in other embodiments.
It should be noted that term " first ", " second " etc. are used for description purposes only in the description of the present application, without
It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present application, unless otherwise indicated, the meaning of " multiple "
Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although embodiments herein has been shown and described above, it is to be understood that above-described embodiment is example
Property, it should not be understood as the limitation to the application, those skilled in the art within the scope of application can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.
Claims (10)
1. a kind of method of the logical card of user's span block chain exchange characterized by comprising
The logical card that expectation exchanges quantity is sent to the second address by the first address, obtains Transaction Information;First address and institute
The second address is stated to be co-located in the first block chain;The Transaction Information include the first address of sender, the second address of recipient,
The expectation exchanges quantity;
First address according to the Transaction Information, default exchange proportion and pre-set address of cache contract with obtaining third
Location, the 4th address and redemption amounts;The third address and the 4th address are co-located in the second block chain;
The logical card of redemption amounts is sent to third address by the 4th address;
First address and the third address are the address that the first user is possessed, and pass through the address of cache contract
It is mapped;
Second address and the 4th address are the address that second user is possessed, and pass through the address of cache contract
It is mapped;
The default exchange proportion leads to the exchange proportion of card between the first block chain and the second block chain.
2. the method for the logical card of user's span block chain exchange according to claim 1, which is characterized in that on first ground
The logical card that expectation exchanges quantity is sent to before the second address by location, further includes:
It inquires in the first address and leads to the quantity of card, obtain the first logical card quantity;
It inquires in the 4th address and leads to the quantity of card, obtain the second logical card quantity;
Judge whether the described first logical card quantity and the second logical card quantity meet the default exchange proportion, obtains judging result;
When the judging result is to meet, first address is executed by the logical card that expectation exchanges quantity and is sent to the second ground
Location.
3. the method for the logical card of user's span block chain exchange according to claim 1, which is characterized in that in the first address root
Third address, the 4th address are obtained according to the Transaction Information, default exchange proportion and pre-set address of cache contract and are converted
It changes after quantity, and, before the logical card of redemption amounts is sent to third address by the 4th address, further includes:
4th address locks the logical card in the 4th address, to guarantee that the logical card in the 4th address meets exchange proportion.
4. the method for the logical card of user's span block chain exchange according to claim 3, which is characterized in that the 4th address
The logical card of redemption amounts is sent to third address, comprising:
4th address unlocks the logical card in the 4th address;
The logical card of redemption amounts is sent to the third address by the 4th address;
Institute is sent to by the logical card of redemption amounts according to default exchange proportion and expectation exchange quantity to the 4th address
Third address is stated to be monitored, so that the 4th address is sent again when sending logical card failure to the third address, until
It sends successfully.
5. the method for the logical card of user's span block chain exchange according to claim 1, which is characterized in that on first ground
Location will expectation exchange quantity logical card be sent to the second address after, and, in first address according to the Transaction Information, pre-
If exchange proportion and pre-set address of cache contract obtain before third address, the 4th address and redemption amounts, further includes:
It monitors first address and the logical card that expectation exchanges quantity is sent to the second address events;
When the logical card that expectation exchanges quantity is sent to the success of the second address events by first address, first ground is executed
Location obtains third address, the 4th address according to the Transaction Information, default exchange proportion and pre-set address of cache contract
And redemption amounts;
When the logical card that expectation exchanges quantity is sent to the failure of the second address events by first address, termination trades while will
It is expected that the logical card for exchanging quantity returns to first address from second address.
6. a kind of device of the logical card of user's span block chain exchange characterized by comprising
The logical card that expectation exchanges quantity is sent to the second address for the first address, obtains Transaction Information by the first sending module;
First address and second address are co-located in the first block chain;The Transaction Information includes the first ground of sender
Location, the second address of recipient, the expectation exchange quantity;
Processing module is closed for the first address according to the Transaction Information, default exchange proportion and pre-set address of cache
About obtain third address, the 4th address and redemption amounts;The third address and the 4th address are co-located at the second block
In chain;
The logical card of redemption amounts is sent to third address for the 4th address by the second sending module;
First address and the third address are the address that the first user is possessed, and pass through the address of cache contract
It is mapped;
Second address and the 4th address are the address that second user is possessed, and pass through the address of cache contract
It is mapped;
The default exchange proportion leads to the exchange proportion of card between the first block chain and the second block chain.
7. the device of the logical card of user's span block chain exchange according to claim 6, which is characterized in that further include:
First enquiry module obtains the first logical card quantity for inquiring in the first address the quantity for leading to card;
Second enquiry module obtains the second logical card quantity for inquiring in the 4th address the quantity for leading to card;
Judgment module, for judging whether the described first logical card quantity and the second logical card quantity meet the default exchange proportion,
Obtain judging result;
First execution module, for executing first address for expectation and exchanging quantity when the judging result is to meet
Logical card is sent to the second address.
8. the device of the logical card of user's span block chain exchange according to claim 6, which is characterized in that further include:
Locking module locks the logical card in the 4th address for the 4th address, to guarantee the logical card in the 4th address
Meet exchange proportion.
9. the device of the logical card of user's span block chain exchange according to claim 8, which is characterized in that described second sends
Module includes:
Unlocking unit unlocks the logical card in the 4th address for the 4th address;
The logical card of redemption amounts is sent to the third address for the 4th address by transmission unit;
Monitoring unit, for exchanging quantity for redemption amounts according to default exchange proportion and the expectation to the 4th address
Logical card is sent to the third address and is monitored, so that the 4th address carries out again when sending logical card failure to the third address
Secondary transmission, until sending successfully;
The device of the logical card of user's span block chain exchange further include:
Module is monitored, the logical card that expectation exchanges quantity is sent to the second address events for monitoring first address;
Second execution module, for the logical card that expectation exchanges quantity to be sent to the success of the second address events when first address
When, it executes first address and is obtained according to the Transaction Information, default exchange proportion and pre-set address of cache contract
Third address, the 4th address and redemption amounts;
Module is returned, when for that will it is expected that the logical card of exchange quantity is sent to the failure of the second address events when first address,
It terminates transaction and the logical card that expectation exchanges quantity is returned into first address from second address simultaneously.
10. a kind of system, device of the logical card of user's span block chain exchange characterized by comprising
Processor, and the memory being connected with the processor;
The memory is at least used for perform claim and requires any one of 1-5 for storing computer program, the computer program
The method of the logical card of user's span block chain exchange;
The processor is for calling and executing the computer program in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910399515.6A CN110135991A (en) | 2019-05-14 | 2019-05-14 | The method, device and equipment of the logical card of user's span block chain exchange |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910399515.6A CN110135991A (en) | 2019-05-14 | 2019-05-14 | The method, device and equipment of the logical card of user's span block chain exchange |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110135991A true CN110135991A (en) | 2019-08-16 |
Family
ID=67573924
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910399515.6A Pending CN110135991A (en) | 2019-05-14 | 2019-05-14 | The method, device and equipment of the logical card of user's span block chain exchange |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110135991A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110909342A (en) * | 2019-11-28 | 2020-03-24 | 北京海益同展信息科技有限公司 | Method and device for changing pass certificates and computer readable storage medium |
CN110930148A (en) * | 2019-11-22 | 2020-03-27 | 上海欧冶金融信息服务股份有限公司 | Method and system for registering, exchanging and retrieving based on token |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108665249A (en) * | 2018-05-18 | 2018-10-16 | 北京三六五八网络科技有限公司 | Digital asset processing method and processing device |
CN108876618A (en) * | 2018-06-15 | 2018-11-23 | 浙江华信区块链科技服务有限公司 | A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network |
CN109493024A (en) * | 2018-09-29 | 2019-03-19 | 杭州复杂美科技有限公司 | Digital asset trustship method, equipment and storage medium |
US20190130701A1 (en) * | 2017-10-31 | 2019-05-02 | Jordan Simons | Management Of Virtual Goods In Distributed Multi-Ledger Gambling Architecture |
-
2019
- 2019-05-14 CN CN201910399515.6A patent/CN110135991A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190130701A1 (en) * | 2017-10-31 | 2019-05-02 | Jordan Simons | Management Of Virtual Goods In Distributed Multi-Ledger Gambling Architecture |
CN108665249A (en) * | 2018-05-18 | 2018-10-16 | 北京三六五八网络科技有限公司 | Digital asset processing method and processing device |
CN108876618A (en) * | 2018-06-15 | 2018-11-23 | 浙江华信区块链科技服务有限公司 | A kind of exchange block catenary system and corresponding universal block chain mutual operation method and network |
CN109493024A (en) * | 2018-09-29 | 2019-03-19 | 杭州复杂美科技有限公司 | Digital asset trustship method, equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110930148A (en) * | 2019-11-22 | 2020-03-27 | 上海欧冶金融信息服务股份有限公司 | Method and system for registering, exchanging and retrieving based on token |
CN110909342A (en) * | 2019-11-28 | 2020-03-24 | 北京海益同展信息科技有限公司 | Method and device for changing pass certificates and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111417941B (en) | Blockchain lifecycle management | |
CN108898390A (en) | Intelligent contract call method and device, electronic equipment based on block chain | |
TWI737107B (en) | Data processing method, device, blockchain client and blockchain node | |
CN110392052A (en) | A kind of block chain intelligence contract processing system and method | |
CN109871669A (en) | A kind of data sharing solution based on block chain technology | |
CN109286685A (en) | The system architecture of the more subchains of main chain adduction row of subchain can be expanded | |
CN109242685A (en) | Common recognition and verification method and device based on block chain | |
CN110417558A (en) | Verification method and device, the storage medium and electronic device of signature | |
CN107332701A (en) | The method and system of management node | |
CN107480990A (en) | Block chain bookkeeping methods and device | |
CN110135991A (en) | The method, device and equipment of the logical card of user's span block chain exchange | |
CN109361704A (en) | Cloud storage data encryption and transmission method, system, equipment and storage medium | |
CN110213304A (en) | A kind of block chain network interconnected method and system | |
CN109597822A (en) | A kind of storage of user data and querying method and user data processing unit | |
WO2020147478A1 (en) | Block chain-based user feature value acquisition and application method and apparatus | |
CN110223040A (en) | Project management method, device, electronic equipment and storage medium | |
CN109213792A (en) | Method, server-side, client, device and the readable storage medium storing program for executing of data processing | |
WO2021190179A1 (en) | Synchronous processing method and related apparatus | |
Carley | Inhibiting adaptation | |
CN107404541A (en) | A kind of method and system of peer-to-peer network transmission neighbor node selection | |
CN110535679A (en) | Management method, framework, network slice sales platform and the management system of slice | |
CN114978638A (en) | Block chain cross-chain supervision method based on shared nodes | |
CN108459929A (en) | A kind of data back up method based on cloud computing | |
Santos et al. | A mathematical optimization approach for resource allocation in large scale data centers | |
CN110099068A (en) | The method, device and equipment of interaction between open platform based on block chain |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190816 |