CN111275414A - Block chain-based digital currency exchange method, device and system - Google Patents

Block chain-based digital currency exchange method, device and system Download PDF

Info

Publication number
CN111275414A
CN111275414A CN201911415748.7A CN201911415748A CN111275414A CN 111275414 A CN111275414 A CN 111275414A CN 201911415748 A CN201911415748 A CN 201911415748A CN 111275414 A CN111275414 A CN 111275414A
Authority
CN
China
Prior art keywords
currency
stable
blockchain
blinding
utxo
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
CN201911415748.7A
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.)
Shenzhen Onething Technology Co Ltd
Shenzhen Xunlei Network Technology Co Ltd
Original Assignee
Shenzhen Onething 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 Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201911415748.7A priority Critical patent/CN111275414A/en
Publication of CN111275414A publication Critical patent/CN111275414A/en
Pending legal-status Critical Current

Links

Images

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • G06Q20/3678Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes e-cash details, e.g. blinded, divisible or detecting double spending
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/381Currency conversion
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • 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

Abstract

The invention discloses a digital currency exchange method, a device and a system based on a block chain. Through the scheme, the Account model and the UTXO model are combined together, the open coins on the first block chain are exchanged into the first stable coins based on the first fixed exchange rate, the first stable coins on the first block chain are exchanged into the second stable coins on the second block chain based on the second fixed exchange rate, the second stable coins are blinded, the second stable coins after blinding are exchanged into the privacy coins, and chain-crossing operation is performed on the digital currency exchange based on the block chains on the premise of privacy protection, so that the purpose of verifying the legality of transaction is achieved.

Description

