A trading method and system for digital money

A technology of digital currency and transaction method, which is applied in the field of blockchain, can solve problems such as inability to be universal and unable to realize the exchange of multiple different digital currencies, and achieve the effect of making full use of resources

Inactive Publication Date: 2019-01-11
CHINA UNITED NETWORK COMM GRP CO LTD
0 Cites 1 Cited by

AI-Extracted Technical Summary

Problems solved by technology

And each blockchain will issue its corresponding digital currency, however, different digital currencies cannot be used universally between different blockchains
The same user may hold a variety of digital currencies, and since many countr...
View more

Method used

Wherein, write the POWa, Bat, Vac of the first block chain, and the POWb, Bbt, Vbc of the second block chain in the settlement block chain, because the first block chain ...
View more

Abstract

Embodiments of the present invention relate to a trading method and system for digital money. The method comprises: when the first block chain initiates a transaction to the second block chain, and the number of nodes in the first block chain agreeing to the transaction corresponding to the transaction is greater than a preset first threshold value, the first block chain generates a first block according to the transaction, and sends the first block to the preset settlement block chain; when the number of nodes in the second block chain agreeing to the transaction content is greater than a preset second threshold, the second block chain generates a second block according to the transaction, and sends the second block to the settlement block chain; the settlement block chain verifies the first block and the second block, and obtains the verification result. When the verification result is passed, the settlement block chain settles the transaction. The technical proposal provided by theembodiment realizes the exchange between different digital currencies so as to bring convenience to users and realize the technical effect of fully utilizing resources.

Application Domain

FinancePayment circuits +1

Technology Topic

BlockchainDigital currency

Image

  • A trading method and system for digital money
  • A trading method and system for digital money
  • A trading method and system for digital money

Examples

  • Experimental program(7)

Example

[0075] The first embodiment:
[0076] See figure 1 , figure 1 It is a schematic flowchart of a digital currency transaction method provided by an embodiment of the present invention.
[0077] Such as figure 1 As shown, the method includes:
[0078] S100: When the first block chain initiates a transaction to the second block chain, and the number of nodes in the first block chain that agree to the transaction content corresponding to the transaction is greater than the preset first threshold, the first block chain is based on The transaction generates the first block, and the first block is sent to the preset settlement blockchain.
[0079] As we all know, electronic transactions in the blockchain often use digital currency. And each blockchain will issue its own digital currency. Then digital currency is not universal between blockchains. That is, in the prior art, the exchange between digital currencies cannot be realized.
[0080] However, in this embodiment, in order to solve the technical drawbacks of the inability to exchange between digital currencies in the prior art, a settlement blockchain is set up, so that the settlement blockchain can be exchanged between different multiple blockchains. Exchange between digital currencies.
[0081] Among them, the settlement blockchain is any blockchain. Preferably, the settlement blockchain is a highly active blockchain.
[0082] When the digital currency exchange between the first blockchain and the second blockchain needs to be realized. Then the first block chain initiates a transaction to the second block chain. Specifically, a transaction is a transaction corresponding to digital currency exchange.
[0083] Each node in the first block chain will state the transaction content corresponding to the transaction, that is, verify the transaction content corresponding to the transaction to confirm whether the transaction content is approved. Such as:
[0084] There are a total of 20 nodes in the first blockchain, and each node declares the content of the transaction. When 12 nodes agree with the content of the transaction, and the first threshold is 10, the first blockchain generates the first block according to the transaction. One block, and the first block is sent to the settlement blockchain, so that the settlement blockchain can perform corresponding settlement (ie exchange).
[0085] Wherein, the first threshold is set according to the number of nodes in the first blockchain. Preferably, the first threshold is set to one half of the number of nodes in the first blockchain.
[0086] In a possible solution, when the number of nodes in the first blockchain that agree to transaction content is less than or equal to the first threshold, the process ends. That is, the first block chain does not generate the first block, and currency conversion fails.
[0087] S200: When the number of nodes in the second blockchain that agree to the transaction content is greater than the preset second threshold, the second blockchain generates a second block according to the transaction, and sends the second block to the settlement block chain.
[0088] After the second block link receives the transaction, each node in the second block chain will make a statement about the transaction content corresponding to the transaction, that is, verify the transaction content and determine whether to agree to the transaction content. Such as:
[0089] There are a total of 30 nodes in the second blockchain, and each node declares the content of the transaction. When 18 nodes agree with the content of the transaction, and the second threshold is 16, the second blockchain generates the first according to the transaction. Two blocks, and send the second block to the settlement blockchain so that the settlement blockchain can perform corresponding settlement (ie exchange).
[0090] Among them, the second threshold is set according to the number of nodes in the second blockchain. Preferably, the second threshold is set to one half of the number of nodes in the second blockchain.
[0091] In a possible solution, when the number of nodes in the second blockchain that agree to the transaction content is less than or equal to the second threshold, the process ends. That is, the second block chain does not generate the second block, and currency conversion fails.
[0092] S300: The settlement blockchain verifies the first block and the second block, and obtains the verification result.
[0093] S400: When the verification result is that the verification is passed, the settlement blockchain settles the transaction.
[0094] In a possible solution, when the verification result is that the verification fails, the process ends. That is, the settlement blockchain does not settle the transaction, and the exchange of digital currency fails.
[0095] In a possible solution, when the verification result is a failure, the first block chain initiates an offset transaction to the second block chain, and the offset transaction is used to offset the transaction. Then the first block chain and the second block chain respectively generate blocks corresponding to the offset transaction in order to realize the offset transaction.
[0096] In a possible solution, in the first block chain and the second block chain, if it is necessary to ensure that the contents of other internal transactions are not leaked, the transactions of the first block chain and the second block chain can be separated Generate a block.

