CN108648075A - The method and device that digital asset is exchanged - Google Patents

The method and device that digital asset is exchanged Download PDF

Info

Publication number
CN108648075A
CN108648075A CN201810279536.XA CN201810279536A CN108648075A CN 108648075 A CN108648075 A CN 108648075A CN 201810279536 A CN201810279536 A CN 201810279536A CN 108648075 A CN108648075 A CN 108648075A
Authority
CN
China
Prior art keywords
digital asset
assets
target number
redemption
exchange
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
Application number
CN201810279536.XA
Other languages
Chinese (zh)
Inventor
谭智勇
宋承根
赵微
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing European Chain Technology Co Ltd
Original Assignee
Beijing European Chain Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing European Chain Technology Co Ltd filed Critical Beijing European Chain Technology Co Ltd
Priority to CN201810279536.XA priority Critical patent/CN108648075A/en
Publication of CN108648075A publication Critical patent/CN108648075A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses the method and devices that a kind of digital asset is exchanged, and are related to technical field of data processing, can solve existing block chain digital asset and exchange flow complexity, need to consume a large amount of manpower and materials, so as to cause the low problem of efficiency is exchanged.The present invention method include mainly:Digital asset exchanges node and receives digital asset redemption request;The digital asset exchanges node and judges whether the digital asset redemption request meets redemption of conditional;If meeting the redemption of conditional, it then will be in the reserve assets account corresponding to the former digital asset storage to the former digital asset, and according to the quantity of exchange proportion and digital asset redemption request Central Plains digital asset between former digital asset and target number assets, the digital asset in the reserve assets account corresponding to target number assets is fed back into digital asset and exchanges recipient.The present invention is mainly suitable in the scene for exchanging block chain digital asset.

Description

