CN112258183A - Cross-chain private transaction method, block chain network and electronic equipment - Google Patents

Cross-chain private transaction method, block chain network and electronic equipment Download PDF

Info

Publication number
CN112258183A
CN112258183A CN202011175943.XA CN202011175943A CN112258183A CN 112258183 A CN112258183 A CN 112258183A CN 202011175943 A CN202011175943 A CN 202011175943A CN 112258183 A CN112258183 A CN 112258183A
Authority
CN
China
Prior art keywords
transaction
blockchain network
cross
public
network
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
CN202011175943.XA
Other languages
Chinese (zh)
Other versions
CN112258183B (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.)
Chengdu Quality Starker Technology Co Ltd
Original Assignee
Chengdu Quality Starker Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Quality Starker Technology Co Ltd filed Critical Chengdu Quality Starker Technology Co Ltd
Priority to CN202011175943.XA priority Critical patent/CN112258183B/en
Publication of CN112258183A publication Critical patent/CN112258183A/en
Application granted granted Critical
Publication of CN112258183B publication Critical patent/CN112258183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • 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/02Banking, e.g. interest calculation or account maintenance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The embodiment of the invention provides a cross-chain private transaction method, a block chain network and electronic equipment, and aims to realize the cross-block chain network private transaction. The cross-chain private transaction method is applied to a public block chain network, and comprises the following steps: obtaining a public transaction, a first pre-execution result of a first blockchain network and a second pre-execution result of a second blockchain network, wherein the public transaction is a non-private part in a cross-chain private transaction; judging whether the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction or not according to the first pre-execution result and the second pre-execution result; and if so, executing the public transaction, and returning the execution result of the public transaction to the first block chain network and the second block chain network, so that each block chain network records the respective pre-execution result to the respective block chain.

Description

