CN108154366B - Cross-chain digital asset transfer method and terminal equipment - Google Patents

Cross-chain digital asset transfer method and terminal equipment Download PDF

Info

Publication number
CN108154366B
CN108154366B CN201711422431.7A CN201711422431A CN108154366B CN 108154366 B CN108154366 B CN 108154366B CN 201711422431 A CN201711422431 A CN 201711422431A CN 108154366 B CN108154366 B CN 108154366B
Authority
CN
China
Prior art keywords
chain
node
cross
address
output
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.)
Active
Application number
CN201711422431.7A
Other languages
Chinese (zh)
Other versions
CN108154366A (en
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201711422431.7A priority Critical patent/CN108154366B/en
Publication of CN108154366A publication Critical patent/CN108154366A/en
Application granted granted Critical
Publication of CN108154366B publication Critical patent/CN108154366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • 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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a cross-chain digital asset transfer method, which forms a plurality of logic chains on a physical block chain, wherein a trading order of each logic chain has a corresponding identifier, so that different logic chains record different types of digital assets and can freely trade in the logic chains. Meanwhile, when the cross-chain transaction is carried out, a cross-chain transaction list is constructed, wherein the input of the cross-chain transaction list comprises the identification of two or more different types of digital assets (different types of non-cost output), and the output comprises the address of the corresponding asset received on different logic chains. Thus, the cross-chain transaction sheet constructs a cross-chain joint transfer. Thus, by validating and recording cross-chain transaction orders on a physical blockchain, cross-logical chain digital asset redemption and transfer can be achieved.

Description

Cross-chain digital asset transfer method and terminal equipment
Technical Field
The invention relates to the technical field of block chains, in particular to a cross-chain digital asset transfer method and terminal equipment.
Background
The block chain technology is a programmable distributed account book technology which is jointly maintained by multiple parties, can ensure that transmission and access can be verified by using cryptography, can realize data consistent storage, cannot be tampered and cannot be repudiated, and can be applied to the fields of finance, health care, supply chains, asset management and the like. Each chain may represent a particular digital asset, and is therefore said to be a trustworthy technique for transmitting value. The block chains based on the UTXO (un) transmission output) mode are originated from the bitcoin, but all the block chains based on the UTXO mode are currently in a relatively isolated network protocol, and different block chains are run in different computer applications, so that the cooperative operation between different block chains is prevented, and the mobility and flexibility of transactions between block chains are limited to a certain extent. The current chain-crossing technology comprises a side chain technology (Sidechain) represented by Block stream and Rootstock, and also uses an Onchain Atomic Swap mechanism to perform trusted transaction without participation of a third party between two different physical block chains, which actually uses an intelligent contract of a Hash time lock to realize that two transaction parties complete direct digital asset transaction under the condition of not trusting the other party, but cannot simply and efficiently solve the Atomic transaction between various digital assets, for example, two parties realize the Atomic transaction between three digital assets, and the realization mode is too complex.
Disclosure of Invention
In view of this, embodiments of the present invention provide a cross-chain digital asset transfer method and a terminal device, so that cross-chain exchange and transfer of more than two types of digital assets recorded on different logic chains can be performed.
According to a first aspect of the present invention, there is provided a cross-chain digital asset transfer method comprising:
the method comprises the steps that a first node sends an identification of a first non-cost output (UTXO) expected to be transferred to a second node and a first address for receiving a value digital asset to the second node, wherein the first non-cost output is a first type digital asset recorded by a first logical chain, the first address is an address of the first node in a second logical chain, and transaction lists of the first logical chain and the second logical chain are recorded on a physical block chain in different forms respectively;
the second node constructs a cross-chain transaction list, wherein the input of the cross-chain transaction list comprises an identification of a first non-cost output and an identification of a second non-cost output, the output of the cross-chain transaction list comprises a second address and the first address, the second non-cost output is a second type digital asset recorded by a second logic chain, and the second address is the address of the second node in the first logic chain;
the second node sends the cross-chain transaction list to the first node after digitally signing the cross-chain transaction list;
the first node digitally signs the cross-chain transaction order and broadcasts the cross-chain transaction order including the digital signatures of the first node and the second node into the physical blockchain network.
Preferably, the first node sends to the second node a third non-cost output intended to be transferred to the second node, while sending to the second node a first non-cost output (UTXO) intended to be transferred to the second node and a first address for receiving the value digital asset; wherein the third non-expended output is a third type of digital asset for a third logical chain record;
the input of the cross-chain transaction order further includes an identification of the third non-spent output, and the output of the cross-chain transaction order further includes a third address, the third address being an address of the second node in the third logical chain.
Preferably, the first node sends a fourth address to the second node while sending a first non-expendable output (UTXO) intended to be transferred to the second node and the first address for receiving the value digital asset to the second node, wherein the fourth address is an address of the first node in a fourth logical chain;
the input of the cross-chain transaction order further includes an identification of a fourth unspent output, the output of the cross-chain transaction order further including the fourth address.
Preferably, while transmitting to the second node a first unspent output (UTXO) intended for transfer to the second node and a first address for receiving the value digital asset, the first node also transmits to the second node N different types of unspent outputs intended for transfer to the second node; wherein the N different types of non-spent outputs are respectively different types of digital assets recorded for different logical chains;
the input of the cross-chain trading order further comprises the identification of the N different types of non-spending outputs, the output of the cross-chain trading order further comprises N different addresses, the N different addresses are the addresses of the second node in the N different logic chains respectively, and N is larger than or equal to 2.
Preferably, the first node sends to the second node N different addresses, while sending to the second node a first unspent output (UTXO) intended to be transferred to the second node and a first address for receiving the value digital asset, wherein the N different addresses are addresses of the first node in N different logical chains;
the input of the cross-chain trading order further comprises an identification of N different types of non-spending outputs, wherein the N different types of spending outputs are different types of digital assets respectively recorded by the N different logical chains, the output of the cross-chain trading order further comprises the N different addresses, and N is greater than or equal to 2.
Preferably, the method further comprises:
and other nodes in the physical block chain network record the cross-chain transaction list into a block after verifying that the digital signature and the input in the cross-chain transaction list are both valid.
Preferably, the first node sends the change address to the second node simultaneously with sending the identification of the first non-cost output and the first address to the second node;
the output of the cross-transaction order also comprises the change making address and the corresponding change making quantity;
wherein the change address is an address in the second logical chain.
Preferably, the output of the cross-chain transaction order further comprises the change address and the corresponding change amount;
wherein, the change address is an address in the first logic chain.
Preferably, the identification of the unspent output includes a transaction identification and an output serial number.
Preferably, the first node and the second node are carried by the same data processing apparatus.
According to a second aspect of the present invention, there is provided a cross-chain digital asset transfer method comprising:
receiving, from a first node, an identification of a first non-cost output (UTXO) and a first address for receiving a price digital asset, wherein the first non-cost output is a first type of digital asset recorded by a first logical chain, the first address is an address of the first node in a second logical chain, and transaction orders of the first and second logical chains are each placed in different forms on the physical blockchain;
constructing a cross-chain transaction order, wherein the input of the cross-chain transaction order comprises an identification of a first non-cost output and an identification of a second non-cost output, the output of the cross-chain transaction order comprises a second address and the first address, the second non-cost output is a second type of digital asset recorded by a second logic chain, and the second address is an address of the second node in the first logic chain;
and sending the cross-chain transaction list to the first node after the cross-chain transaction list is digitally signed.
According to a third aspect of the present invention, there is provided a cross-chain digital asset transfer method comprising:
transmitting to a second node an identification of a first non-cost output (UTXO) that is expected to be transferred to the second node and a first address for receiving a value digital asset, wherein the first non-cost output is a first type of digital asset recorded by a first logical chain, the first address is an address of the first node in a second logical chain, and transaction orders of the first logical chain and the second logical chain are respectively placed in different forms on the physical block chain;
receiving a cross-chain transaction order digitally signed via the second node, the input of the cross-chain transaction order including an identification of a first unspent output and an identification of a second unspent output, the output of the cross-chain transaction order including a second address and the first address, wherein the second unspent output is a second type of digital asset recorded by a second logical chain, and the second address is an address of the second node in the first logical chain;
digitally signing the cross-chain transaction ticket and broadcasting the cross-chain transaction ticket including the digital signatures of the first node and the second node into the physical blockchain network.
According to a fourth aspect of the present invention, there is provided a terminal device comprising:
a memory having computer instructions stored thereon; and the number of the first and second groups,
processor, characterized in that the computer instructions, when executed by the processor, implement the method as described above.
By forming a plurality of logic chains on one physical block chain, each logic chain has corresponding identification in the transaction list, so that different logic chains record different types of digital assets and can freely trade in the logic chains. Meanwhile, when the cross-chain transaction is carried out, a cross-chain transaction list is constructed, wherein the input of the cross-chain transaction list comprises the identifications of more than two different types of digital assets (different types of non-cost outputs), and the output comprises the addresses of the corresponding assets received on different logic chains. Thus, the cross-chain transaction sheet constructs a cross-chain joint transfer. Thus, by validating and recording cross-chain transaction orders on a physical blockchain, cross-logical chain digital asset redemption and transfer can be achieved.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
FIG. 1 is a block diagram of a digital asset transfer system of an embodiment of the present invention;
FIG. 2 is a flow chart of a digital asset transfer method of an embodiment of the present invention;
FIG. 3 is a schematic diagram of a cross-chain transaction sheet of an embodiment of the present invention;
FIG. 4 is a flow chart of a digital asset transfer method of another embodiment of the present invention;
FIG. 5 is a schematic diagram of a cross-chain transaction sheet according to another embodiment of the invention;
FIG. 6 is a flow chart of a digital asset transfer method of yet another embodiment of the present invention;
FIG. 7 is a schematic diagram of a cross-chain transaction sheet according to yet another embodiment of the invention;
fig. 8 is a block-chain network node according to an embodiment of the invention.
Detailed Description
The present invention will be described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth. It will be apparent to one skilled in the art that the present invention may be practiced without these specific details. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the present invention.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
The invention only needs to run a set of consensus mechanism in a block chain network, the two sides of the trade freely initiate the requirement of bidirectional trade between any two or more chains, the invention creatively designs a simple and easy method of bidirectional cross-chain trade without third party participation based on UTXO mode block chains, the two sides of the trade can freely exchange two or more digital assets with low cost, and the intelligent contract of cross-chain trade of the invention is very simple and easy to operate, and can realize the purpose of safe, credible, traceable and decentralized cross-chain exchange of various assets, and realize lossless value exchange among various assets. FIG. 1 is a block diagram of a digital asset transfer system of an embodiment of the present invention. As shown in fig. 1, the blockchain system is a unified physical blockchain system, and at least two different logical chains are carried on the system. In the embodiment of the invention, a logic chain or a virtual chain refers to a virtually existing block chain distributed database, the virtual block chain distributed database is a section divided from a physical block chain distributed database, namely a physical chain, and is distinguished from other logic chains by special section identification, so that the complex storage requirement on a single physical chain can be greatly simplified, the creation of complex and various digital assets on the single block chain is creatively made possible, and a more elegant and concise cross-chain transaction mechanism can be provided. By way of example, the blockchain system of the present invention includes nodes 1 and 2 that have access to the physical blockchain distributed database. Both may have an address on at least one logical chain to conduct transactions of digital assets on one of the logical chains. In this embodiment, in order to implement the cross-chain digital asset transfer, the node 1 and the node 2 need to have corresponding addresses on two logic chains (hereinafter referred to as logic chain a and logic chain B) respectively to receive the digital assets managed by the corresponding logic chains. Preferably, the digital asset transfer system of the embodiment of the present invention may further include a platform server 3 communicatively connected to the nodes through a network. The platform server 3 may construct a platform outside of the blockchain that matches transactions on the same type of digital assets or exchanges on different types of digital assets. It is to be understood that node 1 and node 2 may be carried by the same data processing apparatus.
Fig. 2 is a flow chart of a digital asset transfer method of an embodiment of the present invention. As shown in fig. 2, the method includes:
step S100, node 1 and node 2 agree on a certain number of digital assets X owned by node 1 on logical chain a to be exchanged for a certain number of digital assets Y owned by node 2 on logical chain B.
The consensus may be achieved by the trading platform of the platform server 3, or may be achieved by other online or offline means.
Step S200, node 1 sends to node 2 an identification UTXO1 of the first unspent output that it desires to transfer to node 2 and an address AD1 for receiving the consideration digital asset.
Wherein the first non-spent output corresponds to the digital asset X that node 1 owns on logical chain a, i.e., the first type of digital asset recorded by logical chain a (which may also be referred to as the first logical chain). And address AD1 is the address of node 1 in logical chain B for receiving node 2 as a value-transferred digital asset Y, i.e., a second type of digital asset recorded by logical chain B. Wherein, the digital assets X and Y are recorded on the same physical block chain, which is embodied as the output of the trading list on the logic chain A and the logic chain B. However, the identifications are arranged in the different types of digital asset transaction orders, and the types of the input involved in the transaction orders are distinguished, so that the different logic chains A and B can independently manage the two different digital assets in a virtual mode without mutual confusion and interference. That is, the transaction sheets of the logical chain a and the logical chain B are respectively recorded on the physical block chain in different forms.
And step S300, the node 2 constructs a cross-chain trading order.
Specifically, node 2 may confirm in advance whether the first non-spent output is valid. Alternatively, the node 2 may construct the cross-chain transaction list directly according to the information sent by the node 1 without confirmation.
FIG. 3 is a schematic diagram of a cross-chain transaction order of an embodiment of the invention. As shown in fig. 3, the inputs to the cross-chain transaction order 10 include an identification of a first unspent output, UTXO1 (corresponding to address AD1 '), and an identification of a second unspent output, UTXO2 (corresponding to address AD 2'). The output of the cross-chain transaction order includes address AD2 and address AD 1. Specifically, the second type of digital asset whose second unspent output is recorded for logistic chain B, namely digital asset Y, which is referred to previously as consideration. Address AD2 is the address of node 2 in logical chain a that is used to receive digital asset X transferred by node 1. The output of the cross-chain transaction ticket may also include a sequence number and a quantity, as shown in FIG. 3.
As shown in fig. 3, the identification UTXOi of the input non-spent output may include a transaction order identification (TXID) and a sequence number and unlock specimen fields. The unlock script field is used for subsequent two parties to fill in the digital signature.
Further, FIG. 3 also shows the relationship between the input of the cross-chain transaction order and other transaction orders. As shown in FIG. 3, the joint input to the cross-chain deal slip includes two parts, one being the digital asset X owned by node 1 on logical chain A, which is obtained by referencing one or more deal slips output at the address AD1 'of node 1 on logical chain A, and the other being the digital asset Y owned by node 2 on logical chain B, which is obtained by referencing one or more deal slips output at the address AD 2' of node 2 on logical chain B. The nodes in the physical block chain can obtain the transaction list by calling the block chain client to access the blocks on the corresponding logic chain so as to verify whether the referenced transaction list in 1) really exists; 2) whether the input is an unspent output. If both senses can be confirmed as yes, the input can be confirmed to be valid.
Preferably, when a change is required, if a change is made using the second type of digital asset, node 1 may also send a change address ADZ to node 2. Correspondingly, the output of the cross-chain transaction order constructed by the node 2 needs to include the change making address ADZ and the change making quantity.
Alternatively, when zeroing through a first type of digital asset, node 2 may directly include the address of the change and the amount of the change in the logical chain a when building the cross-chain transaction order.
And S400, the node 2 sends the cross-chain transaction list to the node 1 after the cross-chain transaction list is digitally signed.
The cross-chain transaction ticket is used to bind the asset identified as UTXO1 to address AD2 and the asset identified as UTXO2 to address AD 1.
Wherein the digitally signed cross-chain transaction order may be sent in an out-of-chain manner.
The digital signature is performed in the same way as the existing signature in the same block chain (or logic chain). That is, both the node 1 and the node 2 perform digital signature using the private key corresponding to the inputted address.
Meanwhile, the node 2 can confirm and verify whether the own digital asset Y is not output at the expense or not when performing digital signature.
Step S500, the node 1 carries out digital signature on the cross-chain transaction list and broadcasts the cross-chain transaction list comprising the nodes and the digital signature of the nodes to the physical block chain network.
After the node 1 receives the cross-chain transaction list signed by the node 2, the transaction list is required to be decoded and then input and output (in a manual or automatic mode) are verified for rationality, and after the verification is passed, the node 1 signs the transaction list and broadcasts the signed transaction list to a block chain
The node 1 may also verify and verify that the digital asset X owned by itself is not an uneconomical output when digitally signing.
As described above, the role of node 1's digital signature is actually to complete the transfer from address AD 1' to address AD2 on logical chain A through the cross-chain transaction order.
Step S600, after the other nodes in the physical block chain network verify that the digital signature and the input in the cross-chain transaction list are both valid, the cross-chain transaction list is recorded into a block.
When the cross-chain transaction order is verified, the verification is confirmed to pass by verifying that the two inputs and the signatures of the two parties are matched.
In particular, the contents of the cross-chain transaction ticket may be chunked in different ways. One way is to record the cross-chain transaction ticket directly on the physical blockchain. Thus, in subsequent transactions, whether cross-chain transactions or transactions within a logical chain, may directly reference the cross-chain transaction sheet as an input. This requires a configuration such that the cross-chain transaction sheet is accessible to both the clients of logical chain a and logical chain B.
By forming a plurality of logic chains on one physical block chain, each logic chain has corresponding identification in the transaction list, so that different logic chains record different types of digital assets and can freely trade in the logic chains. Meanwhile, when the cross-chain transaction is carried out, a cross-chain transaction list is constructed, wherein the input of the cross-chain transaction list comprises the identifications of more than two different types of digital assets (different types of non-cost outputs), and the output comprises the addresses of the corresponding assets received on different logic chains. Thus, the cross-chain transaction sheet constructs a cross-chain joint transfer. Thus, by validating and recording cross-chain transaction orders on a physical blockchain, cross-logical chain digital asset redemption and transfer can be achieved.
The cross-chain digital asset transfer method of the present embodiment is described above by taking a pair of nodes 1 and 2 as an example. It should be understood that the system may accommodate a greater number of nodes to conduct transactions of digital assets in a point-to-point manner.
Based on the technical scheme of the embodiment of the invention, not only can the exchange between two different types of digital assets be realized, but also the exchange between a plurality of different digital assets and one digital asset can be simultaneously realized through one combined transfer transaction.
Fig. 4 is a flow chart of a digital asset transfer method according to another embodiment of the present invention. As shown in fig. 4, the method of the present embodiment includes:
step S100, node 1 and node 2 agree that the node jointly redeems digital asset X on logical chain a, digital asset Z on logical chain C for asset Y of node 2 on logical chain B.
As described above, this consensus can be achieved in various existing ways.
Step S200, node 1, sends to node 2 the identification UTXO1 of digital asset X (first non-spent output), the identification UTXO3 of digital asset Z (third non-spent output), and the address AD1 for receiving digital asset Y. Wherein the identification of the digital asset comprises a transaction order identification and an output serial number.
And step S300, the node 2 constructs a cross-chain trading order.
The cross-chain transaction slip is shown in fig. 5, with inputs including an identification UTXO1 for a first unspent output (transaction slip identified as TXID1, output with sequence number 0), an identification UTXO3 for a third unspent output (transaction slip identified as TXID3, output with sequence number 0) and an identification UTXO2 for a digital asset Y that is a consideration (i.e., a second unspent output owned by node 2) (transaction slip identified as TXID2, output with sequence number 0), the outputs including a second address AD2 for receiving the first unspent output, an address AD3 for receiving the third unspent output and an address AD1 for receiving the second unspent output. Where address AD2 is the address of node 2 on logical chain B. Address AD3 is the address of node 2 on logical chain C. In output, asset X is bound to address AD2, asset Y is bound to address AD1, and asset Z is bound to address AD 3.
And step S400, the node 2 sends the cross-chain transaction single digital signature to the node 1.
Node 2 may digitally sign its own asset Y (transaction slip identification TXID2, output with sequence number 0) in the unlock script field of the input of the cross-chain transaction slip.
And step S500, the node 1 receives the cross-chain transaction list with the digital signature, and broadcasts the cross-chain transaction list to the physical block chain after the digital signature.
Node 1 digitally signs its own assets X (transaction ticket identification TXID1, output with sequence number 0) and Z (transaction ticket identification TXID3, output with sequence number 0) in the unlock script field of the input of the cross-chain transaction ticket.
Step S600, after the other nodes in the physical block chain network verify that the digital signature and the input in the cross-chain transaction list are both valid, the cross-chain transaction list is recorded into a block.
Therefore, the embodiment of the invention can realize that the node exchanges the digital assets of the node with a plurality of different types of digital assets in a concise mode. And realizing many-to-one cross-chain digital asset transfer. It should be understood that in the same way, the node may also send more than 2 digital assets for conversion, and the flow and the construction way of the cross-chain transaction list are similar to the above process, and will not be described again.
Similarly, embodiments of the present invention may also facilitate one-to-many cross-chain digital asset transfers.
Fig. 6 is a flow chart of a digital asset transfer method according to yet another embodiment of the present invention. As shown in fig. 6, the method includes:
step S100, node 1 and node 2 agree that node 1 exchanges digital asset X on logical chain a for asset Y on logical chain B and asset W on logical chain D for node 2.
At step S200, node 1 sends to node 2 an identification UTXO1 (trade order identification TXID1, output with serial number 0) representing the first unspent output of digital asset X and addresses AD1 and AD4 for receiving the consideration assets Y and W.
And step S300, the node 2 constructs a cross-chain trading order.
The cross-chain transaction slip is shown in fig. 7, with inputs including an identification UTXO1 representing a first unspent output of digital asset X (transaction slip identification TXID1, output numbered 0), an identification UTXO2 representing a second unspent output of digital asset Y (transaction slip identification TXID2, output numbered 0), and an identification UTXO4 representing a fourth unspent output of digital asset W (transaction slip identification TXID4, output numbered 0), the outputs including an address AD2 for receiving the first unspent output, an address AD1 receiving the second unspent output, and an address AD4 receiving the fourth unspent output.
Where address AD1 is the address of node 1 on logical chain A, address AD4 is the address of node 1 on logical chain D, and address AD2 is the address of node 2 on logical chain B.
And step S400, the node 2 sends the cross-chain transaction single digital signature to the node 1.
Node 2 may digitally sign its own asset Y (transaction slip identification TXID2, output with sequence number 0) and asset W (transaction slip identification TXID4, output with sequence number 0) in the unlock script field of the input of the cross-chain transaction slip.
And step S500, the node 1 receives the cross-chain transaction list with the digital signature, and broadcasts the cross-chain transaction list to the physical block chain after the digital signature.
Node 1 may sign its own asset X (transaction order identification TXID1, output with sequence number 0) in the unlock script field of the input of the cross-chain transaction order.
Step S600, after the other nodes in the physical block chain network verify that the digital signature and the input in the cross-chain transaction list are both valid, the cross-chain transaction list is recorded into a block.
It should be understood that in the same way, the node may also send more than 2 digital assets for conversion, and the flow and the construction way of the cross-chain transaction list are similar to the above process, and will not be described again. It should also be understood that the embodiment of the present invention may also be applied to a scenario where a node exchanges a plurality of different types of assets with a plurality of different types of assets, where only the node needs to send identifiers of the plurality of types of digital assets and receive addresses of the consideration assets in advance, correspondingly, the node supplements the identifiers of the plurality of types of digital assets as consideration and the addresses of the digital assets transferred by the receiving node in the input of the trading list when constructing the cross-chain trading list, and then both subsequent parties perform signature broadcasting.
It should also be understood that the nodes and the nodes are peer nodes in the physical block chain, and although the above description is made by taking the node responsible for constructing the cross-chain transaction list as an example, it is obvious that the positions of the two nodes can also be exchanged, the nodes send information in advance, and the nodes construct the cross-chain transaction list according to the information.
Fig. 8 is a schematic diagram of a terminal device for implementing the method of an embodiment of the invention. Terminal device 4 includes a display 41, a memory 42 (which may include one or more computer-readable storage media), a storage controller 43, one or more processors (CPUs) 44, a peripheral interface 45, radio frequency circuitry 46, an input/output (I/O) subsystem 47, and one or more optical sensors 48 that can acquire images. These components may communicate over one or more communication buses or signal lines 99. It should be understood that the electronic device 4 shown in fig. 4 is merely an example, and that the electronic device 4 may have more or fewer components than shown, may combine two or more components, or may have a different configuration or arrangement of components.
The memory 42 may store, among other things, software components such as an operating system, communication modules, interaction modules, and application programs. Each of the modules and applications described above corresponds to a set of executable program instructions that perform one or more functions and methods described in embodiments of the invention.
The technical scheme of the embodiment of the invention can be applied to various application scenes, such as the mass transaction scene. The technical scheme of the embodiment of the invention can also be applied to an instant messaging tool, for example, the technical scheme is used for storing the information sent and received in the instant messaging tool, and the technical scheme has great significance for the instant messaging tool related to online shopping.
Aspects of the present invention are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to: electromagnetic, optical, or any suitable combination thereof. The computer readable signal medium may be any of the following computer readable media: is not a computer readable storage medium and may communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including: object-oriented programming languages such as Java, Python, Smalltalk, C + +, and the like; and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package; executing in part on a user computer and in part on a remote computer; or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A cross-chain digital asset transfer method comprising:
the method comprises the steps that a first node sends an identification of a first non-cost output (UTXO) expected to be transferred to a second node and a first address for receiving a value digital asset to the second node, wherein the first non-cost output is a first type digital asset recorded by a first logical chain, the first address is an address of the first node in a second logical chain, and transaction lists of the first logical chain and the second logical chain are recorded on a physical block chain network in different forms respectively;
the second node constructs a cross-chain transaction list, wherein the input of the cross-chain transaction list comprises an identification of a first non-cost output and an identification of a second non-cost output, the output of the cross-chain transaction list comprises a second address and the first address, the second non-cost output is a second type digital asset recorded by a second logic chain, and the second address is the address of the second node in the first logic chain;
the second node sends the cross-chain transaction list to the first node after digitally signing the cross-chain transaction list;
the first node digitally signs the cross-chain transaction order and broadcasts the cross-chain transaction order comprising the digital signatures of the first node and the second node into the physical blockchain network;
wherein the first node sends to the second node a third unspent output intended to be transferred to the second node while sending to the second node a first unspent output (UTXO) intended to be transferred to the second node and a first address for receiving the value digital asset; wherein the third non-expended output is a third type of digital asset recorded as a third logical chain whose trade order is documented on the physical blockchain network in a different form than the first logical chain and the second logical chain;
the input of the cross-chain transaction order further includes an identification of the third non-spent output, and the output of the cross-chain transaction order further includes a third address, the third address being an address of the second node in the third logical chain.
2. The cross-chain digital asset transfer method according to claim 1, wherein the first node sends a fourth address to the second node while sending a first non-expendable output (UTXO) intended to be transferred to the second node and the first address for receiving the value digital asset to the second node, wherein the fourth address is an address of the first node in a fourth logical chain;
the input of the cross-chain transaction order further includes an identification of a fourth unspent output, the output of the cross-chain transaction order further including the fourth address.
3. The cross-chain digital asset transfer method according to claim 1, wherein the first node sends to the second node N different types of unspent outputs intended to be transferred to the second node while sending to the second node a first unspent output (UTXO) intended to be transferred to the second node and the first address for receiving the valued digital asset; wherein the N different types of non-spent outputs are respectively different types of digital assets recorded for different logical chains;
the input of the cross-chain trading order further comprises the identification of the N different types of non-spending outputs, the output of the cross-chain trading order further comprises N different addresses, the N different addresses are the addresses of the second node in the N different logic chains respectively, and N is larger than or equal to 2.
4. The cross-chain digital asset transfer method according to claim 1, wherein the first node sends to the second node N different addresses, which are the addresses of the first node in N different logical chains, while sending to the second node a first non-expendable output (UTXO) intended to be transferred to the second node and a first address for receiving the value digital asset;
the input of the cross-chain trading order further comprises an identification of N different types of non-spending outputs, wherein the N different types of spending outputs are different types of digital assets respectively recorded by the N different logical chains, the output of the cross-chain trading order further comprises the N different addresses, and N is greater than or equal to 2.
5. The cross-chain digital asset transfer method according to claim 1, further comprising:
and other nodes in the physical block chain network record the cross-chain transaction list into a block after verifying that the digital signature and the input in the cross-chain transaction list are both valid.
6. The method of claim 1, wherein the first node sends a change address to the second node concurrently with sending the first address and the identification of the first non-cost output to the second node;
the output of the cross-chain transaction list also comprises the change making address and the corresponding change making quantity;
wherein the change address is an address in the second logical chain.
7. The method of claim 1, wherein the output of the cross-chain transaction slip further comprises a change address and a corresponding change amount;
wherein, the change address is an address in the first logic chain.
8. The method of claim 1, wherein the identification of the unspent output comprises a transaction identification and an output sequence number.
9. The method of claim 1, wherein the first node and the second node are carried by the same data processing device.
10. A cross-chain digital asset transfer method comprising:
receiving an identification of a first non-cost output (UTXO) from a first node and a first address for receiving a value digital asset, wherein the first non-cost output is a first type of digital asset recorded by a first logical chain, the first address is an address of the first node in a second logical chain, and transaction orders of the first and second logical chains are respectively placed on a physical blockchain network in different forms;
constructing a cross-chain transaction order, wherein the input of the cross-chain transaction order comprises an identification of a first non-cost output and an identification of a second non-cost output, the output of the cross-chain transaction order comprises a second address and the first address, the second non-cost output is a second type of digital asset recorded by a second logic chain, and the second address is an address of a second node in the first logic chain;
sending the cross-chain transaction list to a first node after the cross-chain transaction list is digitally signed;
receiving a third uneconomic output (UTXO) that is expected to be transferred to the second node concurrently with receiving the first uneconomic output from the first node and the first address for receiving the value digital asset; wherein the third non-expended output is a third type of digital asset recorded as a third logical chain whose trade order is documented on the physical blockchain network in a different form than the first logical chain and the second logical chain;
the input of the cross-chain transaction order further includes an identification of the third non-spent output, and the output of the cross-chain transaction order further includes a third address, the third address being an address of the second node in the third logical chain.
11. A cross-chain digital asset transfer method comprising:
transmitting to a second node an identification of a first unspent output (UTXO) that is expected to be transferred to the second node and a first address for receiving a value digital asset, wherein the first unspent output is a first type of digital asset recorded by a first logical chain, the first address is an address of the first node in a second logical chain, and transaction orders of the first logical chain and the second logical chain are respectively placed on a physical blockchain network in different forms;
receiving a cross-chain transaction order digitally signed via the second node, the input of the cross-chain transaction order including an identification of a first unspent output and an identification of a second unspent output, the output of the cross-chain transaction order including a second address and the first address, wherein the second unspent output is a second type of digital asset recorded by a second logical chain, and the second address is an address of the second node in the first logical chain;
digitally signing the cross-chain transaction order and broadcasting the cross-chain transaction order including the digital signatures of the first node and the second node into the physical blockchain network;
wherein the first node sends to the second node a third unspent output intended to be transferred to the second node while sending to the second node a first unspent output (UTXO) intended to be transferred to the second node and a first address for receiving the value digital asset; wherein the third non-expended output is a third type of digital asset recorded as a third logical chain whose trade order is documented on the physical blockchain network in a different form than the first logical chain and the second logical chain;
the input of the cross-chain transaction order further includes an identification of the third non-spent output, and the output of the cross-chain transaction order further includes a third address, the third address being an address of the second node in the third logical chain.
12. A terminal device, comprising:
a memory having computer instructions stored thereon; and the number of the first and second groups,
processor, characterized in that the computer instructions, when executed by the processor, implement the method according to any of claims 1-11.
CN201711422431.7A 2017-12-25 2017-12-25 Cross-chain digital asset transfer method and terminal equipment Active CN108154366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711422431.7A CN108154366B (en) 2017-12-25 2017-12-25 Cross-chain digital asset transfer method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711422431.7A CN108154366B (en) 2017-12-25 2017-12-25 Cross-chain digital asset transfer method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108154366A CN108154366A (en) 2018-06-12
CN108154366B true CN108154366B (en) 2021-09-14