Block chain-based digital currency exchange method, device and system
Technical Field
The invention relates to the technical field of block chains, in particular to a digital currency conversion method and a digital currency conversion system.
Background
With the progress of blockchain technology and the development of digital currency, digital currency is widely used as a certificate for transactions on a network, and is widely applied to activities such as transactions, consumption and the like on the network. Digital currency is a virtual currency based on a network of nodes and digital encryption algorithms, usually issued and managed by developers, accepted and used by members of a particular virtual community.
The conventional blockchain technology is generally divided into an Unspent Transaction Output (UTXO) model represented by bitcoin and an Account model represented by etherhouse. The UTXO model is a stateless model, with each transaction on the blockchain being a transition of UXTO. Each unspent UTXO model is only related to the last UTXO model and has no association with any other UTXOs, and privacy protection on the UTXO model is relatively easy to implement since no global state is required. Therefore, to achieve privacy for digital currency transactions, the UTXO model is typically employed. The Account model is a stateful model, each block in a block chain has a global world state, the global world state is global and corresponds to the Account balance of the block chain, and the change of the Account balance of each transaction or only contract call can cause the update of the global world state. Therefore, in order to make the blockchain better support the intelligent contract, the extensibility of the blockchain is prompted, and the Account model is usually adopted.
However, the Account model is suitable for cross-chaining, and the change of the world state easily reveals the privacy of the party to which the state belongs, so that the difficulty of implementing privacy protection of the transaction sender, the transaction receiver and the transaction amount by the Account model is high. The UTXO model is suitable for privacy protection, and since the state of the UTXO model may be scattered on each transaction of the blockchain history without an aggregated set, when a determination of the validity of the state needs to be made, the historical blocks need to be traversed, which causes resource consumption, and thus makes it difficult to implement the UTXO model across chains. Therefore, it is difficult to verify the validity of the transaction regardless of the UTXO model or the Account model.
Disclosure of Invention
In view of this, the invention discloses a block chain-based digital currency conversion method, device and system, which combines an Account model and a UTXO model together to enable the digital currency conversion to perform a chain-crossing operation on the premise of privacy protection, thereby achieving the purpose of verifying the validity of the transaction.
In order to achieve the above object, the following solutions are proposed:
the invention discloses a digital currency conversion method based on a block chain in a first aspect, which comprises the following steps:
exchanging the open currency on a first blockchain into a first stable currency based on the intelligent contract, wherein the first stable currency and a reference currency have a first fixed exchange rate therebetween, and the first blockchain executes the transaction based on an Account model;
exchanging the first stable currency for the second stable currency on the second blockchain based on a second fixed rate, wherein the second blockchain performs transactions based on a UTXO model, the second stable currency having a third fixed rate with the reference currency;
and blinding the second stable currency, and exchanging the second stable currency after blinding into a privacy currency.
Preferably, the exchanging the first stable currency for the second stable currency on the second blockchain based on a second fixed exchange rate includes:
and performing exchange operation on the first stable currency based on a second fixed exchange rate in a Hash Lock mode to obtain the second stable currency of the second block chain.
Preferably, the blinding the second stable currency and exchanging the second stable currency after blinding into the private currency include:
blinding the second stable currency based on a currency mixing strategy;
and exchanging the second stable currency after blinding into a privacy currency based on a set exchange proportion.
Preferably, the blinding the second stable banknote based on the banknote-mixing policy includes:
and blinding the real UTXO address corresponding to the second stable coin based on a coin mixing strategy to obtain the second stable coin corresponding to a plurality of UTXO addresses, wherein the plurality of UTXO addresses comprise the real UTXO address and a non-real UTXO address.
In a second aspect, the invention discloses a blockchain based digital currency conversion apparatus, the apparatus comprising a memory and a processor, the memory having stored thereon a blockchain based digital currency conversion program operable on the processor, the blockchain based digital currency conversion program when executed by the processor implementing the method as in any one of the first aspect disclosed.
In a third aspect, the present invention discloses a block chain based digital currency conversion system, the system comprising:
a first exchange unit, configured to exchange a public currency on a first blockchain into a first stable currency based on a smart contract, wherein the first stable currency has a first fixed exchange rate with a reference currency, and the first blockchain executes a transaction based on an Account model;
a second exchange unit configured to exchange the first stable currency into the second stable currency on the second blockchain based on a second fixed rate, wherein the second blockchain performs a transaction based on a UTXO model, and the second stable currency has a third fixed rate with respect to the reference currency;
and the blinding unit is used for blinding the second stable currency and exchanging the second stable currency after blinding into the privacy currency.
Preferably, the second redemption unit is specifically configured to:
and performing exchange operation on the first stable currency based on a second fixed exchange rate in a Hash Lock mode to obtain the second stable currency of the second block chain.
Preferably, the blinding unit is specifically configured to:
blinding the second stable currency based on a currency mixing strategy; and exchanging the second stable currency after blinding into a privacy currency based on a set exchange proportion.
A fourth aspect of the present invention discloses a computer readable storage medium having stored thereon a blockchain based digital currency conversion program executable by one or more processors to implement the method of blockchain based digital currency conversion as any one of the first aspect of the present disclosure.
A fifth aspect of the invention discloses a computer program product comprising computer instructions which, when run on a computer, cause the computer to perform any of the blockchain based digital currency conversion methods disclosed in the first aspect.
According to the technical scheme, the invention discloses a digital currency exchange method, a device and a system based on a block chain, which are used for exchanging open currency on a first block chain into first stable currency based on an intelligent contract, wherein a first fixed exchange rate is formed between the first stable currency and reference currency, and the first block chain executes transaction based on an Account model; and exchanging the first stable currency into a second stable currency on the second blockchain based on a second fixed exchange rate, wherein the second blockchain executes transaction based on a UTXO model, a third fixed exchange rate exists between the second stable currency and the reference currency, the second stable currency is subjected to blinding, and the second stable currency after blinding is exchanged into a privacy currency. Through the scheme, the Account model and the UTXO model are combined together, the open coins on the first block chain are exchanged into the first stable coins based on the first fixed exchange rate, the first stable coins on the first block chain are exchanged into the second stable coins on the second block chain based on the second fixed exchange rate, the third fixed exchange rate is arranged between the second stable coins and the reference currency, the second stable coins are blinded, the second stable coins after blinding are exchanged into the private coins, and the digital currency exchange based on the block chains is subjected to chain crossing operation on the premise of privacy protection, so that the purpose of verifying the legality of transaction is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart of a block chain-based digital currency conversion method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a process of blinding a second stable banknote and exchanging the second stable banknote after blinding into a private banknote according to the embodiment of the present invention;
fig. 3 is a schematic structural diagram of a digital currency conversion apparatus based on a blockchain according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a block chain-based digital currency conversion system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, the Account model is suitable for cross-chaining, and the change of the world state easily reveals the privacy of a party to which the state belongs, so that the Account model has higher difficulty in realizing privacy protection of a transaction sender, a transaction receiver and transaction amount. The UTXO model is suitable for privacy protection, and since the state of the UTXO model may be scattered on each transaction of the blockchain history without an aggregated set, when a determination of the validity of the state needs to be made, the historical blocks need to be traversed, which causes resource consumption, and thus makes it difficult to implement the UTXO model across chains. Therefore, it is difficult to verify the validity of the transaction regardless of the UTXO model or the Account model.
Therefore, the invention discloses a digital currency conversion method, a device and a system based on a block chain, which combine an Account Account model and an unconsumed Transaction Output (UTXO) model together, so that the digital currency conversion based on the block chain is operated in a chain-crossing manner under the premise of privacy protection, thereby realizing the purpose of verifying the legality of the Transaction.
As shown in fig. 1, a schematic flow chart of a block chain-based digital currency conversion method according to an embodiment of the present invention specifically includes the following steps:
step S101: the open currency on the first blockchain is exchanged for a first stable currency based on the smart contract.
The first stable currency and the reference currency have a first fixed exchange rate, and the first block chain executes the transaction based on the Account model.
The first stable currency and the reference currency can be exchanged with each other.
Smart contracts are a computer protocol that all propagate, validate or execute contracts in an informational manner, allowing trusted transactions to be conducted without third parties, which transactions are traceable and irreversible.
The first block chain executes a digital currency trading contract containing a matching success result based on an Account model, the digital currency trading contract can be subjected to public calculation, contract codes are executed, and input and output information needs to be isolated from the real identity of a user through a temporary storage address.
Open currency refers to currency without privacy protection, such as ethernet currency.
A stable currency refers to a digital currency that hooks at a fixed exchange rate with a reference currency.
The reference currency is known as digital currency. The first fixed exchange rate is a pre-agreed exchange rate between the first stable currency and the reference currency.
Step S102: exchanging the first stable currency for a second stable currency on a second blockchain based on a second fixed exchange rate.
Wherein the second blockchain executes the transaction based on the UTXO model, and the second stable currency and the reference currency have a third fixed exchange rate. The third fixed exchange rate is a pre-agreed exchange rate between the first stable currency and the reference currency.
The UTXO model is a data structure containing transaction data and execution code.
In the specific implementation process of step S102, the first stable currency on the first blockchain and the second stable currency on the second blockchain have the same reference currency exchange value, and the first stable currency on the first blockchain and the second stable currency on the second blockchain are exchanged by the second fixed exchange rate.
Step S103: and blinding the second stable currency, and exchanging the second stable currency after blinding into the privacy currency.
For the UTXO address newly added into the system or the public UTXO address, the UTXO address can be blinded through privacy protection transaction, namely the UTXO address is hidden.
The blinding method uses the public UTXO address as input, initiates a privacy protection transaction, and outputs a ring consisting of a plurality of UTXO addresses.
Other user blocks or block nodes cannot judge which member of the ring the real UTXO address is, so as to implement privacy protection on the contract account amount and the contract account address of the digital transaction contract. To achieve better hard-to-track properties, larger scale loops may be employed, or the number of rounds of blinding operations may be increased.
And the UTXO model is utilized to carry out privacy protection on the digital assets, and the privacy protection method can be ring signature, ring signature secure transaction RingCT, zero knowledge proof and the like. The invention is not limited specifically by the method for protecting the privacy of the digital assets by utilizing the UTXO model, and the method is selected by technicians according to actual conditions.
The scheme is based on the original UTXO model privacy block chain and the block chain of the Account model supporting the intelligent contract, is simple to realize, uses stable coins as exchange bridges between double chains, has no price fluctuation and has public trust.
The UTXO model and the Account model are combined together, the advantages of the two models are exerted, the new block chain digital currency system can support the intelligent contract to meet the code execution with complete graphic flexibility on the premise of supporting high-level privacy protection capability, and meanwhile, fragmentation/chain crossing can be supported, and efficient expansion of the performance of the block chain system is realized.
The embodiment of the invention discloses a digital currency exchange method based on a block chain, which is characterized in that open currency on a first block chain is exchanged into first stable currency based on an intelligent contract, wherein a first fixed exchange rate is formed between the first stable currency and reference currency, and the first block chain executes transaction based on an Account model; and exchanging the first stable currency into a second stable currency on the second blockchain based on a second fixed exchange rate, wherein the second blockchain executes transaction based on a UTXO model, a third fixed exchange rate exists between the second stable currency and the reference currency, the second stable currency is subjected to blinding, and the second stable currency after blinding is exchanged into a privacy currency. Through the scheme, the Account model and the UTXO model are combined together, the open coins on the first block chain are exchanged into the first stable coins based on the first fixed exchange rate, the first stable coins on the first block chain are exchanged into the second stable coins on the second block chain based on the second fixed exchange rate, the third fixed exchange rate is arranged between the second stable coins and the reference currency, the second stable coins are blinded, the second stable coins after blinding are exchanged into the private coins, and the digital currency exchange based on the block chains is subjected to chain crossing operation on the premise of privacy protection, so that the purpose of verifying the legality of transaction is achieved.
The process of exchanging the first stable coin for the second stable coin on the second blockchain based on the fixed exchange rate in step S102 is as follows:
and performing exchange operation on the first stable currency based on a second fixed exchange rate in a Hash Lock mode to obtain a second stable currency of a second block chain.
The Hash Lock (Hash Lock) mode is a more perfect technology for security and privacy of unauthorized access of address tags.
It should be noted that the first stable currency and the second stable currency can be exchanged at an exchange ratio of 1: 1.
In the embodiment of the invention, in a Hash Lock mode, exchange operation is carried out on the first stable currency according to a second fixed exchange rate to obtain a second stable currency of a second block chain, so that the aim of mutually exchanging the first stable currency and the second stable currency is fulfilled.
In the above step S103, a process of blinding the second stable banknote and exchanging the blinded second stable banknote as the privacy banknote is involved, as shown in fig. 2, the process specifically includes the following steps:
step S201: and blinding the second stable coin based on the coin mixing strategy.
It should be noted that the second stable coin of the second block chain is blinded by the coin mixing policy, so as to protect certain privacy.
The coin mixing strategy is a decentralized privacy function, and can enable a user to be quickly and efficiently mixed with funds of other users, and a random mapping relation is established between an existing user account and a new account after coin mixing, so that complete anonymity is realized.
Step S202: and exchanging the second blinded stable currency into the privacy currency based on the set exchange proportion.
In the process of implementing step S202, performing mutual exchange between the second stable banknote and the privacy banknote based on the UTXO model in the second blockchain.
It should be noted that after the second stable currency is exchanged into the privacy currency, the privacy of the sender, the receiver and the amount of the digital currency is protected.
In the embodiment of the invention, the second stable currency is blinded based on the currency mixing strategy, and the blinded second stable currency is exchanged into the privacy currency based on the set exchange proportion, so that the purpose of protecting the privacy of the second stable currency is realized.
Based on the process of blinding the second stable banknote based on the banknote mixing strategy in the step S201, the following steps are performed:
and blinding the UTXO address corresponding to the second stable coin based on a coin mixing strategy to obtain a second stable coin corresponding to a plurality of UTXO addresses, wherein the plurality of UTXO addresses comprise real UTXO addresses and non-real UTXO addresses.
It should be noted that the mixed currency policy is an anonymous policy derived from the bit currency transaction, and can protect the privacy of the bit currency user when performing the transaction. The real UTXO address is the address of the UTXO that is transferred to or from the currency after the currency conversion operation.
The blinding method is to use the public UTXO address as input, initiate a privacy protection transaction, and output a second stable coin with a plurality of UTXO addresses, namely, output a ring formed by a plurality of UTXO addresses, wherein the plurality of UTXO addresses comprise real UTXO addresses and non-real UTXO addresses, and other users or block nodes cannot judge which UTXO address in the ring the real UTXO address is, so as to realize the privacy protection of the account amount and the account address of the transaction.
To achieve better hard-to-track properties, larger scale loops may be employed, increasing the number of rounds of blinding operations.
In the embodiment of the invention, the UTXO address corresponding to the second stable coin is blinded based on the coin mixing strategy to obtain the second stable coin corresponding to a plurality of UTXO addresses, and the plurality of UTXO addresses comprise real UTXO addresses and non-real UTXO addresses, so that other users or block nodes cannot judge which UTXO address in the ring the real UTXO address is, and the purpose of protecting the privacy of the second stable coin is realized.
An embodiment of the present invention further provides a blockchain-based digital currency conversion apparatus, as shown in fig. 3, the apparatus includes a memory 11 and a processor 12, the memory 11 stores thereon a blockchain-based digital currency conversion program executable on the processor 12, and the blockchain-based digital currency conversion program implements a blockchain-based digital currency conversion method when executed by the processor.
In this embodiment, the digital currency conversion apparatus based on the blockchain may be a PC (Personal Computer), or may also be a smart phone, a tablet Computer, a palmtop Computer, a portable Computer, or a terminal device.
The blockchain-based digital currency conversion apparatus may include a memory 11, a processor 12 and a bus 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the blockchain based digital currency conversion apparatus, for example a hard disk of the blockchain based digital currency conversion apparatus. The memory 11 may also be an external storage device of the block chain based Digital currency conversion apparatus in other embodiments, such as a plug-in hard disk provided on the block chain based Digital currency conversion apparatus, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash Card (FlashCard), and so on. Further, the memory 11 may also include both an internal storage unit and an external storage device of the blockchain-based digital currency conversion apparatus. The memory 11 may be used not only to store application software installed in the block chain-based digital currency conversion apparatus and various types of data, such as a code of the block chain-based digital currency conversion program 01, etc., but also to temporarily store data that has been output or will be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip in some embodiments, and is used for running program codes stored in the memory 11 or Processing data, such as executing the block chain-based digital currency exchange program 01.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
Further, the blockchain-based digital currency conversion apparatus may further include a network interface, and the network interface 14 may optionally include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are generally used for establishing a communication connection between the blockchain-based digital currency conversion apparatus and other electronic devices.
Optionally, the block chain based digital currency conversion apparatus may further comprise a user interface, the user interface may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED display
(Organic Light-Emitting Diode) touch panel, and the like. Wherein the display may also be suitably referred to as a display screen or display unit for displaying information processed in the blockchain based digital currency exchange device and for displaying a visual user interface.
While fig. 3 shows only the blockchain based digital currency conversion apparatus having the components 11-13 and the blockchain based digital currency conversion program 01, those skilled in the art will appreciate that the configuration shown in fig. 3 does not constitute a limitation of the blockchain based digital currency conversion apparatus and may include fewer or more components than shown, or some components in combination, or a different arrangement of components.
Based on the above digital currency conversion method based on the blockchain disclosed in the embodiment of the present invention, the embodiment of the present invention also correspondingly discloses a digital currency conversion system based on the blockchain, as shown in fig. 4, the digital currency conversion system based on the blockchain mainly includes:
a first exchange unit 401, configured to exchange the public currency on the first blockchain into the first stable currency based on the smart contract.
The first stable currency and the reference currency have a first fixed exchange rate, and the first block chain executes the transaction based on the Account model.
A second exchanging unit 402, configured to exchange the first stable currency with the second stable currency on the second blockchain based on a second fixed exchange rate.
Wherein the second blockchain executes a transaction based on the UTXO model, the second stable currency having a third fixed exchange rate with the reference currency.
Further, the second exchanging unit 402 is specifically configured to perform an exchanging operation on the first stable currency based on a second fixed exchange rate in a Hash Lock mode, so as to obtain a second stable currency of the second block chain.
And a blinding unit 403, configured to blind the second stable currency, and exchange the blinded second stable currency as a privacy currency.
Further, the blinding unit 403 includes:
and the blinding module is used for blinding the second stable coin based on the coin mixing strategy.
And the exchange module is used for exchanging the second blind stable currency into the privacy currency based on the set exchange proportion.
Further, the blinding module is specifically configured to blindly use the UTXO address corresponding to the second stable banknote with the banknote-and-coin mixing strategy to obtain a second stable banknote corresponding to the multiple UTXOs, where the multiple UTXO addresses include a real UTXO address and a non-real UTXO address.
The embodiment of the invention discloses a digital currency exchange system, which is characterized in that open currency on a first block chain is exchanged into first stable currency based on an intelligent contract, wherein a first fixed exchange rate is formed between the first stable currency and reference currency, and the first block chain executes transaction based on an Account model; and exchanging the first stable currency into a second stable currency on the second blockchain based on a second fixed exchange rate, wherein the second blockchain executes transaction based on a UTXO model, a third fixed exchange rate exists between the second stable currency and the reference currency, the second stable currency is blinded, and the blinded second stable currency is exchanged into a privacy currency. Through the scheme, the Account model and the UTXO model are combined together, the open coins on the first block chain are exchanged into the first stable coins based on the first fixed exchange rate, the first stable coins on the first block chain are exchanged into the second stable coins on the second block chain based on the second fixed exchange rate, the third fixed exchange rate is arranged between the second stable coins and the reference currency, the second stable coins are blinded, the second stable coins after blinding are exchanged into the private coins, and the digital currency exchange based on the block chains is subjected to chain crossing operation on the premise of privacy protection, so that the purpose of verifying the legality of transaction is achieved.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon a blockchain-based digital currency conversion program, which is executable by one or more processors to implement the above-mentioned blockchain-based digital currency conversion method.
Embodiments of the present invention also provide a computer program product comprising computer instructions which, when run on a computer, enable the computer to perform the above-described blockchain-based digital currency conversion method.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A blockchain-based digital currency conversion method, the method comprising:
exchanging the open currency on a first blockchain into a first stable currency based on the intelligent contract, wherein the first stable currency and a reference currency have a first fixed exchange rate therebetween, and the first blockchain executes the transaction based on an Account model;
exchanging the first stable currency for the second stable currency on the second blockchain based on a second fixed rate, wherein the second blockchain performs transactions based on a UTXO model, the second stable currency having a third fixed rate with the reference currency;
and blinding the second stable currency, and exchanging the second stable currency after blinding into a privacy currency.
2. The method of claim 1, wherein the exchanging the first stable currency for the second stable currency on the second blockchain based on a second fixed exchange rate comprises:
and performing exchange operation on the first stable currency based on a second fixed exchange rate in a Hash Lock mode to obtain the second stable currency of the second block chain.
3. The method according to claim 1, wherein the blinding the second stable currency and exchanging the blinded second stable currency for a privacy currency comprises:
blinding the second stable currency based on a currency mixing strategy;
and exchanging the second stable currency after blinding into a privacy currency based on a set exchange proportion.
4. The method of claim 3, wherein the blinding the second stable coin based on a coin-mix strategy comprises:
and blinding the real UTXO address corresponding to the second stable coin based on a coin mixing strategy to obtain the second stable coin corresponding to a plurality of UTXO addresses, wherein the plurality of UTXO addresses comprise the real UTXO address and a non-real UTXO address.
5. A blockchain based digital currency conversion apparatus, the apparatus comprising a memory and a processor, the memory having stored thereon a blockchain based digital currency conversion program operable on the processor, the blockchain based digital currency conversion program when executed by the processor implementing the method according to any one of claims 1 to 4.
6. A blockchain-based digital currency conversion system, the system comprising:
a first exchange unit, configured to exchange a public currency on a first blockchain into a first stable currency based on a smart contract, wherein the first stable currency has a first fixed exchange rate with a reference currency, and the first blockchain executes a transaction based on an Account model;
a second exchange unit configured to exchange the first stable currency into the second stable currency on the second blockchain based on a second fixed rate, wherein the second blockchain performs a transaction based on a UTXO model, and the second stable currency has a third fixed rate with respect to the reference currency;
and the blinding unit is used for blinding the second stable currency and exchanging the second stable currency after blinding into the privacy currency.
7. The system of claim 6, wherein the second redemption unit is specifically configured to:
and performing exchange operation on the first stable currency based on a second fixed exchange rate in a Hash Lock mode to obtain the second stable currency of the second block chain.
8. The system according to claim 6, wherein the blinding unit is specifically configured to:
blinding the second stable currency based on a currency mixing strategy; and exchanging the second stable currency after blinding into a privacy currency based on a set exchange proportion.
9. A computer-readable storage medium having stored thereon a blockchain-based digital currency conversion program executable by one or more processors to implement the method of blockchain-based digital currency conversion according to any one of claims 1 to 4.
10. A computer program product comprising computer instructions which, when run on a computer, cause the computer to perform the blockchain-based digital currency conversion method of any one of the preceding claims 1 to 4.
CN201911415748.7A 2019-12-31 2019-12-31 Block chain-based digital currency exchange method, device and system Pending CN111275414A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911415748.7A CN111275414A (en) 2019-12-31 2019-12-31 Block chain-based digital currency exchange method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911415748.7A CN111275414A (en) 2019-12-31 2019-12-31 Block chain-based digital currency exchange method, device and system