The method and device that digital asset is exchanged
Technical field
The present invention relates to technical field of data processing, the method and device exchanged more particularly to a kind of digital asset.
Background technology
Block chain technology is a kind of decentralization and resides in data storage, transmission and the method proved of distributed frame, Dependence with data block instead of current internet to central server.There are a variety of digital assets in block chain network, When block chain user is traded, generally requires to carry out digital asset exchange, obtain the digital asset of its required type, ability Carry out subsequent operation.
Block chain user first will need the digital asset exchanged to be stored to exchange to realize that digital asset is exchanged at present, Then counterparty side is found under the brining together of exchange, finally carrying out operation by the staff of exchange completes between the two Digital asset exchange.It follows that existing block chain digital asset exchange flow is complex, need to consume a large amount of people Power material resources, it is extremely inefficient.
Invention content
In view of this, the method and device that digital asset provided by the invention is exchanged, its object is to solve existing area Block chain digital asset exchange flow is complex, needs to consume a large amount of manpower and materials, so as to cause the low problem of efficiency is exchanged.
To solve the above-mentioned problems, present invention generally provides following technical solutions:
In a first aspect, the present invention provides a kind of exchanging method of digital asset, the method includes:
Digital asset exchanges node and receives digital asset redemption request, the digital asset exchange node be can at least Third party's node that one block chain network interacts, the digital asset redemption request include certain amount of former number money The type for the target number assets that production and request are exchanged;
The digital asset exchanges node and judges whether the digital asset redemption request meets redemption of conditional;
If meeting the redemption of conditional, by the deposit corresponding to the former digital asset storage to the former digital asset In assets account, and according between former digital asset and target number assets exchange proportion and the digital asset redemption request Digital asset in reserve assets account corresponding to target number assets is fed back to digital money by the quantity of Central Plains digital asset Recipient is exchanged in production.
Optionally, the digital asset exchange node judges whether the digital asset redemption request meets redemption of conditional packet It includes:
The digital asset exchanges node and judges whether the type of the target number assets belongs to the digital asset and convert Change the type for allowing to exchange in the block chain network that node is managed;
If belonging to, according between former digital asset and target number assets exchange proportion and the digital asset exchange The quantity for asking Central Plains digital asset determines the number money stored in the reserve assets account corresponding to the target number assets Whether production meets quantity demand;If meeting the quantity demand, it is determined that the digital asset redemption request meets the exchange Condition;
Otherwise, it determines the digital asset redemption request is unsatisfactory for the redemption of conditional.
Optionally, digital asset exchange node reception digital asset redemption request includes:
The digital asset exchanges the digital asset that node is sent by exchanging interface digital asset redemption request side Redemption request.
Optionally, it includes digital asset redemption request side and/or except the number provides that the digital asset, which exchanges recipient, The recipient that digital asset requesting party other than production redemption request side, described specifies.
Optionally, the method further includes:
According to actual demand, digital asset is added into existing reserve assets account, or from the existing reserve assets Digital asset is extracted in account;
And/or according to the actual demand, reserve assets account is added for the block chain network, or by existing storage Standby assets account is deleted from the block chain network.
Optionally, the former digital asset is stored into the reserve assets account corresponding to the former digital asset, and According to the exchange proportion and digital asset redemption request Central Plains digital asset between former digital asset and target number assets Quantity, by the digital asset in the reserve assets account corresponding to target number assets feed back to digital asset exchange recipient Including:
The former digital asset is sent to the intelligent contract in the affiliated block chain network of the former digital asset, with toilet Stating intelligent contract will be in the reserve assets account corresponding to the former digital asset storage to the former digital asset;
According between former digital asset and target number assets exchange proportion and digital asset redemption request Central Plains The quantity of digital asset determines the quantity for the target number assets for needing to exchange;
The type and quantity of the target number assets are sent in the affiliated block chain network of the target number assets Intelligent contract, so that the intelligent contract in the affiliated block chain network of the target number assets is from the target number assets institute The target number assets of determining quantity are taken out in corresponding reserve assets account;
The target number assets that the intelligent contract in the affiliated block chain network of the target number assets is sent are received, and will The target number assets received feed back to the digital asset and exchange recipient.
Optionally, the method further includes:
If being unsatisfactory for the redemption of conditional, the certain amount of former digital asset is returned into digital asset exchange and is asked The side of asking.
Optionally, the digital asset is exchanged node and is managed by individual management or by decentralization group.
Second aspect, the present invention provides a kind of exchanging device of digital asset, described device is converted applied to digital asset Node is changed, described device includes:
Receiving unit, for receiving digital asset redemption request, the digital asset exchange node is can be at least one Third party's node that a block chain network interacts, the digital asset redemption request include certain amount of former digital asset The type for the target number assets exchanged with request;
Judging unit, for judging whether the digital asset redemption request meets redemption of conditional;
Storage unit, for when meeting the redemption of conditional, the former digital asset storage to be provided to the former number In the corresponding reserve assets account of production;
Feedback unit, for according between former digital asset and target number assets exchange proportion and the digital asset The quantity of redemption request Central Plains digital asset feeds back the digital asset in the reserve assets account corresponding to target number assets Recipient is exchanged to digital asset.
Optionally, the judging unit includes:
First judgment module exchanges section for judging whether the type of the target number assets belongs to the digital asset Allow the type exchanged in the managed block chain network of point;
Determining module, for when belonging to, according between former digital asset and target number assets exchange proportion and institute The quantity for stating digital asset redemption request Central Plains digital asset determines the reserve assets account corresponding to the target number assets Whether the digital asset of middle storage meets quantity demand;If meeting the quantity demand, it is determined that the digital asset exchange is asked It asks and meets the redemption of conditional;
The determining module is additionally operable to otherwise, it determines the digital asset redemption request is unsatisfactory for the redemption of conditional.
Optionally, the receiving unit, the number for being sent by exchanging interface digital asset redemption request side Assets redemption request.
Optionally, it includes digital asset redemption request side and/or except the number provides that the digital asset, which exchanges recipient, The recipient that digital asset requesting party other than production redemption request side, described specifies.
Optionally, described device further includes:
Adjustment unit, for according to actual demand, adding digital asset into existing reserve assets account, or from described Have in reserve assets account and extracts digital asset;
And/or according to the actual demand, reserve assets account is added for the block chain network, or by existing storage Standby assets account is deleted from the block chain network.
Optionally, the storage unit, for the former digital asset to be sent to the affiliated block of the former digital asset Intelligent contract in chain network, so that the intelligent contract will be corresponding to the former digital asset storage to the former digital asset Reserve assets account in;
The feedback unit, for according between former digital asset and target number assets exchange proportion and the number The quantity of assets redemption request Central Plains digital asset determines the quantity for the target number assets for needing to exchange;By the number of targets The type and quantity of word assets are sent to the intelligent contract in the affiliated block chain network of the target number assets, so as to the mesh The intelligent contract in the affiliated block chain network of digital asset is marked from the reserve assets account corresponding to the target number assets Take out the target number assets of determining quantity;Receive the intelligent contract hair in the affiliated block chain network of the target number assets The target number assets sent, and the target number assets received are fed back into the digital asset and exchange recipient.
Optionally, the feedback unit is additionally operable to when being unsatisfactory for the redemption of conditional, by the certain amount of former number Word assets return to digital asset redemption request side.
Optionally, the digital asset is exchanged node and is managed by individual management or by decentralization group.
The third aspect, the present invention provides a kind of storage medium, the storage medium includes the program of storage, wherein Equipment executes the exchanging method of digital asset as described in relation to the first aspect described program controls the storage medium when running where.
Fourth aspect, the present invention provides a kind of exchanging device of digital asset, described device includes storage medium and place Manage device;
The processor is adapted for carrying out each instruction;
The storage medium is suitable for storing a plurality of instruction;
Described instruction is suitable for being loaded by the processor and being executed the exchanging method of digital asset as described in relation to the first aspect.
By above-mentioned technical proposal, technical solution provided by the invention at least has following advantages:
The method and device that digital asset provided by the invention is exchanged, can by can at least one block chain network into Third party's node (i.e. digital asset exchanges node) of row interaction receives the digital asset that digital asset redemption request side is sent and converts Request is changed, and when determining that digital asset redemption request meets redemption of conditional, it can be by the former number in digital asset redemption request In word asset store to the reserve assets account corresponding to it, then according to converting between former digital asset and target number assets The quantity for changing ratio and the digital asset redemption request Central Plains digital asset, by the reserve assets account corresponding to target number assets Digital asset in number feeds back to digital asset and exchanges recipient, to realize that automation is exchanged, without being based on third party's reality Body place, is exchanged by manual negotiations, and then simplifies exchange flow, improves exchange efficiency.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the exchanging method of digital asset provided in an embodiment of the present invention;
Fig. 2 shows the flow charts of the exchanging method of another digital asset provided in an embodiment of the present invention;
Fig. 3 shows a kind of exemplary plot for exchanging digital asset based on same block chain network provided in an embodiment of the present invention;
Fig. 4 shows another example that digital asset is exchanged based on same block chain network provided in an embodiment of the present invention Figure;
Fig. 5 shows another example based on same block chain network exchange digital asset provided in an embodiment of the present invention Figure;
Fig. 6 shows a kind of exemplary plot for exchanging digital asset based on transregional piece of chain network provided in an embodiment of the present invention;
Fig. 7 shows another example that digital asset is exchanged based on transregional piece of chain network provided in an embodiment of the present invention Figure;
Fig. 8 shows another example based on transregional piece of chain network exchange digital asset provided in an embodiment of the present invention Figure;
Fig. 9 shows a kind of composition frame chart of the exchanging device of digital asset provided in an embodiment of the present invention;
Figure 10 shows the composition frame chart of the exchanging device of another digital asset provided in an embodiment of the present invention.
Specific implementation mode
The exemplary embodiment of the application is more fully described below with reference to accompanying drawings.Although showing the application in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the application without should be by embodiments set forth here It is limited.It is to be able to be best understood from the application on the contrary, providing these embodiments, and can be by scope of the present application Completely it is communicated to those skilled in the art.
An embodiment of the present invention provides a kind of exchanging methods of digital asset, as shown in Figure 1, the method includes:
101, digital asset exchanges node and receives digital asset redemption request.
Wherein, it is that can be saved with the third party that at least one block chain network interacts that the digital asset, which exchanges node, Point.The digital asset redemption request includes at least the target number assets of certain amount of former digital asset and request exchange Type can also add other data that must be provided according to specific redemption of conditional, and a for example, at least digital asset exchange connects The block chain account address of debit, digital asset receive ratio.
Can be that each digital asset is arranged one in each block chain network before realizing that digital asset is exchanged Reserve assets account stores a certain number of digital assets into corresponding reserve assets account, so that digital asset is exchanged Node receives the digital asset redemption request that digital asset redemption request side is sent, and digital asset is converted as intermediate bridge The original number money for changing requestor requests exchange is exchanged into the target number assets stored in reserve assets account.
102, the digital asset exchange node judges whether the digital asset redemption request meets redemption of conditional.
After receiving digital asset redemption request, needs first to parse digital asset redemption request, therefrom obtain Required data, then pre-set redemption of conditional, judges whether the digital asset redemption request meets the redemption of conditional, only Have when meeting redemption of conditional, can just execute follow-up exchange operation.Pre-set redemption of conditional includes most basic exchange item Part, according to the increased redemption of conditional of actual demand.Wherein, most basic redemption of conditional, which is exactly the type of former digital asset, to convert It changes, the type of target number assets can exchange, the quantity of target number assets is enough;According to the increased exchange item of actual demand Part includes digital asset redemption request side with exchanging permission, digital asset redemption request side with former digital asset to be exchanged into Exchange permission of target number assets etc..
If 103, meeting the redemption of conditional, corresponding to the former digital asset storage to the former digital asset In reserve assets account, and according between former digital asset and target number assets exchange proportion and the digital asset exchange The quantity for asking Central Plains digital asset, feeds back to number by the digital asset in the reserve assets account corresponding to target number assets Word assets exchange recipient.
When determining that digital asset redemption request meets redemption of conditional, digital asset exchanges node can be based on the original of storage The address of the storage assets account of digital asset, by initiating the common area that transfers accounts to the block chain network belonging to former digital asset The mode of block chain affairs (Transaction) is communicated with the block chain network, and former digital asset is stored and is arrived corresponding to it Reserve assets account in, then according between former digital asset and target number assets exchange proportion and former digital asset Quantity, determines the quantity of target number assets for needing to exchange, last digital asset exchange node by with target number assets Affiliated block chain communication, takes out the digital asset of determining quantity from the corresponding reserve assets account of target number assets, Then the digital asset of taking-up is fed back into digital asset and exchanges recipient.
In addition, the storage of digital asset and extraction operation can be by one in the affiliated block chain network of reserve assets account Intelligent contract executes.Specifically, digital asset, which exchanges node, can be sent to the former digital asset the former number money Intelligent contract in block chain network belonging to production, so that the intelligent contract stores the former digital asset to the former number In reserve assets account corresponding to assets;Then according between former digital asset and target number assets exchange proportion and institute The quantity of digital asset redemption request Central Plains digital asset is stated, determines the quantity for the target number assets for needing to exchange;Again by institute The type and quantity for stating target number assets are sent to intelligent contract in the affiliated block chain network of the target number assets, with Toilet states deposit money of the intelligent contract in the affiliated block chain network of target number assets corresponding to the target number assets The target number assets of determining quantity are taken out in production account;It finally receives in the affiliated block chain network of the target number assets The target number assets that send of intelligent contract, and the target number assets received are fed back into digital asset exchange and are connect Debit.
Wherein, intelligent contract refers to that is defined in digital form be capable of the contract of automatic implementation of the provisions.In block chain technology Field, intelligent contract refer in particular to the computer program for being triggered based on scheduled event, can not distorting, executing automatically.Intelligent contract is once It generates, any one node can often call the intelligence contract in block chain, to realize a certain business or transaction.This hair Intelligent contract in bright embodiment can be the special contract for providing digital asset access service, can also be including digital asset The contract of access service and other services.But when the intelligence contract is the special contract for providing digital asset access service, The access efficiency of the opposite contract including other services of its access efficiency often wants high, therefore provides number money it is preferable to use special Produce the contract of access service.
It should be noted that it can be digital asset redemption request side that digital asset, which exchanges recipient, can also be number The specified at least one recipient in assets redemption request side can also be that requesting party receives a part of digital asset, and specified connects Debit receives a part of assets.That is, the digital asset exchange recipient include digital asset redemption request side and/or The recipient that digital asset requesting party in addition to the digital asset redemption request side, described specifies.
The method that digital asset provided in an embodiment of the present invention is exchanged, can by can at least one block chain network into Third party's node (i.e. digital asset exchanges node) of row interaction receives the digital asset that digital asset redemption request side is sent and converts Request is changed, and when determining that digital asset redemption request meets redemption of conditional, it can be by the former number in digital asset redemption request In word asset store to the reserve assets account corresponding to it, then according to converting between former digital asset and target number assets The quantity for changing ratio and the digital asset redemption request Central Plains digital asset, by the reserve assets account corresponding to target number assets Digital asset in number feeds back to digital asset and exchanges recipient, to realize that automation is exchanged, without being based on third party's reality Body place, is exchanged by manual negotiations, and then simplifies exchange flow, improves exchange efficiency.
Further, method shown in FIG. 1, an alternative embodiment of the invention additionally provide a kind of exchange of digital asset Method, as shown in Fig. 2, the method includes:
201, digital asset exchanges node and receives digital asset redemption request.
When user wants to exchange digital asset, block chain client can be logged in, then the number money to be exchanged of input The type of quantity and target number assets is produced, clicks and exchanges button, triggering block chain client call digital asset exchanges node Exchange interface, and by the exchange interface to digital asset exchange node send digital asset redemption request so that digital Assets exchange node and pass through the exchange interface to digital asset redemption request.
202, the digital asset exchange node judges whether the digital asset redemption request meets redemption of conditional.
Redemption of conditional that redemption of conditional includes most basic is referred in above-mentioned steps 102, according to the increased exchange of actual demand Condition.If current redemption of conditional only includes most basic redemption of conditional, judge whether the digital asset redemption request is full The specific implementation of sufficient redemption of conditional can be:The digital asset exchanges the type that node judges the target number assets Whether belong to the digital asset and exchanges the type for allowing to exchange in the block chain network that node is managed;If belonging to, basis The number of exchange proportion and digital asset redemption request Central Plains digital asset between former digital asset and target number assets Amount, determines whether the digital asset stored in the reserve assets account corresponding to the target number assets meets quantity demand; If meeting the quantity demand, it is determined that the digital asset redemption request meets the redemption of conditional;Otherwise it (is not belonging to permit Perhaps the type exchanged, or it is unsatisfactory for quantity demand), determine that the digital asset redemption request is unsatisfactory for the redemption of conditional.
When current redemption of conditional further includes other restrictive conditions, it can be further continued for judging whether to meet the requirements.If such as Different grades of user, the digital asset type that can be exchanged is different, then can continue to judge whether active user has exchange The permission of target number assets, if talented determination meets redemption of conditional.
If 203, meeting the redemption of conditional, corresponding to the former digital asset storage to the former digital asset In reserve assets account, and according between former digital asset and target number assets exchange proportion and the digital asset exchange The quantity for asking Central Plains digital asset, feeds back to number by the digital asset in the reserve assets account corresponding to target number assets Word assets exchange recipient.
If 204, being unsatisfactory for the redemption of conditional, the certain amount of former digital asset is returned into digital asset and is converted Change requesting party.
In addition, in order to allow digital asset to exchange the actual demand that mechanism more meets block chain field personnel, number can be passed through Word assets are exchanged node and are interacted with each block chain, are carried out to the digital asset that can participate in exchanging in each block chain network Adjustment.Specifically, digital asset can be added into existing reserve assets account, or have from described according to actual demand Digital asset is extracted in reserve assets account;And/or according to the actual demand, for block chain network addition deposit money Account is produced, or existing reserve assets account is deleted from the block chain network.Can also in addition, digital asset exchanges node The exchange proportion to timely update between various digital assets.
For example, certain digital asset having in reserve assets accounts is converted away mostly, still has be converted at present Demand, therefore in order to allow follow-up exchange to be smoothed out, first some digital assets can be added into the reserve assets account. For another example, a kind of digital asset is newly produced in certain block chain network, can is digital asset addition deposit account.
In practical applications, user has the demand that digital asset is exchanged inside the same block chain network, also has transregional Block chain network carries out the demand of digital asset exchange, therefore the digital asset exchange node in the embodiment of the present invention can be at least one A block network interacts.Both of these case is illustrated below.
Example one:The digital asset of the same block chain network is exchanged
User 1 wants the digital asset A1 in block chain A being exchanged into digital asset A2, and will exchange result and return to certainly Oneself, which can be as shown in Figure 3.Specifically, user 1 is logged in by block chain client and to be registered on block chain A Then block chain account inputs the type A2 of the quantity and target number assets of the digital asset A1 to be exchanged, click to exchange and press Button, triggering block chain client call digital asset exchange the exchange interface of node, and by the exchange interface to digital asset It exchanges node and sends digital asset redemption request;Digital asset exchanges node and receives digital asset redemption request and determine number After assets redemption request meets redemption of conditional, by way of initiating common block chain affairs of transferring accounts to block chain A and block Chain A is communicated, and by digital asset A1 storages to its corresponding reserve assets account, is then provided from the deposit of digital asset A2 The digital asset A2 that corresponding number is taken out in account is produced, finally exchange node by digital asset feeds back to user by digital asset A2 The 1 block chain account (the block chain account for initiating digital asset redemption request) on block chain A.
If in addition, the user 1 wants exchange result feeding back to user 2, exchanging flow can be as shown in Figure 4.Also It is to say, compared with Fig. 3, the digital asset in Fig. 4 is exchanged node and exchanged after obtaining digital asset A2, needs digital asset A2 is anti- It feeds block chain account of the user 2 on block chain A.
In addition, being pointed out in the detailed annotation of above-mentioned steps 103, the storage of digital asset and extraction operation can be by reserve assets accounts One in block chain network belonging to number intelligent contract executes.In this case, it result will be exchanged returns to oneself and be Fig. 3 can be changed to Fig. 5 by example, specific flow of exchanging.I.e. digital asset exchanges node and is receiving digital asset redemption request simultaneously After determining that digital asset redemption request meets redemption of conditional, the intelligent contract on block chain A is called, it will be digital by the intelligence contract In assets A1 storages to its corresponding reserve assets account, and corresponding number is taken out from the reserve assets account of digital asset A2 Digital asset A2, by digital asset A2 feed back to digital asset exchange node, finally by digital asset exchange node will be digital Assets A2 feeds back to block chain account of the user 1 on block chain A.
Example two:The digital asset of transregional piece of chain network is exchanged
User 1 wants the digital asset A1 in block chain A being exchanged into the digital asset B1 in block chain B, and will exchange As a result oneself is returned to, which can be as shown in Figure 6.Specifically, user 1 logs in block by block chain client Then the block chain account registered on chain A inputs the type B1 of the quantity and target number assets of the digital asset A1 to be exchanged, It clicks and exchanges button, triggering block chain client call digital asset exchanges the exchange interface of node, and passes through the exchange interface Node, which is exchanged, to digital asset sends digital asset redemption request;Digital asset exchanges node and receives digital asset redemption request And after determining that digital asset redemption request meets redemption of conditional, by initiating common block chain affairs of transferring accounts to block chain A Mode is communicated with block chain A, by digital asset A1 storage to its corresponding reserve assets account, then by block The mode that chain B initiates common block chain affairs of transferring accounts is communicated with block chain B, from the reserve assets account of digital asset B1 The middle digital asset B1 for taking out corresponding number finally exchanges node by digital asset and digital asset B1 is fed back to user 1 in area Block chain account on block chain B.
If in addition, the user 1 wants exchange result feeding back to user 2, exchanging flow can be as shown in Figure 7.Also It is to say, compared with Fig. 6, the digital asset in Fig. 7 is exchanged node and exchanged after obtaining digital asset B1, needs digital asset B1 is anti- It feeds block chain account of the user 2 on block chain B.
By above-mentioned exchange flow it is found that when transregional piece of chain network carries out digital asset exchange, result will be exchanged and returned To oneself not being that will exchange result to return to the block chain account that request is exchanged, but the exchange result is returned into the user and is existed Account on another block chain.For example, Fig. 5 refers to converting the digital asset A1 in account that user 1 registers on block chain A Digital asset B1 is changed into, in the account for then registering digital asset B1 storages on block chain B to the user 1.Similarly, it exchanges As a result it is also to be to return in account of another user on another block chain to return to another user.
In addition, if the storage of digital asset and extraction operation can be by one in the affiliated block chain network of reserve assets account A intelligence contract executes, then in this case, for will exchange result and return to oneself, specific flow of exchanging can general Fig. 6 is changed to Fig. 8.I.e. digital asset exchanges node and is receiving digital asset redemption request and determining that digital asset redemption request is full After sufficient redemption of conditional, call the intelligent contract on block chain A, by the intelligent contract on block chain A by digital asset A1 storages to In its corresponding reserve assets account;Digital asset exchanges the intelligent contract on node calling block chain B, by block chain B Intelligent contract takes out the digital asset B1 of corresponding number from the reserve assets account of digital asset B1, and digital asset B1 is fed back Node is exchanged to digital asset;Node is finally exchanged by digital asset, digital asset B1 is fed back into user 1 on block chain B Block chain account.
It can be managed by individual you need to add is that digital asset in the various embodiments described above exchanges node, it can also be by Decentralization group manages, and the quantity and mode of management of specific manager can be depending on actual demands.
Further, according to above method embodiment, an alternative embodiment of the invention additionally provides a kind of digital asset Exchanging device, described device be applied to digital asset exchange node, as shown in figure 9, described device includes:
Receiving unit 31, for receiving digital asset redemption request, the digital asset exchange node be can at least Third party's node that one block chain network interacts, the digital asset redemption request include certain amount of former number money The type for the target number assets that production and request are exchanged;
Judging unit 32, for judging whether the digital asset redemption request meets redemption of conditional;
Storage unit 33, for when meeting the redemption of conditional, the former digital asset to be stored to the former number In reserve assets account corresponding to assets;
Feedback unit 34, for according between former digital asset and target number assets exchange proportion and it is described number provide The quantity of redemption request Central Plains digital asset is produced, the digital asset in the reserve assets account corresponding to target number assets is anti- Digital asset of feeding exchanges recipient.
Optionally, as shown in Figure 10, the judging unit 32 includes:
First judgment module 321 is converted for judging whether the type of the target number assets belongs to the digital asset Change the type for allowing to exchange in the block chain network that node is managed;
Determining module 322, for when belonging to, according between former digital asset and target number assets exchange proportion and The quantity of digital asset redemption request Central Plains digital asset, determines the reserve assets account corresponding to the target number assets Whether the digital asset stored in number meets quantity demand;If meeting the quantity demand, it is determined that the digital asset is exchanged Request meets the redemption of conditional;
The determining module 322 is additionally operable to otherwise, it determines the digital asset redemption request is unsatisfactory for the exchange item Part.
Optionally, the receiving unit 31, the number for being sent by exchanging interface digital asset redemption request side Word assets redemption request.
Optionally, it includes digital asset redemption request side and/or except the number provides that the digital asset, which exchanges recipient, The recipient that digital asset requesting party other than production redemption request side, described specifies.
Optionally, as shown in Figure 10, described device further includes:
Adjustment unit 35, for according to actual demand, adding digital asset into existing reserve assets account, or from institute It states in existing reserve assets account and extracts digital asset;
And/or according to the actual demand, reserve assets account is added for the block chain network, or by existing storage Standby assets account is deleted from the block chain network.
Optionally, the storage unit 33, for the former digital asset to be sent to the affiliated area of the former digital asset Intelligent contract in block chain network, so that the intelligent contract is right to the former digital asset institute by the former digital asset storage In the reserve assets account answered;
The feedback unit 34, for according between former digital asset and target number assets exchange proportion and the number The quantity of word assets redemption request Central Plains digital asset determines the quantity for the target number assets for needing to exchange;By the target The type and quantity of digital asset are sent to the intelligent contract in the affiliated block chain network of the target number assets, so as to described The reserve assets account of intelligent contract in the affiliated block chain network of target number assets corresponding to the target number assets The middle target number assets for taking out determining quantity;Receive the intelligent contract in the affiliated block chain network of the target number assets The target number assets of transmission, and the target number assets received are fed back into the digital asset and exchange recipient.
Optionally, the feedback unit 34 is additionally operable to when being unsatisfactory for the redemption of conditional, by the certain amount of original Digital asset returns to digital asset redemption request side.
Optionally, the digital asset is exchanged node and is managed by individual management or by decentralization group.
The exchanging device of the digital asset includes pocessor and storage media, above-mentioned receiving unit, judging unit, storage Unit, feedback unit etc. are stored in a storage medium as program unit, are stored in a storage medium by processor execution Above procedure unit realizes corresponding function.
The device that digital asset provided in an embodiment of the present invention is exchanged, can by can at least one block chain network into Third party's node (i.e. digital asset exchanges node) of row interaction receives the digital asset that digital asset redemption request side is sent and converts Request is changed, and when determining that digital asset redemption request meets redemption of conditional, it can be by the former number in digital asset redemption request In word asset store to the reserve assets account corresponding to it, then according to converting between former digital asset and target number assets The quantity for changing ratio and the digital asset redemption request Central Plains digital asset, by the reserve assets account corresponding to target number assets Digital asset in number feeds back to digital asset and exchanges recipient, to realize that automation is exchanged, without being based on third party's reality Body place, is exchanged by manual negotiations, and then simplifies exchange flow, improves exchange efficiency.
An embodiment of the present invention provides a kind of storage medium, the storage medium includes the program of storage, wherein described Equipment program controls the storage medium when running where executes the exchanging method of digital asset as described above.
Storage medium may include the volatile memory in computer-readable medium, random access memory (RAM) And/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one Storage chip.
The instruction stored in storage medium provided in an embodiment of the present invention, can be by can be at least one block chain network The third party's node (i.e. digital asset exchanges node) interacted receives the digital asset that digital asset redemption request side is sent Redemption request, and when determining that digital asset redemption request meets redemption of conditional, it can be by the original in digital asset redemption request In digital asset storage to the reserve assets account corresponding to it, then according between former digital asset and target number assets The quantity of exchange proportion and the digital asset redemption request Central Plains digital asset, by the reserve assets corresponding to target number assets Digital asset in account feeds back to digital asset and exchanges recipient, to realize that automation is exchanged, without being based on third party Entity place, is exchanged by manual negotiations, and then simplifies exchange flow, improves exchange efficiency.
An embodiment of the present invention provides a kind of exchanging device of digital asset, described device includes storage medium and processing Device;
The processor is adapted for carrying out each instruction;
The storage medium is suitable for storing a plurality of instruction;
Described instruction is suitable for being loaded by the processor and being executed the exchanging method of digital asset as described above.
Include kernel in processor, is gone in storage medium to transfer corresponding program unit by kernel.Kernel can be arranged one It is a or more, the efficiency of digital asset exchange is improved by adjusting kernel parameter.
The device that digital asset provided in an embodiment of the present invention is exchanged, can by can at least one block chain network into Third party's node (i.e. digital asset exchanges node) of row interaction receives the digital asset that digital asset redemption request side is sent and converts Request is changed, and when determining that digital asset redemption request meets redemption of conditional, it can be by the former number in digital asset redemption request In word asset store to the reserve assets account corresponding to it, then according to converting between former digital asset and target number assets The quantity for changing ratio and the digital asset redemption request Central Plains digital asset, by the reserve assets account corresponding to target number assets Digital asset in number feeds back to digital asset and exchanges recipient, to realize that automation is exchanged, without being based on third party's reality Body place, is exchanged by manual negotiations, and then simplifies exchange flow, improves exchange efficiency.
Present invention also provides a kind of computer program products, when being executed on data processing equipment, are adapted for carrying out just The program code of beginningization there are as below methods step:
Digital asset exchanges node and receives digital asset redemption request, the digital asset exchange node be can at least Third party's node that one block chain network interacts, the digital asset redemption request include certain amount of former number money The type for the target number assets that production and request are exchanged;
The digital asset exchanges node and judges whether the digital asset redemption request meets redemption of conditional;
If meeting the redemption of conditional, by the deposit corresponding to the former digital asset storage to the former digital asset In assets account, and according between former digital asset and target number assets exchange proportion and the digital asset redemption request Digital asset in reserve assets account corresponding to target number assets is fed back to digital money by the quantity of Central Plains digital asset Recipient is exchanged in production.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, the application can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
It these are only embodiments herein, be not intended to limit this application.To those skilled in the art, The application can have various modifications and variations.It is all within spirit herein and principle made by any modification, equivalent replacement, Improve etc., it should be included within the scope of claims hereof.

Claims (11)

1. a kind of exchanging method of digital asset, which is characterized in that the method includes:
Digital asset exchanges node and receives digital asset redemption request, the digital asset exchange node be can with it is at least one Third party's node that block chain network interacts, the digital asset redemption request include certain amount of former digital asset and Ask the type for the target number assets exchanged;
The digital asset exchanges node and judges whether the digital asset redemption request meets redemption of conditional;
If meeting the redemption of conditional, by the reserve assets corresponding to the former digital asset storage to the former digital asset In account, and according between former digital asset and target number assets exchange proportion and digital asset redemption request Central Plains Digital asset in reserve assets account corresponding to target number assets is fed back to digital asset and converted by the quantity of digital asset Changing-over debit.
2. according to the method described in claim 1, it is characterized in that, the digital asset, which exchanges node, judges the digital asset Whether redemption request meets redemption of conditional:
The digital asset exchanges node and judges whether the type of the target number assets belongs to the digital asset and exchange section Allow the type exchanged in the managed block chain network of point;
If belonging to, according between former digital asset and target number assets exchange proportion and the digital asset redemption request The quantity of Central Plains digital asset determines that the digital asset stored in the reserve assets account corresponding to the target number assets is It is no to meet quantity demand;If meeting the quantity demand, it is determined that the digital asset redemption request meets the redemption of conditional;
Otherwise, it determines the digital asset redemption request is unsatisfactory for the redemption of conditional.
3. according to the method described in claim 1, it is characterized in that, digital asset, which exchanges node, receives digital asset redemption request Including:
The digital asset is exchanged node and is exchanged by exchanging the digital asset that interface digital asset redemption request side is sent Request.
4. according to the method described in claim 1, it is characterized in that, it includes that digital asset is converted that the digital asset, which exchanges recipient, Change the recipient that requesting party and/or in addition to the digital asset redemption request side, described digital asset requesting party specify.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
According to actual demand, digital asset is added into existing reserve assets account, or from the existing reserve assets account Middle extraction digital asset;
And/or according to the actual demand, reserve assets account is added for the block chain network, or existing deposit is provided Production account is deleted from the block chain network.
6. according to the method described in claim 1, it is characterized in that, by the former digital asset storage to the former digital asset In corresponding reserve assets account, and according between former digital asset and target number assets exchange proportion and the number The quantity of assets redemption request Central Plains digital asset, by the digital asset in the reserve assets account corresponding to target number assets Feeding back to digital asset exchange recipient includes:
The former digital asset is sent to the intelligent contract in the affiliated block chain network of the former digital asset, so as to the intelligence Energy contract will be in the reserve assets account corresponding to the former digital asset storage to the former digital asset;
According to the exchange proportion and digital asset redemption request Central Plains number between former digital asset and target number assets The quantity of assets determines the quantity for the target number assets for needing to exchange;
The type and quantity of the target number assets are sent to the intelligence in the affiliated block chain network of the target number assets Can contract, so that the intelligent contract in the affiliated block chain network of the target number assets is corresponding to the target number assets Reserve assets account in take out the target number assets of determining quantity;
The target number assets that the intelligent contract in the affiliated block chain network of the target number assets is sent are received, and will be received To target number assets feed back to the digital asset and exchange recipient.
7. the method according to any one of claim 1, which is characterized in that the method further includes:
If being unsatisfactory for the redemption of conditional, the certain amount of former digital asset is returned into digital asset redemption request Side.
8. method according to any one of claim 1 to 7, which is characterized in that the digital asset exchanges node by a Body management is managed by decentralization group.
9. a kind of exchanging device of digital asset, described device is applied to digital asset and exchanges node, which is characterized in that the dress Set including:
Receiving unit, for receiving digital asset redemption request, the digital asset exchange node is can be at least one area Third party's node that block chain network interacts, the digital asset redemption request include certain amount of former digital asset and ask Seek the type of the target number assets of exchange;
Judging unit, for judging whether the digital asset redemption request meets redemption of conditional;
Storage unit, for when meeting the redemption of conditional, the former digital asset to be stored to the former digital asset institute In corresponding reserve assets account;
Feedback unit, for according between former digital asset and target number assets exchange proportion and the digital asset exchange The quantity for asking Central Plains digital asset, feeds back to number by the digital asset in the reserve assets account corresponding to target number assets Word assets exchange recipient.
10. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require 1 to the digital asset described in any one of claim 8 Exchanging method.
11. a kind of exchanging device of digital asset, which is characterized in that described device includes storage medium and processor;
The processor is adapted for carrying out each instruction;
The storage medium is suitable for storing a plurality of instruction;
Described instruction is suitable for being loaded by the processor and being executed as described in any one of claim 1 to claim 8 The exchanging method of digital asset.
CN201810279536.XA 2018-03-30 2018-03-30 The method and device that digital asset is exchanged Pending CN108648075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810279536.XA CN108648075A (en) 2018-03-30 2018-03-30 The method and device that digital asset is exchanged

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810279536.XA CN108648075A (en) 2018-03-30 2018-03-30 The method and device that digital asset is exchanged