Family

ID=62461945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711422431.7A Active CN108154366B (en) 2017-12-25 2017-12-25 Cross-chain digital asset transfer method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108154366B (en)

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10834062B2 (en) * 2018-06-20 2020-11-10 International Business Machines Corporation Unlinking ownership of successive asset transfers on a blockchain
CN109035019B (en) * 2018-07-11 2023-06-16 平安科技(深圳)有限公司 Bill transaction method, system, computer device and storage medium
CN109146448B (en) * 2018-07-13 2021-02-09 杭州复杂美科技有限公司 Cross-chain asset transfer method, device and storage medium
CN109167811B (en) 2018-07-27 2020-05-05 阿里巴巴集团控股有限公司 Cross-chain data access method and device based on block chain
CN109145205B (en) * 2018-07-27 2020-09-01 阿里巴巴集团控股有限公司 Cross-chain data operation method and device based on block chain
CN109242681B (en) * 2018-08-21 2020-11-20 京东数字科技控股有限公司 Asset data storage method, device, equipment and system
CN109146488A (en) * 2018-09-12 2019-01-04 杭州复杂美科技有限公司 Assets match method, assets match system, equipment and storage medium
CN109388957B (en) * 2018-09-26 2021-06-04 腾讯科技(深圳)有限公司 Block chain-based information transfer method, device, medium and electronic equipment
CN109409877B (en) * 2018-10-09 2020-12-04 北京网录科技有限公司 Block chain cross-chain value interaction method based on HTLC technology
CN109461075A (en) * 2018-10-09 2019-03-12 哈希(武汉)网络科技有限公司 A kind of block catenary system
CN109447601B (en) * 2018-10-11 2022-04-12 上海保险交易所股份有限公司 Method for performing witness transfer transactions in blockchain networks
CN111091382A (en) * 2018-10-24 2020-05-01 成都高新信息技术研究院 Block chain asset decentralized cross-chain transaction method and system
CN109523380A (en) * 2018-10-29 2019-03-26 中链科技有限公司 Across chain method of commerce and device
CN111199398A (en) * 2018-11-16 2020-05-26 上海派链信息科技有限公司 Method, apparatus, computer-readable storage medium and computer program product for cross-blockchain asset management
CN111199489A (en) * 2018-11-16 2020-05-26 上海派链信息科技有限公司 Method, apparatus, computer-readable storage medium and computer program product for cross-blockchain asset management
CN109493009B (en) * 2018-11-20 2022-03-08 四川长虹电器股份有限公司 Supply chain financial platform system based on XBRL and block chain
CN111222876B (en) * 2018-11-26 2022-11-11 本无链科技(深圳)有限公司 Method and system for solving cross-chain coupling
CN109493057A (en) * 2018-12-10 2019-03-19 联动优势科技有限公司 A kind of method of commerce and device based on UTXO model
CN109753816A (en) * 2018-12-13 2019-05-14 广州通链计算机智能技术有限责任公司 A kind of method and realization system of the block chain across chain
EP3563329B1 (en) * 2018-12-13 2022-02-09 Advanced New Technologies Co., Ltd. Off-chain smart contract service based on trusted execution environment
CN109685489B (en) * 2018-12-28 2021-06-01 杭州云象网络技术有限公司 Cross-chain transaction method for assets between block chains
CN111612453A (en) * 2019-02-22 2020-09-01 北京趣块远扬科技有限公司 Decentralized transaction method and device based on block chain and electronic equipment
CN111047445B (en) * 2019-12-11 2023-04-07 深圳区块大陆科技有限公司 Completely decentralized side chain crossing method
WO2021114445A1 (en) * 2019-12-13 2021-06-17 杜晓楠 Remote management system and method for digital asset
CN111523881B (en) * 2019-12-23 2023-03-10 杜晓楠 Digital asset management system and method
CN111275414A (en) * 2019-12-31 2020-06-12 深圳市网心科技有限公司 Block chain-based digital currency exchange method, device and system
CN112115205B (en) * 2020-11-23 2021-02-02 腾讯科技(深圳)有限公司 Cross-chain trust method, device, equipment and medium based on digital certificate authentication
CN112598518A (en) * 2020-12-24 2021-04-02 北京链化未来科技有限公司 Processing method for supporting cross-chain atomic transaction
CN113469809A (en) * 2021-06-18 2021-10-01 巨建华 Digital asset cross-chain transaction method and system
CN113327166A (en) * 2021-06-21 2021-08-31 史云凌 UTXO-based block chain multistage consensus method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170091726A1 (en) * 2015-09-07 2017-03-30 NXT-ID, Inc. Low bandwidth crypto currency transaction execution and synchronization method and system
CN106780025B (en) * 2016-11-30 2021-03-02 中国银行股份有限公司 Method, device and system for transferring digital assets in block chain
CN106940854A (en) * 2017-03-06 2017-07-11 钱德君 A kind of bridging method between UTXO models and contract
CN107239940A (en) * 2017-05-11 2017-10-10 北京博晨技术有限公司 Network trading method and device based on block catenary system
CN107301536B (en) * 2017-06-12 2019-07-12 腾讯科技(深圳)有限公司 Resource transfers method and device
CN107292621B (en) * 2017-06-22 2020-10-27 丁江 Method and node for determining authority and storing certificate of mass data
CN107392608B (en) * 2017-07-11 2020-07-07 北京博晨技术有限公司 Block chain system-based digital asset transaction method and block chain system