Cross-chain private transaction method, block chain network and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a cross-chain private transaction method, a blockchain network, and an electronic device.
Background
The block chain technology is built on a transmission network (also called as a block chain network), distributed node equipment (hereinafter referred to as nodes) in the transmission network realizes generation, verification and uplink storage of block data by operating a block chain program, finally realizes a data tamper-proof mechanism, and provides a safe and reliable technical new idea for business development.
The block chain technology can be applied to various service scenes, such as the financial field, the electronic commerce field, the commodity or raw material tracing field, the electronic evidence storage field and the like.
In the related art, each blockchain network is usually connected to a plurality of users, and services can be performed in the blockchain network between the plurality of users in the same blockchain network. However, as the business needs continue to increase and update, there is a need to conduct transactions across blockchain networks, and in some scenarios, privacy of transactions needs to be met. Therefore, how to implement private transactions across a blockchain network is a technical problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention aims to provide a cross-chain private transaction method, a blockchain network and electronic equipment, and aims to realize the cross-blockchain private transaction. The specific technical scheme is as follows:
in a first aspect of an embodiment of the present invention, a method for cross-chain private transaction is provided, which is applied to a public block chain network, and includes:
obtaining a public transaction, a first pre-execution result of a first blockchain network on a cross-chain private transaction and a second pre-execution result of a second blockchain network on the cross-chain private transaction, wherein the cross-chain private transaction is a transaction between the first blockchain network and the second blockchain network, and the public transaction is a non-private part in the cross-chain private transaction;
judging whether the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction or not according to the first pre-execution result and the second pre-execution result;
if so, executing the public transaction, and returning an execution result of the public transaction to the first blockchain network and the second blockchain network, so that the first blockchain network records the first pre-execution result to a blockchain of the first blockchain network, and the second blockchain network records the second pre-execution result to a blockchain of the second blockchain network, or so that the first blockchain network executes the cross-chain private transaction, and records an execution result of the cross-chain private transaction to a blockchain of the first blockchain network, and so that the second blockchain network executes the cross-chain private transaction, and records an execution result of the cross-chain private transaction to a blockchain of the second blockchain network.
In a second aspect of the embodiments of the present invention, there is provided another cross-link private transaction method, applied to a second blockchain network, the method including:
pre-executing a cross-chain private transaction to obtain a second pre-execution result, and sending the second pre-execution result to a public block chain network, wherein the cross-chain private transaction is a transaction between a first block chain network and a second block chain network;
under the condition of obtaining an execution result returned by the public blockchain network, recording the second pre-execution result to a blockchain of the second blockchain network, or under the condition of obtaining the execution result returned by the public blockchain network, executing the cross-chain private transaction, and recording the execution result of the cross-chain private transaction to the blockchain of the second blockchain network;
wherein the execution result is obtained by the public block chain network by: when the public blockchain network determines that the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction according to a first pre-execution result of the first blockchain network and a second pre-execution result of the second blockchain network, the public blockchain network executes a public transaction to obtain an execution result, wherein the public transaction is a non-private part in the cross-chain private transaction.
In a third aspect of the embodiments of the present invention, a blockchain network is provided, where the blockchain network implements a cross-chain private transaction method provided in any embodiment of the present invention when running.
In a fourth aspect of the embodiments of the present invention, an electronic device is provided, where the electronic device belongs to the above block chain network, and the electronic device is used to cooperate with other electronic devices in the above block chain network, so as to implement the cross-chain private transaction method provided in any embodiment of the present invention.
By applying the cross-chain private transaction method provided by the invention, the public blockchain network executes the public transaction only under the condition that the first blockchain network and the second blockchain network both successfully execute the cross-chain private transaction in advance, so that the first blockchain network and the second blockchain network record respective pre-execution results to respective blockchains. Thus, the invention can avoid the following situations: one of the blockchain networks fails to execute the cross-chain private transaction and records the result of the execution failure in the blockchain, and the other blockchain network succeeds in executing the cross-chain private transaction and records the result of the execution success in the blockchain, so that the account book data of the two blockchain networks do not correspond to the account book data of the same cross-chain private transaction. Therefore, the cross-chain transaction can be accurately and reliably realized by implementing the invention.
In addition, the public blockchain network performs public transactions, which is equivalent to witnessing inter-chain private transactions between the first blockchain network and the second blockchain network in the public blockchain. And as the public transaction is a non-private part in the cross-link private transaction, the public blockchain network cannot divulge a secret for the cross-link private transaction, thereby ensuring the privacy of the cross-link transaction.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
FIG. 1 is a schematic diagram of a cross-chain private transaction system according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a cross-chain private transaction in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram of voting according to an embodiment of the present invention;
FIG. 4 is a diagram of a transaction structure according to an embodiment of the present invention;
FIG. 5 is a diagram of a common blockchain network processing transaction according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating the submission of pre-execution results according to one embodiment of the present invention;
FIG. 7 is a schematic diagram of a transaction structure according to another embodiment of the present invention;
FIG. 8 is a diagram of a common blockchain network processing transaction according to another embodiment of the present invention;
FIG. 9 is a flowchart of a cross-chain private transaction method according to an embodiment of the present invention;
FIG. 10 is a flowchart of a cross-chain private transaction method according to another embodiment of the present invention;
fig. 11 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The block chain technology is built on a transmission network (also called as a block chain network), distributed node equipment (hereinafter referred to as nodes) in the transmission network realizes generation, verification and uplink storage of block data by operating a block chain program, finally realizes a data tamper-proof mechanism, and provides a safe and reliable technical new idea for business development.
In the related art, each blockchain network is usually connected to a plurality of users, and services can be performed in the blockchain network between the plurality of users in the same blockchain network. However, as the business needs continue to increase and update, there is a need to conduct transactions across blockchain networks, and in some scenarios, privacy of transactions needs to be met. Therefore, how to implement private transactions across a blockchain network is a technical problem to be solved urgently.
In view of this, the present invention provides a cross-link private transaction system, a cross-link private transaction method, a blockchain network, and an electronic device through the following embodiments, and aims to implement a cross-blockchain private transaction.
Referring to fig. 1, fig. 1 is a schematic diagram of a cross-chain private transaction system according to an embodiment of the present invention. As shown in fig. 1, the cross-chain private transaction system includes: a common blockchain network, a first blockchain network, and a second blockchain network. Each blockchain network comprises a plurality of distributed node devices (hereinafter referred to as nodes), and each blockchain network maintains a set of blockchains of the blockchain network. It should be noted that the cross-chain private transaction system may further include other blockchain networks connected to the public blockchain network, and for simplifying the drawing, only the first blockchain network and the second blockchain network are briefly shown in fig. 1.
Alternatively, in some embodiments, intra-chain services, i.e., non-cross-chain services, may be deployed within a single blockchain network. The specific service development process comprises the following steps: real data generated in the physical world are constructed into a transaction format supported by a blockchain and are published to a blockchain network; after each node of the block chain network receives the transaction, processing the transaction, and recording the transaction and the processing result of the transaction to a block; the plurality of nodes mutually agree on the respective blocks, and when agreement is achieved, each node adds the respective block to the end of the block chain stored in each node.
It should be noted that, in the implementation of the present invention, how to perform services in a single blockchain network is not limited to the above-described embodiments. In addition to the above-mentioned specific embodiments, other technical solutions known to those skilled in the art can be adopted, and are not described herein again.
Optionally, in some embodiments, the first blockchain network shown in fig. 1 is a federation chain or a private chain, and a plurality of nodes of the first blockchain network are operated and maintained by one or more financial institutions. The second blockchain network shown in fig. 1 is also a federation chain or a private chain, and a plurality of nodes of the second blockchain network are also operated and maintained by another financial institution or financial institutions.
For ease of understanding, the first blockchain network illustratively includes 50 nodes, the 50 nodes being maintained by respective branches of bank a. Specifically, 22 nodes are operated and maintained by branch A1, 16 nodes are operated and maintained by branch A2, and 12 nodes are operated and maintained by branch A3. The second blockchain network includes 35 nodes, which are operated and maintained by respective branches of bank B. Specifically, 15 of the nodes are operated and maintained by branch B1, 12 of the nodes are operated and maintained by branch B2, and 8 of the nodes are operated and maintained by branch B3. Between the branches of bank a, business may be conducted within the first blockchain network. Additionally, between account a1 and account a2, which bank a opens, business may also be conducted within the first blockchain network. Between the branches of bank B, business may be conducted within the second blockchain network. In addition, between account B1 and account B2, which bank B opens, business may also be conducted within the second blockchain network.
In some cases, the need for a private transaction across a blockchain network may arise between a first blockchain network and a second blockchain network. For example, account a of bank a needs to transfer to account B of bank B and the transfer between account a and account B is desired to be kept secret, a need for a private transaction across the blockchain network arises between the first blockchain network and the second blockchain network. For how to implement private transactions across blockchain networks, please refer to the following, which is not described herein in detail.
Optionally, in some embodiments, as shown in fig. 1, the first blockchain network corresponds to one gateway (hereinafter, this gateway is referred to as a first gateway), and the second blockchain network corresponds to another gateway (hereinafter, this gateway is referred to as a second gateway).
The first gateway communicates with the first blockchain network by communicating with any node or a plurality of designated nodes in the first blockchain network, and the first gateway communicates with the public blockchain network by communicating with any node or a plurality of designated nodes in the public blockchain network. In this way, the first blockchain network realizes communication connection with the public blockchain network through the first gateway.
The second gateway communicates with the second blockchain network by communicating with any node or a plurality of designated nodes in the second blockchain network, and communicates with the public blockchain network by communicating with any node or a plurality of designated nodes in the public blockchain network. In this way, the second blockchain network realizes communication connection with the public blockchain network through the second gateway.
In addition, a first gateway of the first blockchain network may communicate with a second gateway of the second blockchain network such that the first blockchain network is communicatively connected to the second blockchain network through the first gateway and the second gateway.
In fig. 1, the communication connections between the individual blockchain networks are indicated by dashed arrows.
As previously mentioned, in some cases, the need for private transactions across blockchain networks may arise between a first blockchain network and a second blockchain network. To implement a private transaction across a blockchain network, referring to fig. 2, fig. 2 is a flowchart of a private transaction across a chain according to an embodiment of the present invention.
It should be noted that fig. 2, which is presented hereinafter, is a highly generalized drawing. Fig. 3 to 8 are introduced alternately during the introduction of fig. 2, and fig. 3 to 8 can be regarded as a detailed explanation of the content of fig. 2.
As shown in FIG. 2, a first blockchain network receives a user-submitted transaction (shown as tx-1 in FIG. 2) that includes the following data: transaction ID, transaction type identification, public transaction, cross-chain private transaction, and ciphertext of cross-chain private transaction.
The transaction ID is the number of the transaction tx-1 and is also the number of the cross-chain private transaction.
Wherein the transaction type identifier is used to characterize: whether the transaction involves cross-chain behavior. For ease of understanding, illustratively, if the transaction type is identified as KL, it is stated that the transaction involves cross-chain behavior. If the transaction type is identified as GE, then the transaction is not related to cross-chain behavior. The characters such as "KL" and "GE" are merely examples, and should not be construed as limiting the present invention.
Wherein, open transaction means: the non-private part of a cross-chain private transaction, the public transaction needs to be performed within a public blockchain network.
The cross-link private transaction comprises two parts, namely a front private transaction and a back private transaction. The pre-private transaction is: the portion of the cross-chain private transaction that needs to be performed within the first blockchain network. Post private transactions refer to: the portion of the cross-chain private transaction that needs to be performed within the second blockchain network.
For ease of understanding, assuming, by way of example, that account a of bank a needs to transfer 500 dollars to account B of bank B, the pre-private transaction of the cross-chain private transaction includes the following two steps: firstly, account a of a first blockchain network transfers 500 yuan to a main account of the first blockchain network; then, 500 yen is destroyed from the primary account of the first blockchain network.
The post-private transaction of the cross-chain private transaction comprises the following two steps: firstly, adding 500 yuan in a main account of a second block chain network; the primary account of the second blockchain network then transfers 500 dollars to account b of the second blockchain network.
The public transaction corresponding to the cross-chain private transaction comprises the following steps: a first primary account of the public blockchain network transfers 500 elements to a second primary account of the public blockchain network. The first main account of the public block chain network corresponds to the main account of the first block chain network, and the second main account of the public block chain network corresponds to the main account of the second block chain network.
It can be seen that, because the public transaction is executed in the public block link network, and the pre-private transaction and the post-private transaction of the cross-link private transaction are not executed in the public block link network, only 500 yuan can be transferred from the first main account of the public block link network to the second main account of the public block link network through the public block link network, and 500 yuan can not be transferred from the account a to the account b through the public block link network, so that the privacy of the account a and the account b during business development can be favorably ensured.
In addition, the front private transaction can also carry: a network ID of the blockchain network that performed the pre-private transaction. The post-private transaction can also be carried with: the network ID of the blockchain network that performed the post-private transaction. In fig. 2, the cross-link private transaction is a transaction between the first blockchain network and the second blockchain network, so the network ID carried by the pre-private transaction is the network ID of the first blockchain network, and the network ID carried by the post-private transaction is the network ID of the second blockchain network.
As shown in fig. 2, after receiving the transaction tx-1, the first blockchain network votes for the cross-chain private transaction therein, thereby indicating whether the first blockchain network agrees to perform the cross-chain private transaction.
Optionally, in some specific embodiments, as shown in fig. 3 (fig. 3 is a schematic voting diagram proposed in an embodiment of the present invention), when receiving a transaction tx-1 submitted by a user, any node (for example, node a in fig. 3) in the first blockchain network first reads a transaction type identifier carried by the transaction tx-1. If the read transaction type identification is characterized: transaction tx-1 relates to a cross-chain behavior, transaction tx-1 is processed by the first handler of node a, which is dedicated to processing transactions that relate to a cross-chain behavior. If the read transaction type identification is characterized: transaction tx-1 is not involved in a cross-chain behavior, transaction tx-1 is processed by the second handler of node a, which is dedicated to processing transactions that are not involved in a cross-chain behavior, i.e. transactions within the blockchain network.
As shown in FIG. 3, in the event that it is determined that transaction tx-1 involves cross-chain behavior, node A sends transaction tx-1 to a plurality of designated nodes within the first blockchain network by running a first handler. After receiving the transaction tx-1, each appointed node votes for the transaction tx-1 and submits the votes to the node A, so that whether the appointed node agrees to execute the cross-link private transaction carried in the transaction tx-1 or not is represented.
When each designated node votes, the designated node may read service parameters of the cross-link private transaction carried by the transaction tx-1, such as an address of a transfer user, an address of an account receiving user, the number of transfers, the asset type, and the like. And then judging whether the read service parameters meet preset service requirements, if so, the designated node issues a ticket representing approval to be executed, and if not, the designated node issues a ticket representing disapproval to be executed.
Alternatively, each designated node may be at the time of voting, and the designated node may display the transaction tx-1 to an administrator of the designated node and receive the administrator's vote for the transaction tx-1, for example. The administrator's vote is used to characterize: whether the designated node agrees to perform the cross-chain private transaction carried in transaction tx-1.
It should be noted that the two voting methods are merely examples, and other methods different from the two voting methods may be adopted in the specific implementation of the present invention.
As shown in fig. 2, after the voting of the first blockchain network is finished, the first blockchain network sends the transaction tx-1 and the voting of the first blockchain network to the second blockchain network.
Specifically, as shown in fig. 2, the first blockchain network may fill the vote of the first blockchain network into a transaction tx-1, and then send the transaction tx-1 filled with the vote to the second blockchain network, so that the second blockchain network votes for the cross-chain private transaction.
Alternatively, in some embodiments, as shown in fig. 3, node a of the first blockchain network may submit the transaction tx-1 and a plurality of votes to the master node of the first blockchain network after receiving the votes submitted by each of the designated nodes. After receiving the transaction tx-1 and the multiple votes, the master node fills the multiple votes into the transaction tx-1, reads the network ID from the post-private transaction of the transaction tx-1, and sends the transaction tx-1 to a gateway corresponding to the network ID, that is, a second gateway shown in fig. 3, through the first gateway. The second gateway receives the transaction tx-1 and submits the transaction tx-1 to any node (e.g., node Y in fig. 3) in the second blockchain network. In this manner, the first blockchain network successfully sends the transaction tx-1 to the second blockchain network, such that the second blockchain network obtains the vote of the transaction tx-1 and the first blockchain network carried by the transaction tx-1.
As shown in FIG. 2, after receiving the transaction tx-1, the second blockchain network votes for the cross-chain private transaction therein, thereby indicating whether the second blockchain network agrees to perform the cross-chain private transaction.
Optionally, in some embodiments, as shown in fig. 3, after receiving the transaction tx-1 submitted by the first blockchain network through the gateway, the node Y in the first blockchain network first reads the transaction type identifier carried in the transaction tx-1. If the read transaction type identification is characterized: transaction tx-1 relates to a cross-chain behavior, transaction tx-1 is processed by the first handler of node Y, which is dedicated to processing transactions relating to cross-chain behavior. If the read transaction type identification is characterized: transaction tx-1 is not involved in a cross-chain behavior, transaction tx-1 is processed by the second handler of node Y, which is dedicated to processing transactions that are not involved in a cross-chain behavior, i.e. transactions within the blockchain network.
As shown in FIG. 3, in the event that it is determined that transaction tx-1 involves cross-chain behavior, node Y sends transaction tx-1 to a plurality of designated nodes within the second blockchain network by running a first handler. After receiving the transaction tx-1, each appointed node votes for the transaction tx-1 and submits the votes to the node Y, so that whether the appointed node agrees to execute the cross-link private transaction carried in the transaction tx-1 or not is indicated.
As shown in fig. 2, after the voting of the second blockchain network is finished, the second blockchain network sends the following data to the common blockchain network: the method comprises the steps of voting of a first blockchain network, voting of a second blockchain network, public transactions and cryptographs of cross-chain private transactions.
Specifically, the second blockchain network may populate the vote of the second blockchain network to transaction tx-1, delete the cross-chain private transaction carried by transaction tx-1 from transaction tx-1, generate a new transaction ID, and assign the new transaction ID to transaction tx-1 to form a new transaction (the new transaction is shown as tx-2 in fig. 2 and 3). Then the second blockchain network sends the transaction tx-2 to the public blockchain network, so that the public blockchain network can obtain the data from the transaction tx-2 after receiving the transaction tx-2: the data comprise votes of the first blockchain network, votes of the second blockchain network, public transactions, cryptographs of cross-chain private transactions and the like.
Referring to fig. 4, fig. 4 is a schematic diagram of a transaction structure according to an embodiment of the invention. As shown in FIG. 4, the new transaction (i.e., transaction tx-2) includes the following: the newly generated transaction ID (i.e., transaction ID of transaction tx-2), the original transaction ID (i.e., transaction ID of transaction tx-1, transaction ID of cross-link private transaction), the transaction type identification, the public transaction, the cryptogram of cross-link private transaction, the vote of the first blockchain network, and the vote of the second blockchain network. In fig. 4, the cross-chain private transaction marked off by the horizontal line indicates that the cross-chain private transaction is deleted in the transaction tx-2 sent to the host network by the second blockchain network.
Alternatively, in some embodiments, as shown in fig. 3, node Y of the second blockchain network may submit the transaction tx-1 and a plurality of votes to the master node of the second blockchain network after receiving the votes submitted by each of the designated nodes. After receiving the transaction tx-1 and the multiple votes, the master node fills the multiple votes into the transaction tx-1, deletes the cross-link private transaction carried by the tx-1 from the transaction tx-1, generates a new transaction ID, and gives the new transaction ID to the transaction tx-1 to form a new transaction, namely transaction tx-2. The master node then sends the transaction tx-2 to any node in the public blockchain network through the second gateway. In this manner, the second blockchain network successfully sends the transaction tx-2 to the public blockchain network, such that the public blockchain network obtains the votes of the first blockchain network, the votes of the second blockchain network, the public transactions, and the ciphertext of the cross-chain private transactions.
As shown in fig. 2, after receiving the transaction tx-2, the public blockchain network determines whether both the first blockchain network and the second blockchain network agree to execute the cross-link private transaction according to the vote of the first blockchain network and the vote of the second blockchain network carried in the transaction tx-2.
During specific implementation, the public blockchain network determines whether the first blockchain network agrees to execute the cross-chain private transaction according to the vote of each designated node of the first blockchain network and based on a preset judgment rule. For ease of understanding, the judgment rule is, for example: if the number of votes indicating approval to be executed in all votes of a blockchain network exceeds a preset proportion (for example, 60%) of the number of all designated nodes of the blockchain network, the blockchain network is determined to approve execution of the cross-chain private transaction. Assuming that the number of all designated nodes of the first blockchain network is 20, and the number of votes representing approval to be executed in all votes of the first blockchain network is 18 votes, it is determined that the first blockchain network approves execution of the cross-chain private transaction because the number of votes 18 exceeds 60% of 20.
In addition, the public blockchain network determines whether the second blockchain network agrees to perform a cross-chain private transaction in the same manner.
The above judgment rules are merely examples, and should not be construed as limiting the present invention. In the specific implementation of the present invention, other determination rules different from the above determination rules may be adopted.
Alternatively, in some embodiments, as shown in fig. 5 (fig. 5 is a schematic diagram of processing a transaction by a public blockchain network according to an embodiment of the present invention), any node in the public blockchain network (for example, node 3 in fig. 5) submits transaction tx-2 to a master node in the public blockchain network after receiving transaction tx-2 submitted by the second blockchain network.
As shown in fig. 5, the master node generates a transaction package for transaction tx-2 in response to transaction tx-2, which carries transaction tx-2 and the altitude of the transaction package. The master node distributes the generated transaction packet to each node in the public block chain network, and the process of the master node transmitting the transaction packet to a part of the nodes is only schematically shown in fig. 5 for simplifying the figure. And after each node receives the transaction packet, processing the transaction tx-2 carried in the transaction packet. When each node processes the transaction tx-2, specifically, as described above, it is determined whether the first blockchain network agrees to execute the cross-chain private transaction according to the votes of the designated nodes of the first blockchain network and based on the preset determination rule. And determining whether the second blockchain network agrees to execute the cross-chain private transaction or not according to the votes of all the designated nodes of the second blockchain network and based on a preset judgment rule.
Finally, each node judges whether the first blockchain network and the second blockchain network both agree to execute the cross-chain private transaction. Each node stores the respective judgment result and the transaction tx-2 into a respective block to be uplink, and sets the block height of the block to be uplink as the height of the transaction packet. And then, the plurality of nodes mutually identify the blocks to be uplink respectively, and when the common identification passes, each node adds the block to be uplink respectively to the tail of the block chain stored by each node.
As shown in fig. 2, when the public blockchain network determines that both the first blockchain network and the second blockchain network agree to perform the cross-chain private transaction, the public blockchain network returns a pre-execution prompt to the first blockchain network and the second blockchain network, so that the first blockchain network and the second blockchain network pre-execute the cross-chain private transaction.
Optionally, in some embodiments, as shown in fig. 5, after determining that the block to be uplink passes the consensus, any node (e.g., node 6) in the public block chain network sends the block to the first gateway. Any node in the public block chain network (e.g., node 3) sends the block to be uplink to the second gateway after determining that the block passes the consensus.
After the first gateway obtains the block of the public block chain network, each node of the first block chain network obtains the block from the first gateway. The judgment result recorded in the block is used as a pre-execution prompt, and if the judgment result is as follows: and the first blockchain network and the second blockchain network both agree to execute the cross-chain private transaction, and the first blockchain network performs pre-execution operation on the cross-chain private transaction. Otherwise, the first blockchain network does not perform pre-execution operations on the cross-chain private transaction.
Similarly, after the second gateway obtains the block of the public blockchain network, each node of the second blockchain network obtains the block from the second gateway. The judgment result recorded in the block is used as a pre-execution prompt, and if the judgment result is as follows: and the first blockchain network and the second blockchain network both agree to execute the cross-chain private transaction, and the second blockchain network performs pre-execution operation on the cross-chain private transaction. Otherwise, the second blockchain network does not perform pre-execution operations on the cross-chain private transaction.
When the first blockchain network pre-executes the cross-chain private transaction, the method can comprise the following substeps:
(1) when any node of the first blockchain network obtains the block of the public blockchain network from the first gateway, if the judgment result recorded by the block is as follows: and the first blockchain network and the second blockchain network both agree to execute the cross-chain private transaction, and the node reads the original transaction ID from the transaction tx-2 recorded in the block.
(2) And the node locally determines the cross-chain private transaction corresponding to the original transaction ID according to the read original transaction ID.
(3) The node executes the determined preposed private transaction of the cross-link private transaction in the memory of the node, and obtains the execution result of the preposed private transaction.
(4) The node records the execution result to a database unrelated to the blockchain, namely a non-ledger database. Since the node does not record the execution result of the pre-private transaction to the ledger database associated with the blockchain, the execution result of the pre-private transaction is not yet uplink-stored.
Correspondingly, when the second blockchain network executes the cross-chain private transaction in advance, the post-private transaction of the corresponding cross-chain private transaction can be executed in the memory of the node in the same way as the first blockchain network, and the execution result is recorded to a database unrelated to the blockchain, namely a non-account book database.
As shown in fig. 2, after the first blockchain network and the second blockchain network perform the cross-chain private transaction in advance, the result of the pre-execution is sent to the public blockchain network. In fig. 2, the pre-execution result of the first blockchain network is represented as a first pre-execution result, and the pre-execution result of the second blockchain network is represented as a second pre-execution result. The second block chain network firstly sends the second pre-execution result to the first block chain network, and then the first block chain network uniformly submits the first pre-execution result and the second pre-execution result to the public block chain network.
Alternatively, in some specific embodiments, as shown in fig. 6 (fig. 6 is a schematic diagram of submitting a pre-execution result according to an embodiment of the present invention), each node of the first blockchain network sends, as the pre-execution result, an execution result of the pre-private transaction stored in its non-ledger database to the master node of the first blockchain network. Similarly, each node of the second blockchain network sends the execution result of the post-private transaction stored in its non-ledger database to the master node of the second blockchain network as a pre-execution result. In addition, the main node of the second block chain network sends the collected pre-execution result to the main node of the first block chain network through the second gateway and the first gateway. To simplify the drawing, only a part of the nodes submitting pre-execution results to the master node is schematically shown in fig. 6.
As shown in fig. 6, after the master node of the first blockchain network obtains the pre-execution result of each node in the first blockchain network and the pre-execution result of each node in the second blockchain network, the master node of the first blockchain network extracts the transaction tx-2 from the block of the common blockchain network, and fills the pre-execution result of each node in the first blockchain network and the pre-execution result of each node in the second blockchain network into the transaction tx-2. In addition, the master node of the first blockchain network assigns the original transaction ID to tx-2 to form a new transaction (shown as tx-3 in fig. 2 and 6). The master node of the first blockchain network then sends the transaction tx-3 to any node in the public blockchain network through the first gateway. In this way, the first blockchain network successfully sends the transaction tx-3 to the common blockchain network, so that the common blockchain network obtains the pre-execution results of the first blockchain network and the second blockchain network, respectively.
In the present invention, the transaction ID of the transaction tx-3 is the original transaction ID, which is the transaction ID grasped by the user. And as described below, when the transaction tx-3 is processed by the public blockchain network, the public transaction carried in the transaction tx-3 is executed, and the execution result of the public transaction is recorded to the blockchain. Therefore, the user can inquire the execution result of the open transaction in the public block chain by using the original transaction ID grasped by the user, and the user experience is improved.
Referring to fig. 7, fig. 7 is a schematic diagram of a transaction structure according to another embodiment of the invention. As shown in FIG. 7, the new transaction (i.e., transaction tx-3) includes the following: the original transaction ID (i.e., the transaction ID of the cross-link private transaction, transaction tx-1, and transaction tx-3), the transaction type identification, the public transaction, the cryptogram of the cross-link private transaction, the vote of the first blockchain network, the vote of the second blockchain network, the pre-execution result of the first blockchain network, and the pre-execution result of the second blockchain network.
As shown in fig. 2, after obtaining the first pre-execution result and the second pre-execution result, the public blockchain network determines whether both the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction according to the first pre-execution result and the second pre-execution result.
In addition, as shown in fig. 2, when the public blockchain network determines that both the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction, the public blockchain network executes the public transaction, and returns an execution result of the public transaction to the first blockchain network and the second blockchain network, so that the first blockchain network records the first pre-execution result to the blockchain of the first blockchain network, and the second blockchain network records the second pre-execution result to the blockchain of the second blockchain network.
Or when the public blockchain network determines that the first blockchain network and the second blockchain network both successfully pre-execute the cross-chain private transaction, the public blockchain network executes the public transaction, and returns the execution result of the public transaction to the first blockchain network and the second blockchain network, so that the first blockchain network executes the cross-chain private transaction, records the execution result of the cross-chain private transaction to the blockchain of the first blockchain network, and causes the second blockchain network to execute the cross-chain private transaction, and records the execution result of the cross-chain private transaction to the blockchain of the second blockchain network.
During specific implementation, the public blockchain network determines whether the first blockchain network successfully executes the cross-chain private transaction according to the pre-execution result of each node in the first blockchain network on the prepositive private transaction and based on a preset judgment rule. For ease of understanding, the judgment rule is, for example: if the pre-execution result representing the successful pre-execution in all the pre-execution results of a blockchain network exceeds a preset proportion (for example, 60%) of the number of all the nodes of the blockchain network, it is determined that the blockchain network successfully pre-executes the cross-chain private transaction. Assuming that the number of all nodes of the first blockchain network is 50, and the number of pre-execution results representing successful pre-execution in all votes of the first blockchain network is 47, it is determined that the first blockchain network successfully pre-executes the cross-chain private transaction because 47 exceeds 60% of 50.
In addition, the public blockchain network determines whether the second blockchain network successfully pre-executes the cross-chain private transaction based on the same manner.
The above judgment rules are merely examples, and should not be construed as limiting the present invention. In the specific implementation of the present invention, other determination rules different from the above determination rules may be adopted.
Alternatively, in some embodiments, as shown in fig. 8 (fig. 8 is a schematic diagram of processing a transaction by a public blockchain network according to another embodiment of the present invention), any node in the public blockchain network (for example, node 6 in fig. 8) submits transaction tx-3 to a master node in the public blockchain network after receiving transaction tx-3 submitted by the first blockchain network.
As shown in fig. 8, the master node generates a transaction package for transaction tx-3 in response to transaction tx-3, the transaction package carrying transaction tx-3 and the altitude of the transaction package. The master node distributes the generated transaction packet to each node in the public block chain network, and the process of the master node transmitting the transaction packet to a part of the nodes is only schematically shown in fig. 8 for simplifying the drawing. And after each node receives the transaction packet, processing the transaction tx-3 carried in the transaction packet. Each node, when processing the transaction tx-3, may in particular comprise the following sub-steps:
(1) as described above, according to the pre-execution result of each node in the first blockchain network on the prepositive private transaction, and based on the preset judgment rule, determining whether the first blockchain network successfully pre-executes the cross-chain private transaction; and determining whether the second blockchain network successfully executes the cross-chain private transaction in advance according to the pre-execution result of each node in the second blockchain network on the post-private transaction and based on a preset judgment rule.
(2) If so: if the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction, executing the public transaction in the transaction tx-3 to obtain an execution result of the public transaction; then, the execution result of the public transaction and the transaction tx-3 are stored in a to-be-uplink block of the node, and the block height of the to-be-uplink block is set as the height of the transaction packet.
And then, the plurality of nodes mutually identify the blocks to be uplink respectively, and when the common identification passes, each node adds the block to be uplink respectively to the tail of the block chain stored by each node.
Optionally, in some embodiments, as shown in fig. 8, after determining that the block to be uplink passes the consensus, any node (e.g., node 6) in the public block chain network sends the block to the first gateway. Any node in the public block chain network (e.g., node 3) sends the block to be uplink to the second gateway after determining that the block passes the consensus.
After the first gateway obtains the block of the public block chain network, each node of the first block chain network obtains the block from the first gateway. For any node in the first blockchain network, if the execution result of the blockchain record represents that the public transaction is successfully executed, the node records the execution result of the previous private transaction saved by the node to the blockchain of the node. And if the execution result recorded by the block represents that the public transaction is not successfully executed, or if the execution result of the public transaction is not recorded by the block, the node does not record the execution result of the previous private transaction saved by the node to the block chain of the node.
Similarly, after the second gateway obtains the block of the public blockchain network, each node of the second blockchain network obtains the block from the second gateway. For any node in the second blockchain network, if the execution result of the blockchain record represents that the public transaction is successfully executed, the node records the execution result of the post-private transaction saved by the node to the blockchain of the node. And if the execution result recorded by the block represents that the public transaction is not successfully executed, or if the execution result of the public transaction is not recorded by the block, the node does not record the execution result of the post-private transaction saved by the node to the block chain of the node.
In the above, the present invention provides a process of performing private transactions across a blockchain network by using a preferred embodiment. In the above process, under the condition that both the first blockchain network and the second blockchain network successfully pre-execute the inter-chain private transaction, the public blockchain network executes the public transaction, so that the first blockchain network and the second blockchain network record respective pre-execution results to respective blockchains. Thus, the invention can avoid the following situations: one of the blockchain networks fails to execute the cross-chain private transaction and records the result of the execution failure in the blockchain, and the other blockchain network succeeds in executing the cross-chain private transaction and records the result of the execution success in the blockchain, so that the account book data of the two blockchain networks do not correspond to the account book data of the same cross-chain private transaction. It should be noted that the reasons for the failure of the execution of the cross-chain private transaction include, but are not limited to: insufficient balance, no transaction right, no time condition or place condition, etc.
Therefore, the cross-chain transaction can be accurately and reliably realized by implementing the invention. In addition, the public blockchain network performs public transactions, which is equivalent to witnessing inter-chain private transactions between the first blockchain network and the second blockchain network in the public blockchain. And as the public transaction is a non-private part in the cross-link private transaction, the public blockchain network cannot divulge a secret for the cross-link private transaction, thereby ensuring the privacy of the cross-link transaction.
In the following, the present invention provides a cross-chain private transaction method according to another embodiment. In the following embodiments, reference is made in part to the preferred embodiments described above.
Referring to fig. 9, fig. 9 is a flowchart of a cross-chain private transaction method, which is applied to a public blockchain network according to an embodiment of the present invention. As shown in fig. 9, the cross-chain private transaction method includes the following steps:
step S91: the method comprises the steps of obtaining a public transaction, a first pre-execution result of a first blockchain network on a cross-chain private transaction and a second pre-execution result of a second blockchain network on the cross-chain private transaction, wherein the cross-chain private transaction is a transaction between the first blockchain network and the second blockchain network, and the public transaction is a non-private part in the cross-chain private transaction.
Wherein, the first pre-execution result of the first blockchain network is: and after the first block chain network carries out pre-execution on the cross-chain private transaction, obtaining a pre-execution result. The second pre-execution result of the second blockchain network is: and after the second block chain network performs pre-execution on the cross-chain private transaction, obtaining a pre-execution result.
Referring to the foregoing preferred embodiment, specifically, each node in the first blockchain network executes, in its respective memory, an execution result obtained after a pre-private transaction of the cross-chain private transaction is executed, as a pre-execution result of the node. And the pre-execution result of each of the plurality of nodes in the first block chain network is used as the pre-execution result of the whole first block chain network. The pre-execution result of each node is like "true" or "false", and if the pre-execution result of one node is "true", it indicates that the node successfully pre-executes the pre-privacy transaction of the cross-chain privacy transaction.
Similarly, each node in the second blockchain network executes the execution result obtained after the post-private transaction of the cross-chain private transaction in the respective memory of the node, and the execution result is used as the pre-execution result of the node. And the pre-execution result of each of the plurality of nodes in the second block chain network is used as the pre-execution result of the whole second block chain network. The pre-execution result of each node is like "true" or "false", and if the pre-execution result of one node is "true", it indicates that the node successfully pre-executes the post-private transaction of the cross-chain private transaction.
Step S92: and judging whether the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction or not according to the first pre-execution result and the second pre-execution result.
Optionally, in some specific embodiments, referring to the foregoing preferred embodiment, the public blockchain network may determine, according to a result of pre-execution of the pre-private transaction by each node in the first blockchain network, and based on a preset determination rule, whether the first blockchain network successfully pre-executes the cross-chain private transaction. Similarly, the public blockchain network may determine whether the second blockchain network successfully pre-executes the cross-chain private transaction according to a pre-execution result of each node in the second blockchain network on the post-private transaction and based on a preset judgment rule.
Step S93: if so, executing the public transaction, and returning an execution result of the public transaction to the first block chain network and the second block chain network, so that the first block chain network records the first pre-execution result to a block chain of the first block chain network, and the second block chain network records the second pre-execution result to a block chain of the second block chain network.
Optionally, referring to the foregoing preferred embodiment, in some embodiments, after the public blockchain network executes the public transaction and obtains the execution result of the public transaction, the execution result of the public transaction is recorded in a block of the public blockchain network. And then returning the block to the first block chain network and the second block chain network, so that after the first block chain network obtains the block and reads the execution result recorded in the block, the first pre-execution result is recorded to the block chain of the first block chain network, so that after the second block chain network obtains the block and reads the execution result recorded in the block, the second pre-execution result is recorded to the block chain of the second block chain network.
Optionally, in other embodiments, the public blockchain network performs the public transaction, and directly sends the execution result to the first blockchain network and the second blockchain network after obtaining the execution result of the public transaction.
As described above, with the cross-link private transaction method provided by the present invention, the public blockchain network executes the public transaction only when both the first blockchain network and the second blockchain network successfully pre-execute the cross-link private transaction, so that the first blockchain network and the second blockchain network record the pre-execution results to their respective blockchains. Thus, the invention can avoid the following situations: one of the blockchain networks fails to execute the cross-chain private transaction and records the result of the execution failure in the blockchain, and the other blockchain network succeeds in executing the cross-chain private transaction and records the result of the execution success in the blockchain, so that the account book data of the two blockchain networks do not correspond to the account book data of the same cross-chain private transaction. Therefore, the cross-chain transaction can be accurately and reliably realized by implementing the invention.
In addition, the public blockchain network performs public transactions, which is equivalent to witnessing inter-chain private transactions between the first blockchain network and the second blockchain network in the public blockchain. And as the public transaction is a non-private part in the cross-link private transaction, the public blockchain network cannot divulge a secret for the cross-link private transaction, thereby ensuring the privacy of the cross-link transaction.
Optionally, in some embodiments, the cross-chain private transaction is a transaction between a first account of a first financial institution and a second account of a second financial institution; the public transaction is a transaction between the first financial institution and the second financial institution. Wherein the first financial institution interfaces with the first blockchain network and the second financial institution interfaces with the second blockchain network.
For ease of understanding, reference is made to the foregoing preferred embodiment, for example, the cross-chain private transaction is: account a of bank a transfers 500 dollars to account B of bank B. The corresponding public transaction is: bank a transfers 500 dollars to bank B. Bank a interfaces with the first blockchain network and bank B interfaces with the second blockchain network.
Optionally, in some embodiments, before obtaining the public transaction, the first pre-execution result and the second pre-execution result, that is, before step S91, the public blockchain network further performs the following steps:
(1) obtaining a first vote of the first blockchain network and a second vote of the second blockchain network, the first vote being used for representing whether the first blockchain network agrees to execute the cross-chain private transaction, and the second vote being used for representing whether the second blockchain network agrees to execute the cross-chain private transaction.
(2) And judging whether the first blockchain network and the second blockchain network both agree to execute the cross-chain private transaction or not according to the first vote and the second vote.
(3) If so, returning a pre-execution prompt to the first blockchain network and the second blockchain network, so that the first blockchain network and the second blockchain network pre-execute the cross-chain private transaction.
Wherein, the first vote of the first blockchain network refers to: and the first blockchain network votes for the cross-chain private transaction to obtain voting data. The second vote of the second blockchain network refers to: and the second blockchain network votes for the cross-chain private transaction to obtain voting data.
Referring to the foregoing preferred embodiment, specifically, after the designated node in the first blockchain network votes for the cross-chain private transaction, voting data of the designated node is obtained. And the voting data of each of a plurality of designated nodes in the first block chain network is used as the voting data of the whole first block chain network. The voting data of each designated node is in the form of "true" or "false", and if the voting data of one designated node is "true", it indicates that the designated node agrees to perform the cross-chain private transaction.
Similarly, after the designated node in the second blockchain network votes for the cross-chain private transaction, voting data of the designated node is obtained. And the voting data of each of the plurality of designated nodes in the second block chain network is used as the voting data of the whole second block chain network. The voting data of each designated node is in the form of "true" or "false", and if the voting data of one designated node is "true", it indicates that the designated node agrees to perform the cross-chain private transaction.
Specifically, referring to the preferred embodiment, when the public blockchain network determines whether both the first blockchain network and the second blockchain network agree to execute the cross-chain private transaction according to the first vote and the second vote, the public blockchain network determines whether the first blockchain network agrees to execute the cross-chain private transaction according to the votes of the designated nodes of the first blockchain network and based on a preset determination rule. Similarly, the public blockchain network determines whether the second blockchain network agrees to execute the cross-chain private transaction according to the votes of the designated nodes of the second blockchain network and based on a preset judgment rule.
In order to return the pre-execution prompt to the first blockchain network and the second blockchain network, referring to the preferred embodiment, the public blockchain network may use the determination result as the pre-execution prompt, record the determination result in the block of the public blockchain network, and return the block to the first blockchain network and the second blockchain network, so that the first blockchain network and the second blockchain network can read the pre-execution prompt from the block.
Or, in order to return the pre-execution prompt to the first blockchain network and the second blockchain network, the public blockchain network may also directly send the pre-execution prompt information to the first blockchain network and the second blockchain network.
Optionally, in some embodiments, the public blockchain network obtains the first vote and the second vote concurrently with obtaining the transaction ID for the cross-chain private transaction.
Illustratively, with reference to the foregoing preferred embodiment, the common blockchain network obtains a transaction tx-2 submitted by the second blockchain network, the transaction tx-2 including at least: the transaction ID for transaction tx-1 (i.e., the transaction ID for a cross-chain private transaction), the public transaction, the vote of the first blockchain network, and the vote of the second blockchain network.
Optionally, in some specific embodiments, when the public blockchain network returns the pre-execution prompt to the first blockchain network and the second blockchain network, specifically, the pre-execution prompt is returned to the first blockchain network and the second blockchain network, where the pre-execution prompt carries a transaction ID of the cross-chain private transaction, so that the first blockchain network obtains the corresponding cross-chain private transaction from the local according to the transaction ID carried by the pre-execution prompt and pre-executes the cross-chain private transaction, and the second blockchain network obtains the corresponding cross-chain private transaction from the local according to the transaction ID carried by the pre-execution prompt and pre-executes the cross-chain private transaction.
For example, referring to the foregoing preferred embodiment, the public block chain network may use the determination result as a pre-execution hint, and record the determination result into a block of the public block chain network. In addition, the public blockchain network also records transaction tx-2 into the block. Since transaction tx-2 includes the transaction ID of the cross-chain private transaction, both the pre-execution hint and the transaction ID of the cross-chain private transaction are included in this tile. Then, the public blockchain network returns the block to the first blockchain network and the second blockchain network, so that the first blockchain network and the second blockchain network can read the transaction ID of the pre-execution prompt and the cross-chain private transaction from the block.
Optionally, in some embodiments, the public blockchain network may obtain the transaction IDs of the first vote, the second vote, and the cross-chain private transaction by:
obtaining a first public link transaction submitted by a first blockchain network or a second blockchain network, wherein the first public link transaction carries: the first vote, the second vote, and a transaction ID for the cross-chain private transaction. Illustratively, with reference to the preferred embodiment described above, the second blockchain network submits to transaction tx-2 of the common blockchain network, which is the first public chain transaction described above.
Optionally, in some embodiments, when the public blockchain network determines whether both the first blockchain network and the second blockchain network agree to perform the cross-chain private transaction according to the first vote and the second vote, specifically, the public blockchain network determines whether both the first blockchain network and the second blockchain network agree to perform the cross-chain private transaction according to the first vote and the second vote carried in the first public chain transaction in response to the first public chain transaction, and writes the determination result and the transaction ID carried in the first public chain transaction into the first block of the public blockchain network.
Optionally, in some specific embodiments, when the public blockchain network returns the pre-execution prompt to the first blockchain network and the second blockchain network, specifically, the first blockchain network and the second blockchain network return the first blockchain network and the second blockchain network, where a judgment result recorded in the first blockchain serves as the pre-execution prompt.
Optionally, in some embodiments, the public blockchain network may obtain the public transaction, the first pre-execution result, and the second pre-execution result by:
obtaining a second public link transaction submitted by the first blockchain network or the second blockchain network, wherein the second public link transaction carries: the transaction, the first pre-execution result, and the second pre-execution result are disclosed. Illustratively, with reference to the preferred embodiment described above, the first blockchain network submits to the transaction tx-3 of the common blockchain network, which is the second public chain transaction described above.
Optionally, in some specific embodiments, when the public blockchain network determines whether both the first blockchain network and the second blockchain network successfully perform the cross-chain private transaction in advance according to the first pre-execution result and the second pre-execution result, specifically, when the public blockchain network responds to the second public chain transaction, it determines whether both the first blockchain network and the second blockchain network successfully perform the cross-chain private transaction in advance according to the first pre-execution result and the second pre-execution result carried in the second public chain transaction.
Optionally, in some embodiments, the public blockchain network returns the execution result of the public transaction to the first blockchain network and the second blockchain network, and in particular, the public blockchain network executes the public transaction recorded in the second public chain transaction, writes the execution result of the public transaction to the second block of the public blockchain network, and returns the second block to the first blockchain network and the second blockchain network.
Referring to fig. 10, fig. 10 is a flowchart of a cross-chain private transaction method according to another embodiment of the present invention, where the cross-chain private transaction method is applied to a second blockchain network. As shown in fig. 10, the cross-chain private transaction method includes the following steps:
step S101: pre-executing the cross-chain private transaction to obtain a second pre-execution result, and sending the second pre-execution result to a public block chain network, wherein the cross-chain private transaction is a transaction between the first block chain network and the second block chain network.
Optionally, in some specific embodiments, referring to the foregoing preferred embodiment, each node in the second blockchain network performs, in its respective memory, an execution result obtained after performing a post-private transaction of the cross-chain private transaction, as a pre-execution result of the node. And the pre-execution result of each of the plurality of nodes in the second block chain network is used as the pre-execution result of the whole second block chain network. The pre-execution result of each node is like "true" or "false", and if the pre-execution result of one node is "true", it indicates that the node successfully pre-executes the post-private transaction of the cross-chain private transaction.
Step S102: and under the condition of obtaining an execution result returned by the public blockchain network, recording the second pre-execution result to a blockchain of the second blockchain network, or under the condition of obtaining the execution result returned by the public blockchain network, executing the cross-chain private transaction, and recording the execution result of the cross-chain private transaction to the blockchain of the second blockchain network.
Wherein the execution result is obtained by the public block chain network by: when the public blockchain network determines that the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction according to a first pre-execution result of the first blockchain network and a second pre-execution result of the second blockchain network, the public blockchain network executes a public transaction to obtain an execution result, wherein the public transaction is a non-private part in the cross-chain private transaction.
Optionally, in some embodiments, the cross-chain private transaction is a transaction between a first account of a first financial institution and a second account of a second financial institution; the public transaction is a transaction between the first financial institution and the second financial institution. Wherein the first financial institution interfaces with the first blockchain network and the second financial institution interfaces with the second blockchain network.
For ease of understanding, reference is made to the foregoing preferred embodiment, for example, the cross-chain private transaction is: account a of bank a transfers 500 dollars to account B of bank B. The corresponding public transaction is: bank a transfers 500 dollars to bank B. Bank a interfaces with the first blockchain network and bank B interfaces with the second blockchain network.
Optionally, in some embodiments, as described above, before the first blockchain network performs the cross-chain private transaction in advance, that is, before step S101, the public blockchain network further performs the following steps:
(1) receiving a first private chain transaction sent by the first blockchain network, wherein the first private chain transaction carries: the cross-chain private transaction, the public transaction, and a first vote of the first blockchain network, wherein the first vote is used to characterize whether the first blockchain network agrees to perform the cross-chain private transaction.
(2) Voting the cross-chain private transaction in response to the first private chain transaction to obtain a second vote, the second vote characterizing whether the second blockchain network agrees to perform the cross-chain private transaction.
(3) And sending the public link transaction, the first vote and the second vote to the public block link network, so that the public block link network judges whether the first block link network and the second block link network both agree to execute the cross-link private transaction according to the first vote and the second vote, and if so, returning a pre-execution prompt to the first block link network and the second block link network.
In reference to the above preferred embodiment, the first blockchain network sends the transaction tx-1 to the second blockchain network, i.e. the first private chain transaction.
Wherein, in order to send the public link transaction, the first vote and the second vote to the public block link network, the second block link network may encapsulate the public link transaction, the first vote and the second vote into the transaction tx-2 and submit the transaction tx-2 to the public block link network, referring to the foregoing preferred embodiment.
Optionally, in some embodiments, the first blockchain network performs the cross-chain private transaction in advance when performing the cross-chain private transaction, specifically, the first blockchain network performs the cross-chain private transaction in advance in response to a pre-execution prompt returned by the public blockchain network.
Optionally, in some specific embodiments, the first blockchain network sends the public chain transaction, the first vote, and the second vote to the public blockchain network, and also sends a transaction ID of the cross-chain private transaction to the public blockchain network, so that the public blockchain network determines, according to the first vote and the second vote, whether both the first blockchain network and the second blockchain network agree to execute the cross-chain private transaction, and if so, returns a pre-execution prompt to the first blockchain network and the second blockchain network, where the pre-execution prompt carries the transaction ID of the cross-chain private transaction.
Illustratively, with reference to the foregoing preferred embodiment, the second blockchain network submits a transaction tx-2 to the common blockchain network, the transaction tx-2 including at least: the transaction ID for transaction tx-1 (i.e., the transaction ID for a cross-chain private transaction), the public transaction, the vote for the first blockchain network (i.e., the first vote), and the vote for the second blockchain network (i.e., the second vote).
Optionally, in some embodiments, the second blockchain network, when pre-executing the cross-chain private transaction in response to a pre-execution prompt returned by the public blockchain network, specifically: and the second blockchain network responds to the pre-execution prompt returned by the public blockchain network, acquires the corresponding cross-chain private transaction from the local according to the transaction ID carried by the pre-execution prompt, and pre-executes the cross-chain private transaction.
Based on the same inventive concept, the embodiment of the present invention further provides a blockchain network, and when the blockchain network is operated, the method steps in any of the above method embodiments are implemented.
Based on the same inventive concept, the embodiment of the invention also provides electronic equipment, and the electronic equipment belongs to the block chain network. As shown in fig. 11, the system comprises a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102 and the memory 1103 are communicated with each other through the communication bus 1104.
The memory 1103 is used for storing computer programs;
the processor 1101 is configured to cooperate with other electronic devices in the blockchain network when executing the program stored in the memory 1103, so as to implement the following steps:
obtaining a public transaction, a first pre-execution result of a first blockchain network on a cross-chain private transaction and a second pre-execution result of a second blockchain network on the cross-chain private transaction, wherein the cross-chain private transaction is a transaction between the first blockchain network and the second blockchain network, and the public transaction is a non-private part in the cross-chain private transaction;
judging whether the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction or not according to the first pre-execution result and the second pre-execution result;
if so, executing the public transaction, and returning an execution result of the public transaction to the first blockchain network and the second blockchain network, so that the first blockchain network records the first pre-execution result to a blockchain of the first blockchain network, and the second blockchain network records the second pre-execution result to a blockchain of the second blockchain network, or so that the first blockchain network executes the cross-chain private transaction, and records an execution result of the cross-chain private transaction to a blockchain of the first blockchain network, and so that the second blockchain network executes the cross-chain private transaction, and records an execution result of the cross-chain private transaction to a blockchain of the second blockchain network.
Alternatively, the processor 1101 is configured to implement the following steps when executing the program stored in the memory 1103:
pre-executing a cross-chain private transaction to obtain a second pre-execution result, and sending the second pre-execution result to a public block chain network, wherein the cross-chain private transaction is a transaction between a first block chain network and a second block chain network;
under the condition of obtaining an execution result returned by the public blockchain network, recording the second pre-execution result to a blockchain of the second blockchain network, or under the condition of obtaining the execution result returned by the public blockchain network, executing the cross-chain private transaction, and recording the execution result of the cross-chain private transaction to the blockchain of the second blockchain network;
wherein the execution result is obtained by the public block chain network by: when the public blockchain network determines that the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction according to a first pre-execution result of the first blockchain network and a second pre-execution result of the second blockchain network, the public blockchain network executes a public transaction to obtain an execution result, wherein the public transaction is a non-private part in the cross-chain private transaction.
Alternatively, the processor 1101 is configured to implement the steps of the cross-chain private transaction method provided by the other method embodiments of the present invention above when executing the program stored in the memory 1103.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only a part of the embodiments of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A cross-chain private transaction method is applied to a public block chain network, and comprises the following steps:
obtaining a public transaction, a first pre-execution result of a first blockchain network on a cross-chain private transaction and a second pre-execution result of a second blockchain network on the cross-chain private transaction, wherein the cross-chain private transaction is a transaction between the first blockchain network and the second blockchain network, and the public transaction is a non-private part in the cross-chain private transaction;
judging whether the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction or not according to the first pre-execution result and the second pre-execution result;
if so, executing the public transaction, and returning an execution result of the public transaction to the first blockchain network and the second blockchain network, so that the first blockchain network records the first pre-execution result to a blockchain of the first blockchain network, and the second blockchain network records the second pre-execution result to a blockchain of the second blockchain network, or so that the first blockchain network executes the cross-chain private transaction, and records an execution result of the cross-chain private transaction to a blockchain of the first blockchain network, and so that the second blockchain network executes the cross-chain private transaction, and records an execution result of the cross-chain private transaction to a blockchain of the second blockchain network.
2. The method of claim 1, wherein the cross-chain private transaction is a transaction between a first account of a first financial institution and a second account of a second financial institution; the open transaction is a transaction between the first financial institution and the second financial institution;
wherein the first financial institution interfaces with the first blockchain network and the second financial institution interfaces with the second blockchain network.
3. The method of claim 1, wherein prior to obtaining the open transaction, the first pre-execution result, and the second pre-execution result, the method further comprises:
obtaining a first vote of the first blockchain network and a second vote of the second blockchain network, the first vote being used for representing whether the first blockchain network agrees to execute the cross-chain private transaction, the second vote being used for representing whether the second blockchain network agrees to execute the cross-chain private transaction;
judging whether the first blockchain network and the second blockchain network both agree to execute the cross-chain private transaction or not according to the first vote and the second vote;
if so, returning a pre-execution prompt to the first blockchain network and the second blockchain network, so that the first blockchain network and the second blockchain network pre-execute the cross-chain private transaction.
4. The method of claim 3, wherein obtaining the first vote of the first blockchain network and the second vote of the second blockchain network comprises:
obtaining a first vote of the first blockchain network, a second vote of the second blockchain network, and a transaction ID of the cross-chain private transaction;
the returning a pre-execution prompt to the first blockchain network and the second blockchain network so that the first blockchain network and the second blockchain network pre-execute the cross-chain private transaction comprises:
and returning a pre-execution prompt to the first blockchain network and the second blockchain network, wherein the pre-execution prompt carries the transaction ID, so that the first blockchain network locally acquires a corresponding cross-chain private transaction according to the transaction ID carried by the pre-execution prompt and pre-executes the cross-chain private transaction, and the second blockchain network locally acquires the corresponding cross-chain private transaction according to the transaction ID carried by the pre-execution prompt and pre-executes the cross-chain private transaction.
5. The method of claim 4, wherein obtaining the first vote of the first blockchain network, the second vote of the second blockchain network, and the transaction ID for the cross-chain private transaction comprises:
obtaining a first public link transaction submitted by the first blockchain network or the second blockchain network, wherein the first public link transaction carries: a transaction ID of the first vote, the second vote, and the cross-chain private transaction;
the determining whether the first blockchain network and the second blockchain network both agree to perform the cross-chain private transaction according to the first vote and the second vote includes:
responding to the first public link transaction, judging whether the first block chain network and the second block chain network both agree to execute the cross-chain private transaction according to the first vote and the second vote carried by the first public link transaction, and writing a judgment result and a transaction ID carried by the first public link transaction into a first block of the public block chain network;
the returning of a pre-execution prompt to the first blockchain network and the second blockchain network, where the pre-execution prompt carries the transaction ID, includes:
and returning the first block to the first block chain network and the second block chain network, wherein the judgment result recorded in the first block is used as the pre-execution prompt.
6. The method of any of claims 1 to 5, wherein obtaining the public transaction, the first pre-execution result of the first blockchain network, and the second pre-execution result of the second blockchain network comprises:
obtaining a second public link transaction submitted by the first blockchain network or the second blockchain network, wherein the second public link transaction carries: the open transaction, the first pre-execution result, and the second pre-execution result;
the determining whether the first blockchain network and the second blockchain network both successfully pre-execute the cross-chain private transaction according to the first pre-execution result and the second pre-execution result includes:
responding to the second public link transaction, and judging whether the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction or not according to the first pre-execution result and the second pre-execution result carried by the second public link transaction;
the executing the public transaction and returning the execution result of the public transaction to the first blockchain network and the second blockchain network includes:
and executing the public transaction recorded in the second public link transaction, writing an execution result into a second block of the public block link network, and returning the second block to the first block link network and the second block link network.
7. A cross-chain private transaction method is applied to a second blockchain network, and comprises the following steps:
pre-executing a cross-chain private transaction to obtain a second pre-execution result, and sending the second pre-execution result to a public block chain network, wherein the cross-chain private transaction is a transaction between a first block chain network and a second block chain network;
under the condition of obtaining an execution result returned by the public blockchain network, recording the second pre-execution result to a blockchain of the second blockchain network, or under the condition of obtaining the execution result returned by the public blockchain network, executing the cross-chain private transaction, and recording the execution result of the cross-chain private transaction to the blockchain of the second blockchain network;
wherein the execution result is obtained by the public block chain network by: when the public blockchain network determines that the first blockchain network and the second blockchain network successfully pre-execute the cross-chain private transaction according to a first pre-execution result of the first blockchain network and a second pre-execution result of the second blockchain network, the public blockchain network executes a public transaction to obtain an execution result, wherein the public transaction is a non-private part in the cross-chain private transaction.
8. The method of claim 7, wherein the cross-chain private transaction is a transaction between a first account of a first financial institution and a second account of a second financial institution; the open transaction is a transaction between the first financial institution and the second financial institution;
wherein the first financial institution interfaces with the first blockchain network and the second financial institution interfaces with the second blockchain network.
9. The method of claim 7, wherein prior to pre-executing the cross-chain private transaction, the method further comprises:
receiving a first private chain transaction sent by the first blockchain network, wherein the first private chain transaction carries: the cross-chain private transaction, the public transaction, and a first vote of the first blockchain network, wherein the first vote is used to characterize whether the first blockchain network agrees to perform the cross-chain private transaction;
voting the cross-chain private transaction in response to the first private chain transaction to obtain a second vote, the second vote characterizing whether the second blockchain network agrees to perform the cross-chain private transaction;
sending the public link transaction, the first vote and the second vote to the public block link network, so that the public block link network judges whether the first block link network and the second block link network both agree to execute the cross-link private transaction according to the first vote and the second vote, and if so, returning a pre-execution prompt to the first block link network and the second block link network;
the pre-executed cross-chain private transaction comprises:
and responding to a pre-execution prompt returned by the public block chain network, and pre-executing the cross-chain private transaction.
10. The method of claim 9, wherein sending the public link transaction, the first vote, and the second vote to the public blockchain network such that the public blockchain network determines whether both the first blockchain network and the second blockchain network agree to perform the cross-link private transaction based on the first vote and the second vote, and if so, returning a pre-execution prompt to the first blockchain network and the second blockchain network comprises:
sending the public link transaction, the first vote, the second vote and a transaction ID of the cross-link private transaction to the public block link network, so that the public block link network judges whether the first block link network and the second block link network both agree to execute the cross-link private transaction according to the first vote and the second vote, and if so, returning a pre-execution prompt to the first block link network and the second block link network, wherein the pre-execution prompt carries the transaction ID;
the pre-executing the cross-chain private transaction in response to a pre-execution prompt returned by the public blockchain network comprises:
responding to a pre-execution prompt returned by the public block chain network, acquiring corresponding cross-chain private transaction from local according to a transaction ID carried by the pre-execution prompt, and pre-executing the cross-chain private transaction.
11. A blockchain network, wherein the blockchain network implements the method of any one of claims 1 to 6 or implements the method of any one of claims 7 to 10 when run.
12. An electronic device belonging to the blockchain network of claim 11, the electronic device being configured to cooperate with other electronic devices in the blockchain network to implement the method of any one of claims 1 to 6 or to implement the method of any one of claims 7 to 10.
CN202011175943.XA 2020-10-28 2020-10-28 Cross-chain private transaction method, blockchain network and electronic equipment Active CN112258183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011175943.XA CN112258183B (en) 2020-10-28 2020-10-28 Cross-chain private transaction method, blockchain network and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011175943.XA CN112258183B (en) 2020-10-28 2020-10-28 Cross-chain private transaction method, blockchain network and electronic equipment

