CN111464538A - Asset transaction method and system, storage medium and asset transaction background - Google Patents

Asset transaction method and system, storage medium and asset transaction background Download PDF

Info

Publication number
CN111464538A
CN111464538A CN202010247054.3A CN202010247054A CN111464538A CN 111464538 A CN111464538 A CN 111464538A CN 202010247054 A CN202010247054 A CN 202010247054A CN 111464538 A CN111464538 A CN 111464538A
Authority
CN
China
Prior art keywords
node
block chain
request message
private key
blockchain
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.)
Granted
Application number
CN202010247054.3A
Other languages
Chinese (zh)
Other versions
CN111464538B (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 CN202010247054.3A priority Critical patent/CN111464538B/en
Publication of CN111464538A publication Critical patent/CN111464538A/en
Application granted granted Critical
Publication of CN111464538B publication Critical patent/CN111464538B/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
    • 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
    • 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
    • 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 Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Development Economics (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 and system, a storage medium and an asset transaction background. The asset transaction method comprises the following steps: broadcasting a request message to a first block chain by an X node in the first block chain; the request message comprises that the X node needs to transfer the assets to the Y node in the second block chain; the N common nodes in the first block chain sequentially verify the request message; judging whether the number of the common nodes passing the verification of the request message is greater than N/2; if yes, sending the request message to the second block chain; if not, continuing to verify; an asset transaction operation is performed on the X node and the Y node. The method can realize the cross-block-chain asset transaction, avoids the problems of asset safety and credibility of the existing asset transaction method, can realize a safe, reliable and efficient on-chain asset transfer way, and improves the user experience.

Description

Asset transaction method and system, storage medium and asset transaction background
Technical Field
The invention belongs to the technical field of communication, and particularly relates to an asset transaction method and system, a storage medium and an asset transaction background.
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 blockchain projects inevitably raises a problem: 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, and the introduction of the third-party transaction platform brings a new centralized node, so that the problems of asset safety, credibility and the like inevitably exist.
Disclosure of Invention
The invention provides an asset transaction method and system, a storage medium and an asset transaction background, 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: broadcasting a request message to a first block chain by an X node in the first block chain; the request message comprises that the X node needs to transfer the assets to the Y node in the second block chain;
step S2: the N common nodes in the first block chain sequentially verify the request message; the common node is a node belonging to both the first blockchain and the second blockchain; n is an integer;
step S3: judging whether the number of the common nodes passing the verification of the request message is greater than N/2;
if so, go to step S4: sending the request message into the second blockchain; if not, continue to step S2;
step S5: an accounting node in the first blockchain performs asset transaction operations on an X node;
step S6: an accounting node in the second blockchain performs asset transaction operations on the Y node.
Optionally, step S2 includes:
step S21: the 1 st common node receives a request message signed by the X node by using a private key thereof, and verifies the private key signature of the request message signed by the private key by using a public key of the X node in the first block chain; after the verification is passed, the 1 st common node carries out private key signature again on the request message of the private key signature by using the private key of the common node in the first block chain, and broadcasts the request message of the private key signature again to the first block chain;
step S22: the (i + 1) th common node receives the request message of the private key signature in the step S21, and verifies the private key signature of the request message of the private key signature by using the public key of the (i) th common node in the first block chain; after the verification is passed, the (i + 1) th common node carries out private key signature again on the request message of the private key signature by using the private key of the common node in the first block chain, and broadcasts the request message of the private key signature again to the first block chain; 1, 2, 3, N.
Optionally, step S4 includes: the common node next to the current common node uses its private key in the second blockchain to perform private key re-signing on the request message which is private key signed last time in step S22, and sends the private key re-signed request message to the second blockchain.
Optionally, step S5 includes:
the accounting node in the first block chain receives the request message of the latest private key signature in the step S22, and verifies the private key signature of i +1 times of the request message according to the public key of i +1 common nodes in the first block chain;
after all verification is passed, recording the request message into the account book of the first block chain, and meanwhile, executing asset transaction operation on the X node by the accounting node in the first block chain.
Optionally, step S6 includes:
the accounting node in the second block chain receives the request message of private key signature again in step S4, and verifies the private key signature of the request message according to the public key of the (i + 1) th common node in the second block chain;
after the verification is passed, the accounting node searches the lists of the common nodes of the second block chain and the first block chain, and confirms the (i + 1) th common node as the common node of the first block chain and the second block chain approved by the second block chain;
and recording the request message into an account book of the second blockchain, and simultaneously executing asset transaction operation on the Y node by an accounting node in the second blockchain.
Optionally, step S1' is further included before step S1: creating N of the common nodes; n is an integer greater than or equal to 5.
Optionally, step S1' includes:
an originator node of the first block chain monitors a broadcast message of identity registration in the block chain network in real time;
when the identity registration broadcast message signed by the private key of a certain node comprises the identifier and the public key of the node in the first block chain, the identifier of the node in the second block chain and the identifier of the second block chain, the originator node of the first block chain verifies that the identity registration broadcast message uses the public key of the first block chain;
after the verification is passed, recording the information of the node into a common node list; the common 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;
when the number of nodes in the common node list changes, the originator node of the first blockchain sends the identification of the first blockchain, the identification of the second blockchain and the number of common nodes to the first blockchain network by using a broadcast message signed by a private key;
after receiving the broadcast message, the common node finds a corresponding public key in the first block chain account book, and verifies a private key signature of the broadcast message by using the public key;
and after the verification is passed, recording the number of the common nodes, the identifications of the common nodes in the first block chain and the second block chain, and the identifications of the first block chain and the second block chain.
The present invention also provides a storage medium having stored therein a program for executing the above-described asset transaction method.
The present invention also provides an asset transaction system comprising:
a request module, configured to broadcast a request message to a first blockchain by an X node in the first blockchain; the request message comprises that the X node needs to transfer the assets to the Y node in the second block chain;
a verification module, configured to sequentially verify the request message by N common nodes in the first blockchain; the common node is a node belonging to both the first blockchain and the second blockchain; n is an integer;
the judging module is used for judging whether the number of the common nodes passing the verification of the request message is greater than N/2;
a sending module, configured to send the request message to the second block chain when the determination result of the determining module is yes;
the asset transaction execution module is used for executing asset transaction operation on the X node by the accounting node in the first block chain; an accounting node also used in the second blockchain performs asset transaction operations on the Y node.
The invention also provides an asset transaction background comprising the asset transaction system.
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.
By adopting the asset transaction background provided by the invention, the asset transaction background can realize the trans-blockchain asset transaction, the problems of asset safety and credibility caused by the existing asset transaction method for providing the transfer and exchange of different blockchain project assets through a third-party transaction platform are avoided, a safe, reliable and efficient on-chain asset transfer way can be realized, and the user experience is improved.
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 S2 according to embodiment 2 of the present invention;
fig. 4 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, the storage medium, and the asset transaction background of the present invention are further described in 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: broadcasting a request message to a first block chain by an X node in the first block chain; the request message includes that the X node needs to transfer assets to the Y node in the second blockchain.
When an X node in a first block chain initiates an asset transaction request to a Y node in a second block chain, the X node signs a broadcast message by using a private key of the X node, and then broadcasts the broadcast message signed by the private key to the first block chain.
Step S2: the N common nodes in the first block chain sequentially verify the request message; the common node is a node belonging to both the first block chain and the second block chain; n is an integer.
In this step, a first blockchain and a second blockchain are set, and N common nodes belonging to the first blockchain and the second blockchain at the same time are created. N is an integer greater than or equal to 5.
The common nodes belong to two different block chains at the same time, namely, each common 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: judging whether the number of the common nodes passing the verification of the request message is greater than N/2;
if so, go to step S4: the request message is sent into the second blockchain. If not, execution continues with step S2.
Step S5: an accounting node in the first blockchain performs asset transaction operations on the X node.
Step S6: an accounting node in the second blockchain performs asset transaction operations on the Y node.
The first blockchain and the second blockchain may be two blockchains to which any asset transaction parties belong.
In the asset transaction method, through creating a plurality of common nodes belonging to a first block chain and a second block chain at the same time, after more than half of the common nodes in the first block chain carry out private key signature on a broadcast message of an asset transaction party node, the fact that the more than half of the common nodes approve the asset transaction party node to actually initiate an asset transaction request is confirmed, and as the more than half of the common nodes approve the message and complete signature issuance together, safe, reliable and fair asset transaction is realized, and at the moment, the asset transaction request is sent to the second block chain through one of the common nodes to be executed. In addition, since the approval of the common node is random, the approval can be only half of the approval, so that the asset transaction method still maintains the idea of block chain decentralization.
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': n common nodes are created. N is an integer greater than or equal to 5. The common node belongs to both the first blockchain and the second blockchain.
The method specifically comprises the following steps: as shown in figure 2 of the drawings, in which,
step S11: and the originator node of the first block chain monitors the broadcast message of the identity registration in the block chain network in real time.
Step S12: when the identity registration broadcast message signed by the private key of a certain node comprises the identifier and the public key of the node in the first block chain, the identifier of the node in the second block chain and the identifier of the second block chain, the originator node of the first block chain verifies that the identity registration broadcast message uses the public key of the first block chain.
Step S13: and after the verification is passed, recording the information of the node into the common node list. The common node list includes 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.
Step S14: when the number of nodes in the common node list changes, the originator node of the first blockchain sends the identification of the first blockchain, the identification of the second blockchain and the number of common nodes to the first blockchain network using a broadcast message signed by a private key.
Step S15: after receiving the broadcast message, the common node finds out the corresponding public key in the first block chain account book, and verifies the private key signature of the broadcast message by using the public key.
Step S16: and after the verification is passed, recording the number of the common nodes, the identifications of the common nodes in the first block chain and the second block chain, and the identifications of the first block chain and the second block chain.
It should be noted that step S1' may also specifically include:
step S11': and the originator node of the second block chain monitors the broadcast message of the identity registration in the block chain network in real time.
Step S12': when the identity registration broadcast message signed by the private key of a certain node comprises the identifier and the public key of the node in the second block chain, the identifier of the node in the first block chain and the identifier of the first block chain, the originator node of the second block chain verifies that the identity registration broadcast message uses the public key of the second block chain.
Step S13': and after the verification is passed, recording the information of the node into the common node list. The common node list includes the identifier of the second block chain, the identifier and the public key of the node in the second block chain, the identifier of the first block chain, and the identifier of the node in the first block chain.
Step S14': when the number of nodes in the common node list changes, the originator node of the second blockchain sends the identification of the second blockchain, the identification of the first blockchain and the number of common nodes to the second blockchain network by using a broadcast message signed by a private key.
Step S15': after receiving the broadcast message, the common node finds out the corresponding public key in the second block chain account book, and uses the public key to verify the private key signature of the broadcast message.
Step S16': and after the verification is passed, recording the number of the common nodes, the identifiers of the common nodes in the second block chain and the first block chain, and the identifiers of the second block chain and the first block chain.
Step S1: broadcasting a request message to a first block chain by an X node in the first block chain; the request message includes that the X node needs to transfer assets to the Y node in the second blockchain.
Step S2: the N common nodes in the first block chain sequentially verify the request message; the common node is a node belonging to both the first block chain and the second block chain; n is an integer.
The method specifically comprises the following steps: as shown in figure 3 of the drawings,
step S21: the 1 st common node receives a request message signed by the X node by using a private key of the X node, and verifies the private key signature of the request message signed by the private key by using a public key of the X node in the first block chain; after the verification is passed, the 1 st common node carries out private key signature again on the request message of the private key signature by using the private key of the 1 st common node in the first block chain, and broadcasts the request message of the private key signature again to the first block chain.
Step S22: the (i + 1) th common node receives the request message of the private key signature in the step S21, and verifies the private key signature of the request message of the private key signature by using the public key of the (i) th common node in the first block chain; after the verification is passed, the (i + 1) th common node carries out private key signature again on the request message of the private key signature by using the private key of the common node in the first block chain, and broadcasts the request message of the private key signature again to the first block chain; i is 1, 2, 3 …, N.
Step S3: and judging whether the number of the common nodes passing the verification of the request message is greater than N/2.
If so, go to step S4: the request message is sent into the second blockchain. If not, execution continues with step S2.
Step S4 includes: the next common node of the current common node performs private key re-signing on the request message of the latest private key signing in step S22 using its private key in the second blockchain, and sends the private key re-signed request message to the second blockchain.
Step S5: an accounting node in the first blockchain performs asset transaction operations on the X node.
The method specifically comprises the following steps: the accounting node in the first block chain receives the request message of the latest private key signature in the step S22, and verifies the private key signature of the request message for i +1 times according to the public key of i +1 common nodes in the first block chain; and after all verification passes, recording the request message into an account book of the first block chain, and simultaneously executing asset transaction operation on the X node by the accounting node in the first block chain.
Step S6: an accounting node in the second blockchain performs asset transaction operations on the Y node.
The method specifically comprises the following steps: the accounting node in the second block chain receives the request message of the private key signature again in the step S4, and verifies the private key signature of the request message according to the public key of the (i + 1) th common node in the second block chain; after the verification is passed, the accounting node searches a list of common nodes of the second block chain and the first block chain, and confirms that the (i + 1) th common node is a common node of the first block chain and the second block chain approved by the second block chain; and recording the request message into an account book of the second blockchain, and simultaneously executing asset transaction operation on the Y node by the account book node in the second blockchain.
In this embodiment, the X node in the first blockchain needs to transfer money to the Y node in the second blockchain, and when the number of the common nodes is 5, the specific process of the asset transaction method from step S1 to step S6 is as follows:
step S1: after signing a broadcast message in a first block chain by using a private key-mas of an X node, broadcasting the broadcast message to a first block chain network, wherein the broadcast message comprises: event: the X node needs to transfer money to the Y node in the second block chain, the identification of the X node in the first block chain, the number of money, the identification of the second block chain and the identification of the Y node in the second block chain;
step S21: the first common node receives the broadcast message in the step S1, finds the public key-mag corresponding to the node in the first blockchain account book according to the blockchain identifier of the X node, verifies the private key signature of the broadcast message using the public key, and if the verification is passed, the first common node performs secondary private key signature on the broadcast message in the step S1 using its own private key-cas in the first blockchain network, and broadcasts the broadcast message with the secondary private key signature to the first blockchain network;
step S221: the second common node receives the broadcast message in the step S21, finds the public key-cag corresponding to the node in the first blockchain ledger according to the blockchain identifier of the first common node, verifies the private key signature of the broadcast message, if the verification is passed, the second common node performs three times of private key signature on the broadcast message in the step S21 by using the private key-das of the second common node in the first blockchain network, and broadcasts the broadcast message with the three times of private key signatures to the first blockchain network;
step S222: the third common node receives the broadcast message in step S221, finds the public key-dag in the first blockchain corresponding to the node according to the blockchain identifier of the second common node in the first blockchain ledger, verifies the private key signature of the broadcast message, and if the verification is passed, broadcasts the broadcast message with the private key signature of four times to the first blockchain network after the third common node uses the private key-eas of the third common node in the first blockchain network to sign the broadcast message in step S221 with the private key signature of four times;
step S223: the third common node calculates that the number of the common nodes stored in the third common node is 5, and more than half of the number is 3, and then adds the own private key signature of the X node of the previous step S1 to be equal to four private key signatures, that is, if the broadcast message of the step S1 is approved by more than half of the common nodes, the broadcast message is equal to the broadcast message that has been commonly acknowledged by the first blockchain and the second blockchain, the third common node represents the first common node, the second common node and the third common node, and the broadcast message of the four private key signatures of the step S222 is sent to the second blockchain network after being subjected to five private key signatures by the third common node in the second blockchain network B using the private key-ebs of the second blockchain network.
Step S5: after receiving the broadcast message in step S222, the accounting nodes in the first block chain search the public keys key-cag, key-dag, key-eag and key-mag of the first block chain corresponding to the 4 nodes in the first block chain account book according to the block chain identifiers of the X node, the first common node, the second common node and the third common node in sequence, and the key-mag verifies the four-time private key signature of the broadcast message, if all the verifications pass, the broadcast message is recorded into a new block, and then the broadcast message is recorded into the block chain account book, and at the same time, the accounting node performs an operation of reducing the amount of money funds on the X node;
step S6: after receiving the broadcast message in step S223, the accounting nodes in the second blockchain search the public key-ebg of the second blockchain corresponding to the node in the second blockchain account book according to the blockchain identifier of the third common node in sequence to verify the private key signature of the broadcast message, and if the verification is passed, the accounting nodes search the lists of the common node of the blockchain and the first blockchain node sent by the originator node of the second blockchain, and confirm that the third common node belongs to the common node of the first blockchain and the second blockchain approved by the originator node of the second blockchain, record the broadcast message into the new block, and further record the broadcast message into the blockchain account book, and at the same time, the accounting Y node of the second blockchain performs an operation of adding money amount to funds.
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 in embodiment 1 or 2, this embodiment provides an asset transaction system, as shown in fig. 4, including: the request module 1 is used for broadcasting a request message to the first block chain by the X node in the first block chain. The request message includes that the X node needs to transfer assets to the Y node in the second blockchain. And the verification module 2 is used for sequentially verifying the request messages by the N common nodes in the first block chain. The common node is a node belonging to both the first block chain and the second block chain; n is an integer. And the judging module 3 is used for judging whether the number of the common nodes passing the verification of the request message is greater than N/2. And a sending module 4, configured to send the request message to the second blockchain when the determination result of the determining module 3 is yes. The asset transaction execution module 5 is used for executing asset transaction operation on the X node by the accounting node in the first block chain; accounting nodes also used in the second blockchain perform asset transaction operations on the Y node.
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 an asset transaction back office comprising the asset transaction system of embodiment 3.
By adopting the asset transaction system in the embodiment 3, the asset transaction background can realize the inter-blockchain asset transaction, thereby avoiding the problems of asset security and trustiness brought by the existing asset transaction method for providing the transfer and exchange of different blockchain project assets through a third-party transaction platform, realizing a safe, reliable and efficient on-chain asset transfer approach, and improving the user experience.
Example 5
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 (10)

1. An asset transaction method, comprising:
step S1: broadcasting a request message to a first block chain by an X node in the first block chain; the request message comprises that the X node needs to transfer the assets to the Y node in the second block chain;
step S2: the N common nodes in the first block chain sequentially verify the request message; the common node is a node belonging to both the first blockchain and the second blockchain; n is an integer;
step S3: judging whether the number of the common nodes passing the verification of the request message is greater than N/2;
if so, go to step S4: sending the request message into the second blockchain; if not, continue to step S2;
step S5: an accounting node in the first blockchain performs asset transaction operations on an X node;
step S6: an accounting node in the second blockchain performs asset transaction operations on the Y node.
2. The asset transaction method according to claim 1, wherein step S2 includes:
step S21: the 1 st common node receives a request message signed by the X node by using a private key thereof, and verifies the private key signature of the request message signed by the private key by using a public key of the X node in the first block chain; after the verification is passed, the 1 st common node carries out private key signature again on the request message of the private key signature by using the private key of the common node in the first block chain, and broadcasts the request message of the private key signature again to the first block chain;
step S22: the (i + 1) th common node receives the request message of the private key signature in the step S21, and verifies the private key signature of the request message of the private key signature by using the public key of the (i) th common node in the first block chain; after the verification is passed, the (i + 1) th common node carries out private key signature again on the request message of the private key signature by using the private key of the common node in the first block chain, and broadcasts the request message of the private key signature again to the first block chain; 1, 2, 3, N.
3. The asset transaction method according to claim 2, wherein step S4 includes: the common node next to the current common node uses its private key in the second blockchain to perform private key re-signing on the request message which is private key signed last time in step S22, and sends the private key re-signed request message to the second blockchain.
4. The asset transaction method according to claim 3, wherein step S5 includes:
the accounting node in the first block chain receives the request message of the latest private key signature in the step S22, and verifies the private key signature of i +1 times of the request message according to the public key of i +1 common nodes in the first block chain;
after all verification is passed, recording the request message into the account book of the first block chain, and meanwhile, executing asset transaction operation on the X node by the accounting node in the first block chain.
5. The asset transaction method according to claim 4, wherein step S6 includes:
the accounting node in the second block chain receives the request message of private key signature again in step S4, and verifies the private key signature of the request message according to the public key of the (i + 1) th common node in the second block chain;
after the verification is passed, the accounting node searches the lists of the common nodes of the second block chain and the first block chain, and confirms the (i + 1) th common node as the common node of the first block chain and the second block chain approved by the second block chain;
and recording the request message into an account book of the second blockchain, and simultaneously executing asset transaction operation on the Y node by an accounting node in the second blockchain.
6. The asset transaction method according to claim 1, further comprising, before step S1, step S1': creating N of the common nodes; n is an integer greater than or equal to 5.
7. The asset transaction method according to claim 6, wherein the step S1' comprises:
an originator node of the first block chain monitors a broadcast message of identity registration in the block chain network in real time;
when the identity registration broadcast message signed by the private key of a certain node comprises the identifier and the public key of the node in the first block chain, the identifier of the node in the second block chain and the identifier of the second block chain, the originator node of the first block chain verifies that the identity registration broadcast message uses the public key of the first block chain;
after the verification is passed, recording the information of the node into a common node list; the common 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;
when the number of nodes in the common node list changes, the originator node of the first blockchain sends the identification of the first blockchain, the identification of the second blockchain and the number of common nodes to the first blockchain network by using a broadcast message signed by a private key;
after receiving the broadcast message, the common node finds a corresponding public key in the first block chain account book, and verifies a private key signature of the broadcast message by using the public key;
and after the verification is passed, recording the number of the common nodes, the identifications of the common nodes in the first block chain and the second block chain, and the identifications of the first block chain and the second block chain.
8. A storage medium in which a program for executing the asset transaction method according to any one of claims 1 to 7 is stored.
9. An asset transaction system, comprising:
a request module, configured to broadcast a request message to a first blockchain by an X node in the first blockchain; the request message comprises that the X node needs to transfer the assets to the Y node in the second block chain;
a verification module, configured to sequentially verify the request message by N common nodes in the first blockchain; the common node is a node belonging to both the first blockchain and the second blockchain; n is an integer;
the judging module is used for judging whether the number of the common nodes passing the verification of the request message is greater than N/2;
a sending module, configured to send the request message to the second block chain when the determination result of the determining module is yes;
the asset transaction execution module is used for executing asset transaction operation on the X node by the accounting node in the first block chain; an accounting node also used in the second blockchain performs asset transaction operations on the Y node.
10. An asset transaction back office comprising the asset transaction system of claim 9.
CN202010247054.3A 2020-03-31 2020-03-31 Asset transaction method and system, storage medium and asset transaction background Active CN111464538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010247054.3A CN111464538B (en) 2020-03-31 2020-03-31 Asset transaction method and system, storage medium and asset transaction background

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010247054.3A CN111464538B (en) 2020-03-31 2020-03-31 Asset transaction method and system, storage medium and asset transaction background

Publications (2)

Publication Number Publication Date
CN111464538A true CN111464538A (en) 2020-07-28
CN111464538B CN111464538B (en) 2022-02-01

Family

ID=71680953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010247054.3A Active CN111464538B (en) 2020-03-31 2020-03-31 Asset transaction method and system, storage medium and asset transaction background

Country Status (1)

Country Link
CN (1) CN111464538B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970123A (en) * 2020-08-10 2020-11-20 中国联合网络通信集团有限公司 Wireless resource transaction method, terminal and system based on block chain network
CN112104607A (en) * 2020-08-13 2020-12-18 北京新盛云佳科技有限公司 Method, device, network node and storage medium for cross-link communication
CN114584317A (en) * 2022-03-03 2022-06-03 杭州复杂美科技有限公司 Block chain broadcast data verification method, equipment and storage medium

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
WO2018073482A1 (en) * 2016-10-18 2018-04-26 Nokia Technologies Oy Accession control for network nodes
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
US20190356472A1 (en) * 2016-07-29 2019-11-21 nChain Holdings Limited Blockchain-implemented method and system
CN110609868A (en) * 2019-09-03 2019-12-24 中国人民大学 Cross-chain cooperative working method and system based on same-block chain platform
US20200074450A1 (en) * 2017-04-11 2020-03-05 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
US20190356472A1 (en) * 2016-07-29 2019-11-21 nChain Holdings Limited Blockchain-implemented method and system
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
US20200074450A1 (en) * 2017-04-11 2020-03-05 nChain Holdings Limited Secure transfer between blockchains
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
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
KAN LUO等: "A Multiple Blockchains Architecture On Inter-Blockchain Communication", 《2018 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION》 *
赵涛等: "基于聚类簇中心的共识跨链交换模型", 《计算机科学》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970123A (en) * 2020-08-10 2020-11-20 中国联合网络通信集团有限公司 Wireless resource transaction method, terminal and system based on block chain network
CN111970123B (en) * 2020-08-10 2023-07-25 中国联合网络通信集团有限公司 Wireless resource transaction method, terminal and system based on blockchain network
CN112104607A (en) * 2020-08-13 2020-12-18 北京新盛云佳科技有限公司 Method, device, network node and storage medium for cross-link communication
CN114584317A (en) * 2022-03-03 2022-06-03 杭州复杂美科技有限公司 Block chain broadcast data verification method, equipment and storage medium

Also Published As

Publication number Publication date
CN111464538B (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN111464538B (en) Asset transaction method and system, storage medium and asset transaction background
US11461773B2 (en) Blockchain-based node management methods and apparatuses
CN110958110B (en) Block chain private data management method and system based on zero knowledge proof
TW202016818A (en) Blockchain transaction method and device
CN113239382A (en) Credible identity model based on block chain intelligent contract
CN113194469A (en) 5G unmanned aerial vehicle cross-domain identity authentication method, system and terminal based on block chain
CN111464636B (en) Asset transaction method and system, and storage medium
CN110930153B (en) Block chain privacy data management method and system based on hidden third party account
CN111275555B (en) Block chain transaction processing method, transaction node and block chain system
CN112508566A (en) Alliance chain-based cross-chain private transaction method and equipment
CN111815321A (en) Transaction proposal processing method, device, system, storage medium and electronic device
CN111464632B (en) Block chain cross-chain forwarding method and block chain link point
CN113850599B (en) Cross-link transaction method and system applied to alliance link
CN111222174A (en) Joining method, verification method, device and storage medium of block chain node
CN111464536B (en) Block chain cross-chain method and device
CN109919614A (en) A kind of method for protecting intelligent contract privacy using zero-knowledge proof in block chain
CN109474926A (en) The number of taking based on block chain turns network method and device, storage medium
CN109525983A (en) Information processing method and device, storage medium
CN113556234A (en) Block chain cross-chain communication method and system
CN111258986A (en) Rollback method of block chain
CN109905874A (en) The method and system of the autonomous number of selecting based on block chain
CN111163109A (en) Block chain center-removing type node anti-counterfeiting method
CN110728579A (en) Asset management method, block chain platform, equipment and storage medium
CN113328854B (en) Service processing method and system based on block chain
CN114297678A (en) Operation method, device, equipment and storage medium of union chain 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