Publications (1)

Publication Number Publication Date
CN111275414A true CN111275414A (en) 2020-06-12

Family

ID=71001533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911415748.7A Pending CN111275414A (en) 2019-12-31 2019-12-31 Block chain-based digital currency exchange method, device and system

Country Status (1)

Country Link
CN (1) CN111275414A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023015840A1 (en) * 2021-08-13 2023-02-16 郑杰骞 Chain structure processing method, transaction data processing method, data verification method, apparatus, and medium

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180025435A1 (en) * 2016-07-22 2018-01-25 Nec Europe Ltd. Method for secure ledger distribution and computer system using secure distributed ledger technology
CN107851245A (en) * 2015-05-21 2018-03-27 万事达卡国际股份有限公司 For the method and system by the asset association based on block chain to legal tender account
CN108154366A (en) * 2017-12-25 2018-06-12 丁江 Across chain digital asset transfer method and terminal device
CN108197944A (en) * 2017-11-22 2018-06-22 远光软件股份有限公司 Resource transaction method and device based on block chain technology
CN108470278A (en) * 2018-03-13 2018-08-31 成都零光量子科技有限公司 A kind of block chain Token is across chain and on-line off-line method of commerce
CN109034801A (en) * 2018-07-31 2018-12-18 杭州复杂美科技有限公司 A kind of privacy method of commerce and system, equipment and can storage medium
CN109034800A (en) * 2018-07-31 2018-12-18 杭州复杂美科技有限公司 A kind of privacy method of commerce, system and equipment
CN109447605A (en) * 2018-10-24 2019-03-08 百度在线网络技术(北京)有限公司 A kind of chain currency conversion method, apparatus, equipment and medium based on block chain
CN109559227A (en) * 2018-11-29 2019-04-02 咪咕文化科技有限公司 A kind of method of commerce, device and the storage medium of transregional piece of chain network
CN109670802A (en) * 2018-12-21 2019-04-23 百度在线网络技术(北京)有限公司 A kind of chain currency conversion method, apparatus, equipment and medium based on block chain
CN109886661A (en) * 2019-01-16 2019-06-14 深圳壹账通智能科技有限公司 Across chain digital cash exchanging method, device, computer system and storage medium
US20190287100A1 (en) * 2018-03-13 2019-09-19 WAY2BIT Co. Ltd. Method for managing token based on heterogeneous blockchain networks, and token management server using the same
CN110366738A (en) * 2019-01-31 2019-10-22 阿里巴巴集团控股有限公司 In block chain network across transaction in assets
CN110419053A (en) * 2018-11-27 2019-11-05 阿里巴巴集团控股有限公司 System and method for information protection
CN110473104A (en) * 2019-08-20 2019-11-19 深圳市网心科技有限公司 A kind of transaction processing method and relevant device
CN110472957A (en) * 2019-08-20 2019-11-19 深圳市网心科技有限公司 A kind of block chain transaction verification method and relevant device
CN110517138A (en) * 2019-08-20 2019-11-29 深圳市网心科技有限公司 Intelligent contract processing method, device, computer equipment and storage medium
CN110535639A (en) * 2019-08-20 2019-12-03 深圳市网心科技有限公司 Block chain assets disposition method and relevant device based on more asset models
CN110555684A (en) * 2019-08-26 2019-12-10 北京米弘科技有限公司 Account and system based on block chain system
CN110599340A (en) * 2019-09-19 2019-12-20 姚忠凯 Token method, system and wallet based on alliance chain

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107851245A (en) * 2015-05-21 2018-03-27 万事达卡国际股份有限公司 For the method and system by the asset association based on block chain to legal tender account
US20180025435A1 (en) * 2016-07-22 2018-01-25 Nec Europe Ltd. Method for secure ledger distribution and computer system using secure distributed ledger technology
CN108197944A (en) * 2017-11-22 2018-06-22 远光软件股份有限公司 Resource transaction method and device based on block chain technology
CN108154366A (en) * 2017-12-25 2018-06-12 丁江 Across chain digital asset transfer method and terminal device
CN108470278A (en) * 2018-03-13 2018-08-31 成都零光量子科技有限公司 A kind of block chain Token is across chain and on-line off-line method of commerce
US20190287100A1 (en) * 2018-03-13 2019-09-19 WAY2BIT Co. Ltd. Method for managing token based on heterogeneous blockchain networks, and token management server using the same
CN109034801A (en) * 2018-07-31 2018-12-18 杭州复杂美科技有限公司 A kind of privacy method of commerce and system, equipment and can storage medium
CN109034800A (en) * 2018-07-31 2018-12-18 杭州复杂美科技有限公司 A kind of privacy method of commerce, system and equipment
CN109447605A (en) * 2018-10-24 2019-03-08 百度在线网络技术(北京)有限公司 A kind of chain currency conversion method, apparatus, equipment and medium based on block chain
CN110419053A (en) * 2018-11-27 2019-11-05 阿里巴巴集团控股有限公司 System and method for information protection
CN109559227A (en) * 2018-11-29 2019-04-02 咪咕文化科技有限公司 A kind of method of commerce, device and the storage medium of transregional piece of chain network
CN109670802A (en) * 2018-12-21 2019-04-23 百度在线网络技术(北京)有限公司 A kind of chain currency conversion method, apparatus, equipment and medium based on block chain
CN109886661A (en) * 2019-01-16 2019-06-14 深圳壹账通智能科技有限公司 Across chain digital cash exchanging method, device, computer system and storage medium
CN110366738A (en) * 2019-01-31 2019-10-22 阿里巴巴集团控股有限公司 In block chain network across transaction in assets
CN110473104A (en) * 2019-08-20 2019-11-19 深圳市网心科技有限公司 A kind of transaction processing method and relevant device
CN110472957A (en) * 2019-08-20 2019-11-19 深圳市网心科技有限公司 A kind of block chain transaction verification method and relevant device
CN110517138A (en) * 2019-08-20 2019-11-29 深圳市网心科技有限公司 Intelligent contract processing method, device, computer equipment and storage medium
CN110535639A (en) * 2019-08-20 2019-12-03 深圳市网心科技有限公司 Block chain assets disposition method and relevant device based on more asset models
CN110555684A (en) * 2019-08-26 2019-12-10 北京米弘科技有限公司 Account and system based on block chain system
CN110599340A (en) * 2019-09-19 2019-12-20 姚忠凯 Token method, system and wallet based on alliance chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023015840A1 (en) * 2021-08-13 2023-02-16 郑杰骞 Chain structure processing method, transaction data processing method, data verification method, apparatus, and medium