Publications (2)

Publication Number Publication Date
CN112258183A true CN112258183A (en) 2021-01-22
CN112258183B CN112258183B (en) 2023-08-01

Family

ID=74262206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011175943.XA Active CN112258183B (en) 2020-10-28 2020-10-28 Cross-chain private transaction method, blockchain network and electronic equipment

Country Status (1)

Country Link
CN (1) CN112258183B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862216A (en) * 2017-10-13 2018-03-30 布比(北京)网络技术有限公司 Method for secret protection, device and the storage medium merchandised for anonymity across chain
CN108876370A (en) * 2018-06-12 2018-11-23 北京航空航天大学 The architectural framework of the shared open data of transregional piece of chain under a kind of isomery multichain framework
US20180373776A1 (en) * 2017-04-12 2018-12-27 Vijay K. Madisetti Method and System for Tuning Blockchain Scalability for Fast and Low-Cost Payment and Transaction Processing
US20190340267A1 (en) * 2018-05-01 2019-11-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180373776A1 (en) * 2017-04-12 2018-12-27 Vijay K. Madisetti Method and System for Tuning Blockchain Scalability for Fast and Low-Cost Payment and Transaction Processing
CN107862216A (en) * 2017-10-13 2018-03-30 布比(北京)网络技术有限公司 Method for secret protection, device and the storage medium merchandised for anonymity across chain
US20190340267A1 (en) * 2018-05-01 2019-11-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN108876370A (en) * 2018-06-12 2018-11-23 北京航空航天大学 The architectural framework of the shared open data of transregional piece of chain under a kind of isomery multichain framework
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蔡晓晴: "区块链原理及其核心技术", 《计算机学报》, vol. 44, no. 01, pages 84 - 131 *