Also Published As

Publication number Publication date
CN108154366A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN108154366B (en) Cross-chain digital asset transfer method and terminal equipment
CN106982205B (en) Block chain-based digital asset processing method and device
CN109584066B (en) Privacy transaction based on block chain and application method and device thereof
CN110442652B (en) Cross-chain data processing method and device based on block chain
WO2017170912A1 (en) Transaction processing device, transaction processing method, and program for same
CN108320228A (en) Transregional piece of chain transaction in assets method, platform, equipment and storage medium
CN111327648B (en) Processing method and system based on block chain intelligent contract
CN109155730A (en) Technology for device authorization
CN108648084A (en) A kind of data processing method, device, equipment and the storage medium of block chain network
WO2020157708A2 (en) Point-to-point distributed decentralized system
CN110959164A (en) System and method for a blockchain dependent operation set
CN113228076A (en) Block chain management system
WO2020088074A1 (en) Privacy transaction method and apparatus based on blockchain, and application method and apparatus therefor
WO2021204044A1 (en) Correction of blockchain data
WO2019235198A1 (en) Settlement system, settlement method, user device, and settlement program
CN111465951A (en) Intelligent logistics management using blockchains
CN112804354B (en) Method and device for data transmission across chains, computer equipment and storage medium
JP7375074B2 (en) Vehicle communication methods, devices, and electronic equipment
JP2024518778A (en) Cargo transport information processing method, device, equipment, and storage medium
CN112163954A (en) Transaction method and device based on block chain
CN113141404B (en) Intelligent gateway and data sharing system
CN115705601A (en) Data processing method and device, computer equipment and storage medium
KR102364009B1 (en) e-WALLET AND ATOMIC SWAPPING METHOD OF TWO DIFFERENT BLOCKCHAIN TOKENS USING THE e-WALLET
US20100146281A1 (en) Security and certificate management for electronic business to business transactions
CN113783854B (en) Credit data cross-chain sharing method and device based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant