CN111464636B - Asset transaction method and system, and storage medium - Google Patents

Asset transaction method and system, and storage medium Download PDF

Info

Publication number
CN111464636B
CN111464636B CN202010246971.XA CN202010246971A CN111464636B CN 111464636 B CN111464636 B CN 111464636B CN 202010246971 A CN202010246971 A CN 202010246971A CN 111464636 B CN111464636 B CN 111464636B
Authority
CN
China
Prior art keywords
node
asset transaction
blockchain
block chain
broadcast message
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
CN202010246971.XA
Other languages
Chinese (zh)
Other versions
CN111464636A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202010246971.XA priority Critical patent/CN111464636B/en
Publication of CN111464636A publication Critical patent/CN111464636A/en
Application granted granted Critical
Publication of CN111464636B publication Critical patent/CN111464636B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0825Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides an asset transaction method, an asset transaction system and a storage medium. The asset transaction method comprises the following steps: a node X in a first blockchain initiates an asset transaction request to a node Y in a second blockchain; the common node broadcasts the asset transaction request into a second blockchain; the second blockchain executes the asset transaction, and broadcasts a message of the second blockchain executing the asset transaction in the second blockchain; the common node broadcasts a message that the second blockchain performs the asset transaction into the first blockchain; the first blockchain performs the asset transaction and broadcasts a message in the first blockchain that the first blockchain performs the asset transaction. The method can realize the cross-block-chain asset transaction, avoid the problems of asset safety and credibility brought by the existing asset transaction method, realize a safe, reliable and efficient on-chain asset transfer way, and improve the user experience.

Description