Example

[0097] The second embodiment:
[0098] This embodiment is based on the first embodiment.
[0099] See figure 2 , figure 2 It is a schematic diagram of the first blockchain registration process provided by an embodiment of the present invention.
[0100] Combine figure 1 with figure 2 It can be seen that before S100, the method also includes:
[0101] S1: The first block chain before registration will broadcast its corresponding first registration information in the settlement block chain.
[0102] Preferably, the first registration information includes: the issuance speed Vac of the digital currency AC of the first blockchain, the target average time Bat for generating a block on the first blockchain, the calculation difficulty of the first blockchain POWa, and the The number of nodes in a blockchain is Qan.
[0103] Among them, once the target average time Bat for generating a block on the first blockchain is determined, it cannot be changed.
[0104] Of course, the first registration information may also include the name of the first blockchain.
[0105] S2: The settlement blockchain generates a first registration block according to the first registration information.
[0106] After the first block chain before registration broadcasts the first registration information in the settlement block chain, the settlement block chain will generate a block based on the first registration information, that is, the first registration block.
[0107] S3: When the number of nodes that agree to the first registration block in the first block chain before registration is greater than the first threshold, the first block chain before registration writes the first registration block into the settlement block chain to obtain The first blockchain after registration.
[0108] For example, there are a total of 20 nodes in the first blockchain, and each node declares to the first registration block. When 12 nodes agree to the first registration block, and the first threshold is 10, the first registration block A registration block is written into the settlement block chain to obtain the first block chain after registration.
[0109] In a possible solution, when the number of nodes in the first blockchain that agree to the first registration block is less than or equal to the first threshold, the process ends. That is, the step of writing the first registration block into the settlement blockchain is no longer performed. That is, currency exchange failed.
[0110] After the registration is completed, each node in the first blockchain officially becomes a node of the settlement blockchain. Of course, each node in the first blockchain is still a node of the first blockchain.
[0111] When any information in the first registration information changes, the changed information needs to be updated to the settlement blockchain. The update process is the same as the registration process.
[0112] Of course, when updating, you can choose to update partly or update all. That is, only the information that has changed can be updated, or all the information in the first information can be directly updated.
[0113] For example: when the issuance speed Vac of the digital currency AC of the first blockchain in the first registration information changes, the first blockchain can only change the issuance speed Vac of the digital currency AC of the first blockchain after the change. Broadcast in the settlement blockchain without broadcasting other information in the first registration information.
[0114] Of course, the first blockchain can also change the issuance speed Vac of the digital currency AC of the first blockchain, the target average time Bat for the first blockchain to generate a block, and the calculation amount of the first blockchain. The difficulty POWa and the number of nodes of the first blockchain Qan are broadcast in the settlement blockchain.

Example