Similar Documents

Publication Publication Date Title
JP6892513B2 (en) Off-chain smart contract service based on a reliable execution environment
CN109951489A (en) A kind of digital identification authentication method, unit, system and storage medium
CN109862041A (en) A kind of digital identification authentication method, unit, system and storage medium
US11151559B2 (en) Blockchain-based remittance method and apparatus
EP3779750A1 (en) User identity content information authentication and verification methods and devices
EP4032052B1 (en) Performing transactions using private and public blockchains
CN110400217B (en) Rule change processing method and device for intelligent contract
US10970780B2 (en) Zero-knowledge predictions market
WO2015116998A2 (en) Electronic transfer and obligation enforcement system
CN113239375B (en) Block chain-based privacy factor data sharing system, method, computer device, and medium
CN108776896A (en) Digital cash wallet business management method based on multi-signature and system
US20150288703A1 (en) Data possession verification system and method
CN111460457A (en) Real estate property registration supervision method, device, electronic equipment and storage medium
CN111311259A (en) Bill processing method, device, terminal and computer readable storage medium
CN111275414A (en) Block chain-based digital currency exchange method, device and system
WO2021134424A1 (en) Blockchain-based digital currency transaction method, apparatus and system
CN110493008B (en) Block chain authentication method, device, equipment and medium
CN111275549A (en) Block chain-based digital currency transaction method and related device
CN114629663B (en) Block chain-based digital commodity transaction method and device
CN110619566A (en) On-chain pledge asset return system and method through on-chain digital currency settlement
CN113379415B (en) Block chain system, information processing method, system, device and computer medium
CN114511321B (en) Point-to-point based data processing method, system, computing device and storage medium
Martins et al. Recoverable token: Recovering from intrusions against digital assets in Ethereum
CN110580624A (en) Chain code upgrading method and device
JP7308977B2 (en) Method, transaction management device and computer readable medium for facilitating concurrent trading

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
TA01 Transfer of patent application right

Effective date of registration: 20210914

Address after: 518000 21 / f-23 / F, block B, building 12, Shenzhen Bay science and technology ecological park, No. 18, South Keji Road, high tech community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Xunlei Networking Technologies, Ltd.

Applicant after: SHENZHEN ONETHING TECHNOLOGIES Co.,Ltd.

Address before: 518052 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: SHENZHEN ONETHING TECHNOLOGIES Co.,Ltd.

TA01 Transfer of patent application right