Asset transaction method and system, and storage medium
Technical Field
The invention belongs to the technical field of communication, and particularly relates to an asset transaction method and system and a storage medium.
Background
With the development of the blockchain technology, a large number of public chains, private chains and alliance chains with different characteristics and suitable for different application scenarios, such as bitcoin, ether house and the like, coexist. Due to the mutual independence of the block chains, the existing data communication and value transfer among the block chains still face challenges, and the value islanding phenomenon gradually appears. The explosive development of the block chain project inevitably brings a problem of how to realize interconnection and intercommunication among chains.
According to the existing asset transaction method adopting the blockchain technology, a third-party transaction platform provides a realization mode of transfer and exchange of different blockchain project assets, a new centralized node is brought by the introduction of the third-party transaction platform, the problems of asset safety, credibility and the like inevitably exist, and the user experience is poor.
Disclosure of Invention
The invention provides an asset transaction method, an asset transaction system and a storage medium, aiming at the problems in the prior art. The asset transaction method can realize the cross-block-chain asset transaction, avoids the problems of asset safety and credibility caused by the existing asset transaction method for providing the transfer and exchange of different block chain project assets through a third-party transaction platform, can realize a safe, reliable and efficient on-chain asset transfer way, and improves the user experience.
The invention provides an asset transaction method, which comprises the following steps:
step S1: a node X in a first blockchain initiates an asset transaction request to a node Y in a second blockchain;
step S2: the common node broadcasts the asset transaction request into the second blockchain; wherein the common node belongs to both the nodes of the first blockchain and the second blockchain;
step S3: the second blockchain executes the asset transaction, and broadcasts a message of executing the asset transaction by the second blockchain in the second blockchain;
step S4: the common node broadcasting a message that the second blockchain performed the asset transaction into the first blockchain;
step S5: the first blockchain executes the asset transaction, and broadcasts a message in the first blockchain that the first blockchain executes the asset transaction.
Optionally, before the step S1, the accounting node of the first blockchain newly adds and stores a first intelligent contract; newly adding a second intelligent contract for storage at the accounting node of the second block chain; the first intelligent contract stores a consensus mechanism, originator information, originator block information, node identification and public key information of the second block chain; the second intelligent contract stores the consensus mechanism, the originator information, the origination block information, the node identification and the public key information of the first block chain.
Optionally, the step S1 includes:
step S11, a node X in the first block chain generates an asset transaction request;
step S12, the node X uses its private key to sign the asset transaction request, and obtains a first asset transaction broadcast message;
step S13, broadcasting the first asset transaction broadcast message into the first blockchain; the first asset transaction broadcast message includes information of an asset transaction event initiated by node X to node Y, an identification of node X in the first blockchain, an identification of the second blockchain, and an identification of node Y in the second blockchain.
Optionally, the step S2 includes:
step S21, receiving the first asset transaction broadcast message;
step S22, the first asset transaction broadcast message is signed by using a private key of the public node in the second block chain, and a first asset transaction signature broadcast message is obtained;
step S23, forwarding the first asset transaction signature broadcast message into the second blockchain.
Optionally, the step S3 includes:
step S31: an accounting node of the second blockchain receives the first asset transaction signature broadcast message;
step S32: verifying a private key signed by the public node in the first asset transaction signature broadcast message;
step S33: after the verification is passed, the second block chain automatically executes the second intelligent contract to verify a private key signed by the node X in the first asset transaction broadcast message;
step S34: after the verification is passed, executing asset transaction operation on the node Y of the second block chain according to the content of the asset transaction request;
step S35: and after the asset transaction operation is successfully executed, generating an asset transaction execution message, using a private key of an accounting node R in the second block chain for obtaining the accounting right of the current block to sign the asset transaction execution message, obtaining a second asset transaction broadcast message, and broadcasting the second asset transaction broadcast message into the second block chain.
Optionally, the step S32 includes:
the accounting node of the second block chain searches an account book of the second block chain according to the identification of the public node in the second block chain;
finding a public key of the public node in the second blockchain from an account book of the second blockchain;
verifying, using the public key of the second blockchain, a private key signed by the public node in the first asset transaction signing broadcast message.
Optionally, the step S33 includes:
and starting the second intelligent contract by the accounting node of the second block chain, and verifying the private key signed by the node X in the first asset transaction broadcast message by using the consensus mechanism of the first block chain and the public key of the node X stored in the second intelligent contract.
Optionally, the step S4 includes:
step S40: receiving the second asset transaction broadcast message;
step S41: verifying a private key in the second asset transaction broadcast message signed by a billing node R in the second blockchain;
step S42: after the verification is successful, the second asset transaction broadcast message is signed by using a private key of the public node in the first block chain, and a second asset transaction signature broadcast message is obtained;
step S43: broadcasting the second asset transaction signature broadcast message into the first blockchain.
Optionally, the step S5 includes:
step S50: the accounting node of the first blockchain receives the second asset transaction signature broadcast message;
step S51: verifying a private key signed by the public node in the second asset transaction signature broadcast message;
step S52: after the verification is passed, executing asset transaction operation on the node X of the first block chain according to the content of the asset transaction request;
step S53: and after the asset transaction operation is successfully executed, generating an asset transaction execution message, using a private key of an accounting node in the first block chain for obtaining the accounting right of the current block to sign the asset transaction execution message, obtaining a first asset transaction execution message, and broadcasting the first asset transaction execution message to the first block chain.
Optionally, the step S51 includes:
the accounting node of the first block chain searches a public key of the public node in the first block chain according to the identification of the public node in the first block chain account book;
the public key is used to verify a private key signed by the public node in the second asset transaction signing broadcast message.
Optionally, step S1 is preceded by step S1': creating a common node belonging to both the first blockchain and the second blockchain; the step S1' includes:
an originator node of the first block chain monitors the identity registration broadcast message of a node in the block chain network in real time;
judging whether the identity registration broadcast message comprises the identifier and the public key of the node in the first block chain, and also comprises the identifier of the node in the second block chain and the identifier of the second block chain;
if so, the originator node of the first block chain verifies the identity registration broadcast message of the node by using the public key of the first block chain;
after the verification is passed, recording the information of the node into a public node list; the public node list comprises an identifier of the first block chain, an identifier and a public key of the node in the first block chain, an identifier of the second block chain and an identifier of the node in the second block chain;
judging whether the number of nodes in the public node list changes or not;
if so, the originator node of the first block chain carries out private key signature on the identifier of the first block chain, the identifier of the second block chain and the number of the public nodes to obtain a first broadcast message, and sends the first broadcast message to the first block chain network;
receiving the first broadcast message, signing the first broadcast message by using a private key of the public node in the second block chain to obtain a first signed broadcast message, and forwarding the first signed broadcast message to the second block chain;
the accounting node of the second block chain receives the first signature broadcast message and verifies a private key signed by the public node in the first signature broadcast message;
after the verification is passed, starting a second intelligent contract by a billing node of the second block chain, and verifying the first signature broadcast message by using a public key in the first block chain originator information in the second intelligent contract;
and after the verification is passed, adding a record of the node and the public key of the first block chain in the second intelligent contract by the accounting node of the second block chain.
The present invention also provides an asset transaction system comprising:
the request module is used for initiating an asset transaction request to a node Y in a second blockchain by a node X in a first blockchain;
a first broadcast module for a common node to broadcast the asset transaction request into the second blockchain; wherein the common node belongs to both the nodes of the first blockchain and the second blockchain;
the first transaction execution module is used for executing the asset transaction by the second blockchain and broadcasting the message of executing the asset transaction by the second blockchain in the second blockchain;
a second broadcasting module, configured to broadcast, by the common node, a message that the second blockchain performs the asset transaction into the first blockchain;
and the second transaction execution module is used for executing the asset transaction by the first blockchain and broadcasting the message of executing the asset transaction by the first blockchain in the first blockchain.
The invention has the beneficial effects that: the asset transaction method and the system provided by the invention can realize the cross-block-chain asset transaction, avoid the problems of asset safety and credibility caused by the existing asset transaction method for providing the transfer and exchange of different block chain project assets through a third party transaction platform, realize a safe, reliable and efficient on-chain asset transfer path and improve the user experience.
The storage medium provided by the invention can realize the cross-block-chain asset transaction by storing the program for executing the asset transaction method, avoids the problems of asset security and credibility caused by the existing asset transaction method for providing the transfer and exchange of different block chain project assets through a third party transaction platform, can realize a safe, reliable and efficient on-chain asset transfer path, and improves the user experience.
Drawings
FIG. 1 is a flow chart of an asset transaction method in embodiment 1 of the present invention;
FIG. 2 is a flowchart of asset transaction method step S1' in embodiment 2 of the present invention;
FIG. 3 is a flowchart of asset transaction method step S3 according to embodiment 2 of the present invention;
FIG. 4 is a flowchart of asset transaction method step S4 in embodiment 2 of the present invention;
FIG. 5 is a flowchart of asset transaction method step S5 according to embodiment 2 of the present invention;
fig. 6 is a functional block diagram of an asset transaction system in embodiment 3 of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the asset transaction method and system, and the storage medium of the present invention will be described in further detail with reference to the accompanying drawings and the detailed description.
Example 1
The embodiment provides an asset transaction method, as shown in fig. 1, including:
step S1: node X in the first blockchain initiates an asset transaction request to node Y in the second blockchain.
Step S2: the common node broadcasts the asset transaction request into the second blockchain.
Wherein the common node belongs to both the nodes of the first blockchain and the second blockchain. The public nodes belong to two different block chains at the same time, namely each public node has a block chain identifier and a public and private key pair in the first block chain and also has a block chain identifier and a public and private key pair in the second block chain.
Step S3: the second blockchain performs the asset transaction and broadcasts a message in the second blockchain that the second blockchain performed the asset transaction.
Step S4: the common node broadcasts a message into the first blockchain that the second blockchain performs the asset transaction.
Step S5: the first blockchain performs the asset transaction and broadcasts a message in the first blockchain that the first blockchain performs the asset transaction.
The first blockchain and the second blockchain may be two blockchains to which any asset transaction parties belong.
The asset transaction method can realize the cross-block-chain asset transaction, avoids the problems of asset safety and credibility caused by the existing asset transaction method for providing the transfer and exchange of different block chain project assets through a third-party transaction platform, can realize a safe, reliable and efficient on-chain asset transfer way, and improves the user experience.
Example 2
The embodiment provides an asset transaction method, which comprises the following steps:
step S1': a common node is created that belongs to both the first blockchain and the second blockchain.
The public nodes belong to two different block chains at the same time, namely each public node has a block chain identifier and a public and private key pair in the first block chain and also has a block chain identifier and a public and private key pair in the second block chain.
Step S1' specifically includes: as shown in figure 2 of the drawings, in which,
step S10': and the originator node of the first block chain monitors the identity registration broadcast message of the node in the block chain network in real time.
Step S11': and judging whether the identity registration broadcast message comprises the identifier and the public key of the node in the first block chain, and also comprises the identifier of the node in the second block chain and the identifier of the second block chain.
If so, go to step S12': the originator node of the first blockchain verifies the identity registration broadcast message of the node using the public key of the first blockchain. If not, the process is ended.
Step S13': and after the verification is passed, recording the information of the node into a public node list. The public node list includes the identifier of the first block chain, the identifier and the public key of the node in the first block chain, the identifier of the second block chain, and the identifier of the node in the second block chain.
Step S14': and judging whether the number of the nodes in the common node list changes or not.
If so, go to step S15': and the originator node of the first block chain carries out private key signature on the identification of the first block chain, the identification of the second block chain and the number of public nodes to obtain a first broadcast message, and sends the first broadcast message to the first block chain network. If not, step S12' is performed.
Step S16': and receiving the first broadcast message, signing the first broadcast message by using a private key of the public node in the second block chain to obtain a first signed broadcast message, and forwarding the first signed broadcast message to the second block chain.
Step S17': and the accounting node of the second block chain receives the first signature broadcast message and verifies the private key signed by the public node in the first signature broadcast message.
Step S18': and after the verification is passed, the accounting node of the second block chain starts a second intelligent contract stored by the accounting node, and the public key in the first block chain originator information in the second intelligent contract is used for verifying the first signature broadcast message.
Step S19': and after the verification is passed, the accounting node of the second block chain newly adds a record of the node and the public key of the first block chain in the second intelligent contract.
Before step S1, adding a first intelligent contract to the accounting node of the first blockchain; newly adding a second intelligent contract for storage at the accounting node of the second block chain; the first intelligent contract stores a consensus mechanism, originator information, originator block information, node identification and public key information of a second block chain; the second intelligent contract stores the consensus mechanism, the originator information, the origination block information, the node identification and the public key information of the first block chain.
Step S1: node X in the first blockchain initiates an asset transaction request to node Y in the second blockchain.
The method specifically comprises the following steps:
at step S11, node X in the first blockchain generates an asset transaction request.
At step S12, node X signs the asset transaction request using its private key, obtaining a first asset transaction broadcast message.
Step S13, a first asset transaction broadcast message is broadcast into the first blockchain. The first asset transaction broadcast message includes information of an asset transaction event initiated by node X to node Y, an identification of node X in the first blockchain, an identification of the second blockchain, and an identification of node Y in the second blockchain.
Step S2: the common node broadcasts the asset transaction request into the second blockchain. Wherein the common node belongs to both the nodes of the first blockchain and the second blockchain.
The method specifically comprises the following steps:
at step S21, a first asset transaction broadcast message is received.
Step S22, the first asset transaction broadcast message is signed by using the private key of the public node in the second block chain, and the first asset transaction signature broadcast message is obtained.
Step S23, the first asset transaction signature broadcast message is forwarded into the second blockchain.
Step S3: the second blockchain performs the asset transaction and broadcasts a message in the second blockchain that the second blockchain performed the asset transaction.
The method specifically comprises the following steps: as shown in figure 3 of the drawings,
step S31: an accounting node of the second blockchain receives the first asset transaction signature broadcast message.
Step S32: a private key signed by the public node in the first asset transaction signature broadcast message is verified.
The method specifically comprises the following steps:
the accounting node of the second block chain searches an account book of the second block chain according to the identification of the public node in the second block chain; finding out a public key of the public node in the second block chain from the account book of the second block chain; the private key signed by the public node in the first asset transaction signing broadcast message is verified using the public key of the second blockchain.
Step S33: and after the verification is passed, the second block chain automatically executes a second intelligent contract to verify the private key signed by the node X in the first asset transaction broadcast message.
The method specifically comprises the following steps: and starting a second intelligent contract by the accounting node of the second block chain, and verifying the private key signed by the node X in the first asset transaction broadcast message by using the common identification mechanism of the first block chain and the public key of the node X, which are stored in the second intelligent contract.
In this step, after the accounting node of the second blockchain has the second intelligent contract, the broadcast information of the first blockchain transmitted through the common node may be verified to see if it meets the encrypted hash and the block header of the first blockchain, so as to verify if the asset transaction, event or status information of the first blockchain occurs, and then determine whether to execute the transaction in its own blockchain.
Step S34: and after the verification is passed, executing asset transaction operation on the node Y of the second block chain according to the content of the asset transaction request.
Step S35: and after the asset transaction operation is successfully executed, generating an asset transaction execution message, using a private key of an accounting node R in a second block chain for obtaining the accounting right of the block to sign the asset transaction execution message, obtaining a second asset transaction broadcast message, and broadcasting the second asset transaction broadcast message into the second block chain.
Step S4: the common node broadcasts a message into the first blockchain that the second blockchain performs the asset transaction.
The method specifically comprises the following steps: as shown in figure 4 of the drawings,
step S40: a second asset transaction broadcast message is received.
Step S41: the private key in the second asset transaction broadcast message signed by accounting node R in the second blockchain is verified.
Step S42: and after the verification is successful, the second asset transaction broadcast message is signed by using a private key of the public node in the first block chain, and the second asset transaction signature broadcast message is obtained.
Step S43: a second asset transaction signature broadcast message is broadcast into the first blockchain.
Step S5: the first blockchain performs the asset transaction and broadcasts a message in the first blockchain that the first blockchain performs the asset transaction.
The method specifically comprises the following steps: as shown in figure 5 of the drawings,
step S50: an accounting node of the first blockchain receives the second asset transaction signature broadcast message.
Step S51: the private key signed by the public node in the second asset transaction signing broadcast message is verified.
The method specifically comprises the following steps: the accounting node of the first block chain searches a public key of the public node in the first block chain according to the identification of the public node in the first block chain account book; the public key is used to verify a private key signed by the public node in the second asset transaction signing broadcast message.
Step S52: and after the verification is passed, executing asset transaction operation on the node X of the first block chain according to the content of the asset transaction request.
Step S53: and after the asset transaction operation is successfully executed, generating an asset transaction execution message, using a private key of an accounting node in a first block chain for obtaining the accounting right of the block to sign the asset transaction execution message, obtaining the first asset transaction execution message, and broadcasting the first asset transaction execution message to the first block chain.
The first blockchain and the second blockchain may be two blockchains to which any asset transaction parties belong.
Advantageous effects of examples 1 to 2: the asset transaction method provided in embodiment 1-2 can implement cross-blockchain asset transaction, avoid the problem of asset security and trustiness caused by the existing asset transaction method that provides transfer and exchange of assets of different blockchain projects through a third-party transaction platform, and can implement a safe, reliable and efficient on-chain asset transfer approach, thereby improving user experience.
Example 3
Based on the asset transaction method provided in embodiment 1 or 2, the present embodiment provides an asset transaction system, as shown in fig. 6, including: the request module 1 is used for initiating an asset transaction request from a node X in a first blockchain to a node Y in a second blockchain. And the first broadcasting module 2 is used for broadcasting the asset transaction request to the second block chain by the public node. Wherein the common node belongs to both the nodes of the first blockchain and the second blockchain. And the first transaction execution module 3 is used for executing the asset transaction by the second blockchain and broadcasting the message of executing the asset transaction by the second blockchain in the second blockchain. And the second broadcasting module 4 is used for broadcasting the message that the second blockchain executes the asset transaction to the first blockchain by the common node. And the second transaction execution module 5 is used for executing the asset transaction by the first blockchain and broadcasting the message of executing the asset transaction by the first blockchain in the first blockchain.
The asset transaction system can realize the cross-block-chain asset transaction, avoids the problems of asset safety and credibility caused by the existing asset transaction method for providing the transfer and exchange of different block chain project assets through a third-party transaction platform, can realize a safe, reliable and efficient on-chain asset transfer way, and improves the user experience.
Example 4
The present embodiment provides a storage medium in which a program for executing the asset transaction method in embodiment 1 or 2 is stored.
The storage medium stores a program for executing the asset transaction method in embodiment 1 or 2, so that the cross-blockchain asset transaction can be realized, the problem of asset security and credibility caused by the existing asset transaction method for providing transfer and exchange of assets of different blockchain projects through a third-party transaction platform is solved, a safe, reliable and efficient on-chain asset transfer path can be realized, and the user experience is improved.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (11)

1. An asset transaction method, comprising:
step S1: a node X in a first blockchain initiates an asset transaction request to a node Y in a second blockchain;
step S2: the common node broadcasts the asset transaction request into the second blockchain; wherein the common node belongs to both the nodes of the first blockchain and the second blockchain;
step S3: the second blockchain executes the asset transaction, and broadcasts a message of executing the asset transaction by the second blockchain in the second blockchain;
step S4: the common node broadcasting a message that the second blockchain performed the asset transaction into the first blockchain;
step S5: the first blockchain executes the asset transaction, and broadcasts a message of executing the asset transaction by the first blockchain in the first blockchain;
before the step S1, adding a first intelligent contract to the accounting node of the first blockchain; newly adding a second intelligent contract for storage at the accounting node of the second block chain; the first intelligent contract stores a consensus mechanism, originator information, originator block information, node identification and public key information of the second block chain; the second intelligent contract stores the consensus mechanism, the originator information, the origination block information, the node identification and the public key information of the first block chain.
2. The asset transaction method according to claim 1, wherein said step S1 includes:
step S11, a node X in the first block chain generates an asset transaction request;
step S12, the node X uses its private key to sign the asset transaction request, and obtains a first asset transaction broadcast message;
step S13, broadcasting the first asset transaction broadcast message into the first blockchain; the first asset transaction broadcast message includes information of an asset transaction event initiated by node X to node Y, an identification of node X in the first blockchain, an identification of the second blockchain, and an identification of node Y in the second blockchain.
3. The asset transaction method according to claim 2, wherein said step S2 includes:
step S21, receiving the first asset transaction broadcast message;
step S22, the first asset transaction broadcast message is signed by using a private key of the public node in the second block chain, and a first asset transaction signature broadcast message is obtained;
step S23, forwarding the first asset transaction signature broadcast message into the second blockchain.
4. The asset transaction method according to claim 3, wherein said step S3 includes:
step S31: an accounting node of the second blockchain receives the first asset transaction signature broadcast message;
step S32: verifying a private key signed by the public node in the first asset transaction signature broadcast message;
step S33: after the verification is passed, the second block chain automatically executes the second intelligent contract to verify a private key signed by the node X in the first asset transaction broadcast message;
step S34: after the verification is passed, executing asset transaction operation on the node Y of the second block chain according to the content of the asset transaction request;
step S35: and after the asset transaction operation is successfully executed, generating an asset transaction execution message, using a private key of an accounting node R in the second block chain for obtaining the accounting right of the current block to sign the asset transaction execution message, obtaining a second asset transaction broadcast message, and broadcasting the second asset transaction broadcast message into the second block chain.
5. The asset transaction method according to claim 4, wherein said step S32 includes:
the accounting node of the second block chain searches an account book of the second block chain according to the identification of the public node in the second block chain;
finding a public key of the public node in the second blockchain from an account book of the second blockchain;
verifying, using the public key of the second blockchain, a private key signed by the public node in the first asset transaction signing broadcast message.
6. The asset transaction method according to claim 4, wherein said step S33 includes:
and starting the second intelligent contract by the accounting node of the second block chain, and verifying the private key signed by the node X in the first asset transaction broadcast message by using the consensus mechanism of the first block chain and the public key of the node X stored in the second intelligent contract.
7. The asset transaction method according to claim 4, wherein said step S4 includes:
step S40: receiving the second asset transaction broadcast message;
step S41: verifying a private key in the second asset transaction broadcast message signed by a billing node R in the second blockchain;
step S42: after the verification is successful, the second asset transaction broadcast message is signed by using a private key of the public node in the first block chain, and a second asset transaction signature broadcast message is obtained;
step S43: broadcasting the second asset transaction signature broadcast message into the first blockchain.
8. The asset transaction method according to claim 7, wherein said step S5 includes:
step S50: the accounting node of the first blockchain receives the second asset transaction signature broadcast message;
step S51: verifying a private key signed by the public node in the second asset transaction signature broadcast message;
step S52: after the verification is passed, executing asset transaction operation on the node X of the first block chain according to the content of the asset transaction request;
step S53: and after the asset transaction operation is successfully executed, generating an asset transaction execution message, using a private key of an accounting node in the first block chain for obtaining the accounting right of the current block to sign the asset transaction execution message, obtaining a first asset transaction execution message, and broadcasting the first asset transaction execution message to the first block chain.
9. The asset transaction method according to claim 8, wherein said step S51 includes:
the accounting node of the first block chain searches a public key of the public node in the first block chain according to the identification of the public node in the first block chain account book;
the public key is used to verify a private key signed by the public node in the second asset transaction signing broadcast message.
10. The asset transaction method according to claim 1, wherein step S1 is preceded by step S1': creating a common node belonging to both the first blockchain and the second blockchain; the step S1' includes:
an originator node of the first block chain monitors the identity registration broadcast message of a node in the block chain network in real time;
judging whether the identity registration broadcast message comprises the identifier and the public key of the node in the first block chain, and also comprises the identifier of the node in the second block chain and the identifier of the second block chain;
if so, the originator node of the first block chain verifies the identity registration broadcast message of the node by using the public key of the first block chain;
after the verification is passed, recording the information of the node into a public node list; the public node list comprises an identifier of the first block chain, an identifier and a public key of the node in the first block chain, an identifier of the second block chain and an identifier of the node in the second block chain;
judging whether the number of nodes in the public node list changes or not;
if so, the originator node of the first block chain carries out private key signature on the identifier of the first block chain, the identifier of the second block chain and the number of the public nodes to obtain a first broadcast message, and sends the first broadcast message to the first block chain network;
receiving the first broadcast message, signing the first broadcast message by using a private key of the public node in the second block chain to obtain a first signed broadcast message, and forwarding the first signed broadcast message to the second block chain;
the accounting node of the second block chain receives the first signature broadcast message and verifies a private key signed by the public node in the first signature broadcast message;
after the verification is passed, starting a second intelligent contract by a billing node of the second block chain, and verifying the first signature broadcast message by using a public key in the first block chain originator information in the second intelligent contract;
and after the verification is passed, adding a record of the node and the public key of the first block chain in the second intelligent contract by the accounting node of the second block chain.
11. An asset transaction system, comprising:
newly adding a first intelligent contract for storage at a billing node of the first block chain; newly adding a second intelligent contract for storage at the accounting node of the second block chain; the first intelligent contract stores a consensus mechanism, originator information, originator block information, node identification and public key information of the second block chain; the second intelligent contract stores a consensus mechanism, originator information, originator block information, node identification and public key information of the first block chain;
a request module for a node X in the first blockchain to initiate an asset transaction request to a node Y in the second blockchain;
a first broadcast module for a common node to broadcast the asset transaction request into the second blockchain; wherein the common node belongs to both the nodes of the first blockchain and the second blockchain;
the first transaction execution module is used for executing the asset transaction by the second blockchain and broadcasting the message of executing the asset transaction by the second blockchain in the second blockchain;
a second broadcasting module, configured to broadcast, by the common node, a message that the second blockchain performs the asset transaction into the first blockchain;
and the second transaction execution module is used for executing the asset transaction by the first blockchain and broadcasting the message of executing the asset transaction by the first blockchain in the first blockchain.
CN202010246971.XA 2020-03-31 2020-03-31 Asset transaction method and system, and storage medium Active CN111464636B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010246971.XA CN111464636B (en) 2020-03-31 2020-03-31 Asset transaction method and system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010246971.XA CN111464636B (en) 2020-03-31 2020-03-31 Asset transaction method and system, and storage medium