Publications (1)

Publication Number Publication Date
CN108648075A true CN108648075A (en) 2018-10-12

Family

ID=63745017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810279536.XA Pending CN108648075A (en) 2018-03-30 2018-03-30 The method and device that digital asset is exchanged

Country Status (1)

Country Link
CN (1) CN108648075A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472578A (en) * 2018-10-16 2019-03-15 东方银谷(北京)投资管理有限公司 The processing method and processing device of digital asset
CN109669955A (en) * 2018-12-20 2019-04-23 姚前 A kind of digital asset inquiry system and method based on block chain
CN109670829A (en) * 2018-12-20 2019-04-23 姚前 The system and method that a kind of digital asset returns park assets after freezing
CN109727129A (en) * 2018-12-18 2019-05-07 杭州茂财网络技术有限公司 A kind of data trade method and its equipment
CN109872235A (en) * 2019-01-25 2019-06-11 东莞市大易产业链服务有限公司 A kind of digital asset interoperability methods based on block chain technology
CN111612453A (en) * 2019-02-22 2020-09-01 北京趣块远扬科技有限公司 Decentralized transaction method and device based on block chain and electronic equipment
CN113469809A (en) * 2021-06-18 2021-10-01 巨建华 Digital asset cross-chain transaction method and system
CN113762942A (en) * 2021-09-15 2021-12-07 虎彩印艺股份有限公司 Block chain technology-based digital asset exchange method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472578A (en) * 2018-10-16 2019-03-15 东方银谷(北京)投资管理有限公司 The processing method and processing device of digital asset
CN109727129A (en) * 2018-12-18 2019-05-07 杭州茂财网络技术有限公司 A kind of data trade method and its equipment
CN109669955A (en) * 2018-12-20 2019-04-23 姚前 A kind of digital asset inquiry system and method based on block chain
CN109670829A (en) * 2018-12-20 2019-04-23 姚前 The system and method that a kind of digital asset returns park assets after freezing
CN109669955B (en) * 2018-12-20 2022-05-31 姚前 Digital asset query system and method based on block chain
CN109872235A (en) * 2019-01-25 2019-06-11 东莞市大易产业链服务有限公司 A kind of digital asset interoperability methods based on block chain technology
CN109872235B (en) * 2019-01-25 2020-09-29 东莞市大易产业链服务有限公司 Digital asset intercommunication method based on block chain technology
CN111612453A (en) * 2019-02-22 2020-09-01 北京趣块远扬科技有限公司 Decentralized transaction method and device based on block chain and electronic equipment
CN113469809A (en) * 2021-06-18 2021-10-01 巨建华 Digital asset cross-chain transaction method and system
CN113762942A (en) * 2021-09-15 2021-12-07 虎彩印艺股份有限公司 Block chain technology-based digital asset exchange method