[0115] The third embodiment:
[0116] This embodiment is based on the second embodiment.
[0117] See image 3 , image 3 It is a schematic diagram of a second blockchain registration process provided by an embodiment of the present invention.
[0118] Combine figure 1 with image 3 It can be seen that before S100, the method also includes:
[0119] S4: The second block chain before registration will broadcast its corresponding second registration information in the settlement block chain.
[0120] Preferably, the second registration information includes: the issuance speed Vbc of the digital currency BC of the second blockchain, the target average time Bbt for generating a block on the second blockchain, the calculation difficulty POWb of the second blockchain, and the first 2. The number of nodes of the blockchain, Qbn.
[0121] Among them, once the target average time Bbt for the second block chain to generate a block is determined, it cannot be changed.
[0122] Of course, the second registration information may also include the name of the second blockchain.
[0123] S5: The settlement blockchain generates a second registration block according to the second registration information.
[0124] After the second block chain before registration broadcasts the second registration information in the settlement block chain, the settlement block chain will generate a block based on the second registration information, that is, the second registration block.
[0125] S6: When the number of nodes that agree to the second registration block in the second block chain before registration is greater than the second threshold, the second block chain before registration writes the second registration block into the settlement block chain to obtain The second blockchain after registration.
[0126] For example, there are a total of 30 nodes in the second block chain, and each node makes a statement on the second registration block. When 18 nodes agree to the second registration block, and the second threshold is 16, then the first The second registration block is written into the settlement block chain to obtain the second block chain after registration.
[0127] In a possible solution, when the number of nodes in the second blockchain that agree to the second registration block is less than or equal to the second threshold, the process ends. That is, the step of writing the second registration block into the settlement blockchain is no longer performed. That is, currency exchange failed.
[0128] After the registration is completed, each node in the second blockchain officially becomes a node of the settlement blockchain. Of course, each node in the second blockchain is still a node of the second blockchain.
[0129] When any information in the first registration information changes, the changed information needs to be updated to the settlement blockchain. The update process is the same as the registration process.
[0130] Of course, when updating, you can choose to update partly or update all. That is, only the information that has changed can be updated, or all the information in the first information can be directly updated.
[0131] For example: when the issuance speed Vbc of the digital currency BC of the second blockchain in the second registration information changes, the second blockchain can only change the issuance speed Vbc of the digital currency BC of the second blockchain after the change. Broadcast in the settlement blockchain without broadcasting other information in the second registration information.
[0132] Of course, the second block chain can also change the issuance speed Vbc of the digital currency BC of the second block chain, the target average time Bat for the second block chain to generate a block, and the calculation amount of the second block chain. The difficulty POWa and the number of nodes of the second blockchain Qan are broadcast in the settlement blockchain.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Short message sending method and short message center

InactiveCN105578432Amake full use of resources
Owner:ZTE CORP

Control system and automobile

PendingCN110554632Amake full use of resourcessmall footprint
Owner:SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD

Photovoltaic wind generating set

PendingCN114704431Amake full use of resourcesreduce adverse effects
Owner:HUADIAN ELECTRIC POWER SCI INST CO LTD

Double-touch display panel and communication equipment

PendingCN112860135Amake full use of resourcesreduce thickness
Owner:HYTERA COMM CORP

Control system and automobile

PendingCN110554631Aavoid reusemake full use of resources
Owner:SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD

Classification and recommendation of technical efficacy words

  • make full use of resources

Method for recycling epoxy resins and glass fibre from non-metal powder of waste printed circuit board

InactiveCN101407596AHigh recovery ratemake full use of resources
Owner:SHANGHAI SECOND POLYTECHNIC UNIVERSITY

Method for establishing load bearing and relevant apparatus

ActiveCN101409951Amake full use of resources
Owner:HUAWEI TECH CO LTD

Electronic lock body of mortise knob lock

InactiveCN101769091Amake full use of resources
Owner:KEYU INTELLIGENCE

Tannery sludge and coal gangue treatment technology

InactiveCN106866176Amake full use of resourcesgood benefit
Owner:CHANGZHOU UNIV

Method for synthesizing environment-friendly type urea-formaldehyde plastics resin

InactiveCN101200529Amake full use of resourcesProtect physical and mental health
Owner:滁州市十扬环保塑木科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products