Publications (2)

Publication Number Publication Date
CN111464636A CN111464636A (en) 2020-07-28
CN111464636B true CN111464636B (en) 2021-12-07

Family

ID=71679474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010246971.XA Active CN111464636B (en) 2020-03-31 2020-03-31 Asset transaction method and system, and storage medium

Country Status (1)

Country Link
CN (1) CN111464636B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112398934B (en) * 2020-11-05 2022-08-12 嘉兴天培智能检测科技有限公司 Trusting broadcasting method based on block chain
CN113763178A (en) * 2021-09-24 2021-12-07 成都质数斯达克科技有限公司 Multi-block chain cross-chain transaction method, device, equipment and readable storage medium
CN114331718A (en) * 2021-12-21 2022-04-12 弥达斯科技(深圳)有限公司 Cross-chain transaction method, device, equipment, storage medium and computer program product

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106797389A (en) * 2016-11-18 2017-05-31 深圳前海达闼云端智能科技有限公司 Block chain network, article trading method, device and node device
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN107392608A (en) * 2017-07-11 2017-11-24 北京博晨技术有限公司 Digital asset method of commerce and block catenary system based on block catenary system
CN107911216A (en) * 2017-10-26 2018-04-13 矩阵元技术(深圳)有限公司 A kind of block chain transaction method for secret protection and system
WO2018073482A1 (en) * 2016-10-18 2018-04-26 Nokia Technologies Oy Accession control for network nodes
CN109426949A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Across the chain method of commerce of one kind and device
CN109785136A (en) * 2019-01-30 2019-05-21 北京京东尚科信息技术有限公司 A kind of transaction processing method of block chain, client and block chain network
CN110020860A (en) * 2019-04-09 2019-07-16 湖南天河国云科技有限公司 Across the chain assets transfer method of one kind, system and computer readable storage medium
CN110310119A (en) * 2019-07-06 2019-10-08 辽宁大学 Extendible capacity storage method towards the transaction of transregional piece of chain
CN110471984A (en) * 2019-07-15 2019-11-19 阿里巴巴集团控股有限公司 Method for processing business and device, electronic equipment based on block chain
WO2019220271A1 (en) * 2018-05-14 2019-11-21 nChain Holdings Limited Computer-implemented systems and methods for using a blockchain to perform an atomic swap
CN110609868A (en) * 2019-09-03 2019-12-24 中国人民大学 Cross-chain cooperative working method and system based on same-block chain platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018020371A1 (en) * 2016-07-29 2018-02-01 nChain Holdings Limited Blockchain-implemented method and system
JP2020517135A (en) * 2017-04-11 2020-06-11 エヌチェーン ホールディングス リミテッドNchain Holdings Limited Secure transfer between blockchains

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018073482A1 (en) * 2016-10-18 2018-04-26 Nokia Technologies Oy Accession control for network nodes
CN106797389A (en) * 2016-11-18 2017-05-31 深圳前海达闼云端智能科技有限公司 Block chain network, article trading method, device and node device
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN107392608A (en) * 2017-07-11 2017-11-24 北京博晨技术有限公司 Digital asset method of commerce and block catenary system based on block catenary system
CN109426949A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Across the chain method of commerce of one kind and device
CN107911216A (en) * 2017-10-26 2018-04-13 矩阵元技术(深圳)有限公司 A kind of block chain transaction method for secret protection and system
WO2019220271A1 (en) * 2018-05-14 2019-11-21 nChain Holdings Limited Computer-implemented systems and methods for using a blockchain to perform an atomic swap
CN109785136A (en) * 2019-01-30 2019-05-21 北京京东尚科信息技术有限公司 A kind of transaction processing method of block chain, client and block chain network
CN110020860A (en) * 2019-04-09 2019-07-16 湖南天河国云科技有限公司 Across the chain assets transfer method of one kind, system and computer readable storage medium
CN110310119A (en) * 2019-07-06 2019-10-08 辽宁大学 Extendible capacity storage method towards the transaction of transregional piece of chain
CN110471984A (en) * 2019-07-15 2019-11-19 阿里巴巴集团控股有限公司 Method for processing business and device, electronic equipment based on block chain
CN110609868A (en) * 2019-09-03 2019-12-24 中国人民大学 Cross-chain cooperative working method and system based on same-block chain platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Multiple Blockchains Architecture On Inter-Blockchain Communication;Kan Luo等;《2018 IEEE International Conference on Software Quality, Reliability and Security Companion》;20180813;全文 *
基于聚类簇中心的共识跨链交换模型;赵涛等;《计算机科学》;20191130;第46卷(第11A期);全文 *