Also Published As

Publication number Publication date
CN112258183B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
WO2017028630A1 (en) Verification method and server
CN109447648A (en) The method of recorded data zone block, accounting nodes and medium in block chain network
CN112613877B (en) Intelligent contract triggering method and device applied to block chain network and related equipment
CN104021472A (en) Identity verification method and system
CN110602056B (en) Service parameter transmission method and device
CN113255014B (en) Data processing method based on block chain and related equipment
CN113179282A (en) Method and device for merging account numbers and server
CN112965986B (en) Service consistency processing method, device, equipment and storage medium
CN111209542B (en) Authority management method and device, storage medium and electronic equipment
US20230267430A1 (en) Data processing method and device, and computer-readable storage medium
KR101737559B1 (en) Apparatus and method for generating identification information for replacing account number, and computer program for the same
CN112258183B (en) Cross-chain private transaction method, blockchain network and electronic equipment
CN116739596A (en) Blockchain-based transaction supervision method, device, equipment, medium and product
KR102107454B1 (en) System for multiplication of financial payment networks, method for financial services using the same and computer program for the same
CN114596165A (en) Block chain system and method for registering, selling and managing financial products
TWM612301U (en) System for developing mobile banking application
JP2022032116A (en) Data migration method, data migration system, and node
TWM587315U (en) Electronic payment service system and credit card service system
CN111598635B (en) Bill information processing method and device, equipment and readable storage medium
CN113313584B (en) Service processing method and processing device
CN112600874B (en) Node joining method and device, electronic equipment and readable storage medium
CN111641523B (en) User data management method, device, system and storage medium
CN111754324B (en) Cloud ERP bank-enterprise docking processing method, system and processing ends
CN117061089B (en) Voting management method, device, equipment and storage medium
CN110956551B (en) Revenue distribution method and related equipment

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