Similar Documents

Publication Publication Date Title
CN108648075A (en) The method and device that digital asset is exchanged
Kleiner et al. Extreme points and majorization: Economic applications
CN108711040A (en) Exchanging method, the apparatus and system of digital asset
CN108090225A (en) Operation method, device, system and the computer readable storage medium of database instance
CN110138865B (en) Spatial crowdsourcing task allocation method, device, equipment and storage medium
US11367068B2 (en) Decentralized blockchain for artificial intelligence-enabled skills exchanges over a network
US20220300954A1 (en) Decentralized tagging using tokenized strings
Nguyen et al. Monad: Self-adaptive micro-service infrastructure for heterogeneous scientific workflows
CN108763389A (en) The integration method and device of data, storage medium, terminal
Gutierrez-Garcia et al. Agent-based cloud bag-of-tasks execution
Jain et al. Combinatorial auction based multi-task resource allocation in fog environment using blockchain and smart contracts
Lonshakov et al. Robonomics: platform for integration of cyber physical systems into human economy
Zeng et al. Operational cost-aware resource provisioning for continuous write applications in cloud-of-clouds
Tusa et al. Microservices and serverless functions—lifecycle, performance, and resource utilisation of edge based real-time IoT analytics
US10855617B1 (en) System and method for controlling access to resources in a multicomputer network
CN108765143A (en) The exchanging method and device of digital asset
US11658942B2 (en) Maintaining security in digital electronic transfers through use of a label tracking system
CN111275557A (en) Method and device for controlling risk of resource management
Ni et al. An ant colony optimization for the composite SaaS placement problem in the cloud
US11876861B2 (en) Data management method, data management device, blockchain network and system
CN111669341B (en) Internet resource scheduling method and device
KR20220079283A (en) Server for managing creative product transaction service and its operation method
Mahato et al. Reliability analysis in grid system considering load
CN111353766A (en) Service process processing system and method of distributed service system
CN111402018A (en) Method and system for reporting resource budget

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: 20181012

RJ01 Rejection of invention patent application after publication