Also Published As

Publication number Publication date
CN111464636A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
WO2020168937A1 (en) Block chain multi-party witness method, apparatus and device, and computer-readable storage medium
CN112039872B (en) Cross-domain anonymous authentication method and system based on block chain
CN111464636B (en) Asset transaction method and system, and storage medium
CN110958110B (en) Block chain private data management method and system based on zero knowledge proof
CN113194469B (en) 5G unmanned aerial vehicle cross-domain identity authentication method, system and terminal based on block chain
WO2018228337A1 (en) Service data storage method, computer readable storage medium and electronic device
RU2374778C2 (en) Protected bootstrapping for wireless communication
CN110958111B (en) Block chain-based identity authentication mechanism of electric power mobile terminal
US9467432B2 (en) Method and device for generating local interface key
CN102577462B (en) Methods and apparatus for deriving, communicating and/or verifying ownership of expressions
CN107547573B (en) authentication method applied to eSIM, RSP terminal and management platform
CN112583596B (en) Complete cross-domain identity authentication method based on block chain technology
WO2008008014A1 (en) Method and arrangement for authentication procedures in a communication network
CN110930153B (en) Block chain privacy data management method and system based on hidden third party account
CN111464538B (en) Asset transaction method and system, storage medium and asset transaction background
CN111815321A (en) Transaction proposal processing method, device, system, storage medium and electronic device
CN113255014B (en) Data processing method based on block chain and related equipment
CN116112187B (en) Remote proving method, device, equipment and readable storage medium
CN111464536A (en) Block chain cross-chain method and device
CN109673010A (en) The number of taking based on block chain turns network method and device, storage medium
CN109639715B (en) Method, device and equipment for avoiding double-flower attack and computer readable storage medium
CN114297678A (en) Operation method, device, equipment and storage medium of union chain system
CN110324824A (en) Vice card adding method, user terminal and block chain network system
Yang et al. Blockchain-based conditional privacy-preserving authentication protocol with implicit certificates for vehicular edge computing
CN110290488B (en) Call forwarding reporting method, register, terminal and block chain network system

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