WO2021023200A1 - 跨链交易方法、装置、多区块链系统及计算设备 - Google Patents

跨链交易方法、装置、多区块链系统及计算设备 Download PDF

Info

Publication number
WO2021023200A1
WO2021023200A1 PCT/CN2020/106981 CN2020106981W WO2021023200A1 WO 2021023200 A1 WO2021023200 A1 WO 2021023200A1 CN 2020106981 W CN2020106981 W CN 2020106981W WO 2021023200 A1 WO2021023200 A1 WO 2021023200A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
blockchain
node
block
chain
Prior art date
Application number
PCT/CN2020/106981
Other languages
English (en)
French (fr)
Inventor
刘旸
王晓晴
邓玉明
吴汉卿
曹建农
杨燕妮
江山
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2021023200A1 publication Critical patent/WO2021023200A1/zh

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1059Inter-group management mechanisms, e.g. splitting, merging or interconnection of groups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Definitions

  • the present invention relates to the technical field of block chains, in particular to a cross-chain transaction method, device, multi-block chain system and computing equipment.
  • Blockchain is a data structure that stores a list of transactions, and can be regarded as a distributed electronic ledger that records transactions between source identifier(s) and destination identifier(s) ( ledger). Due to the characteristics of decentralization, openness and transparency, all nodes can participate in accounting, the data stored in the blockchain can not be tampered with, and the data can be synchronized quickly between nodes, the blockchain technology is used to build The decentralized system, and includes various execution programs in the distributed database of the blockchain for automatic execution, and has been widely used in many fields.
  • embodiments of the present invention provide a cross-chain transaction method, device, multi-blockchain system, and computing equipment, in an effort to solve or at least alleviate the above problems.
  • a cross-chain transaction method including: a first blockchain node receives a cross-chain transaction transaction, the cross-chain transaction transaction includes a first transaction transaction related to the first blockchain and For the second transaction transaction related to the second block chain, the first block chain node stores the first block chain; the cross-chain transaction transaction is sent to the notary node so that the notary node can verify the cross-chain transaction transaction.
  • the second transaction transaction is sent to the second blockchain node, and the second blockchain node stores the second blockchain; the first transaction transaction is sent to the notary node so that the notary node can perform the first transaction transaction Verify, and return to the first transaction after the verification is passed; and add the first transaction to the first blockchain.
  • the step of sending the first transaction transaction to the notary node includes: generating a block including the first transaction transaction, and sending the block to the notary node, so that the notary node can check The data contained in the block is verified, and the block is returned after the verification is passed.
  • the step of adding the first transaction transaction to the first blockchain includes: broadcasting the block including the first transaction transaction returned by the notary node to other first regions Block chain nodes for consensus; in the case where the first block chain node reaches a consensus on the block, the block is added to the first block chain.
  • the step of sending the cross-chain transaction transaction to the notary node includes: generating a block including the cross-chain transaction transaction, and sending the block to the notary node, so that the notary node can pair the zone The data contained in the block is verified, and the second transaction is sent to the second blockchain node after the verification is passed.
  • the step of sending the first transaction transaction to the notary node includes: receiving the first transaction transaction again; and sending the first transaction transaction received again to the notary node.
  • a cross-chain transaction method including: a second blockchain node receives a second transaction transaction related to the second blockchain in the cross-chain transaction transaction, and the cross-chain transaction transaction It includes the first transaction transaction and the second transaction transaction related to the first blockchain, and is sent by the first blockchain node to the notary node, so that the notary node sends the second transaction to the second blockchain node.
  • One block chain node stores the first block chain
  • the second block chain node stores the second block chain
  • the second transaction transaction is sent to the notary node so that the notary node can verify the second transaction transaction, and After the verification is passed, the second transaction transaction is returned; the second transaction transaction is added to the second blockchain.
  • a cross-chain transaction method including: a notary node receives a cross-chain transaction transaction sent by a first blockchain node, and the cross-chain transaction transaction includes information related to the first blockchain The first transaction transaction and the second transaction transaction related to the second block chain, the first block chain node stores the first block chain; verify the cross-chain transaction transaction, and after the verification is passed, the second transaction transaction Send to the second block chain node, the second block chain node stores the second block chain; receive the first transaction transaction sent by the first block chain node; verify the first transaction transaction, and after the verification is passed Return the first transaction transaction to the first blockchain node so that the first blockchain node adds the first transaction transaction to the first blockchain; receives the second transaction transaction sent by the second blockchain node; and The second transaction transaction is verified, and the second transaction transaction is returned to the second blockchain node after the verification is passed, so that the second blockchain node can add the second transaction transaction to the second blockchain.
  • a cross-chain transaction device including: a storage module, adapted to store a first blockchain; a communication module, adapted to receive cross-chain transaction transactions, and cross-chain transaction transactions include The first transaction transaction related to the first blockchain and the second transaction transaction related to the second blockchain; it is also suitable for sending cross-chain transaction transactions to the notary node so that the notary node can verify the cross-chain transaction transaction, and After the verification is passed, the second transaction transaction is sent to the second blockchain node, and the second blockchain node stores the second blockchain; it is also suitable for sending the first transaction transaction to the notary node so that the notary node can A transaction transaction is verified, and the first transaction transaction is returned after the verification is passed; and the processing module is adapted to add the first transaction transaction to the first blockchain.
  • a cross-chain transaction device including: a storage module suitable for storing a second blockchain; a communication module suitable for receiving a cross-chain transaction transaction and a second blockchain Related second transaction transactions, cross-chain transaction transactions include the first transaction transaction and the second transaction transaction related to the first blockchain, and are sent by the first blockchain node to the notary node, and the first blockchain node stores There is a first blockchain; it is also suitable for sending the second transaction to the notary node so that the notary node can verify the second transaction and return the second transaction after the verification is passed; and the processing module is suitable for the notary After the node returns the second transaction, the second transaction is added to the second blockchain.
  • a cross-chain transaction device including: a storage module suitable for storing notarized blockchains; a communication module suitable for receiving cross-chain transaction transactions sent by a first blockchain node ,
  • the cross-chain transaction transaction includes a first transaction transaction related to the first block chain and a second transaction transaction related to the second block chain.
  • the first block chain node stores the first block chain; it is also suitable for receiving The first transaction transaction sent by the first blockchain node; it is also suitable for receiving the second transaction transaction sent by the second blockchain node; and the data verification module is suitable for verifying the cross-chain transaction transaction, and after the verification is passed
  • the second transaction transaction is sent to the second blockchain node via the communication module, and the second blockchain node stores the second blockchain; it is also suitable for verifying the first transaction transaction, and after the verification is passed, the first The transaction transaction is returned to the first blockchain node so that the first blockchain node can add the first transaction transaction to the first blockchain; it is also suitable for verifying the second transaction transaction, and after the verification is passed, the second The transaction transaction is returned to the second blockchain node so that the second blockchain node adds the second transaction transaction to the second blockchain.
  • a multi-blockchain system including: a first blockchain system, including a first client device and a first blockchain node, the first client device stores The first block chain or a part of it, the first block chain node stores the first block chain and includes the cross-chain transaction device according to the embodiment of the present invention; the second block chain system includes the second client device and The second blockchain node, the second client device stores the second blockchain or a part thereof, the second blockchain node stores the second blockchain, and includes the cross-chain transaction device according to the embodiment of the present invention; And a notary blockchain system, including at least one notary node, the notary node stores the notary blockchain, and includes the cross-chain transaction device according to the embodiment of the present invention, the notary blockchain includes at least a first blockchain and a second area The data of the block chain, the first block chain node and the second block chain node also store a part of the notarized block chain.
  • a computing device including: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be Executed by one or more processors, and the one or more programs include instructions for executing the method according to the embodiment of the present invention.
  • a computer-readable storage medium storing one or more programs.
  • the one or more programs include instructions that, when executed by a computing device, cause the computing device to execute The method of the embodiment of the present invention.
  • a notary chain blockchain system that records all the sub-blockchain data is added to the multiple sub-blockchain systems.
  • the blockchain node of the sub-blockchain system performs the collection of transaction transactions, the generation of blocks and the consensus of the later verified blocks, and the notary node of the notary chain system verifies the legality and/or validity of the block.
  • the atomicity of data and transactions in the multi-blockchain system is guaranteed, and the role of the blockchain node and the notary node is also fully utilized.
  • the two kinds of nodes can supervise and restrain each other, thereby reducing the multi-blockchain system.
  • the degree of centralization is the degree of centralization.
  • the cross-chain smart contract is deployed on the notary node and managed by the notary node.
  • Each sub-blockchain system does not need to maintain the cross-chain smart contract, which greatly reduces the complexity of management operations. degree.
  • the cross-chain transaction scheme of the embodiment of the present invention while maintaining the management autonomy of the original sub-blockchain system, it is also easy to deploy (for example, adding a new sub-blockchain system in a multi-blockchain system) ) And easy system upgrade, which improves the flexibility of the multi-blockchain system.
  • the blockchain nodes of each sub-blockchain system only store a part of the blockchain and notarization chain maintained by each, and maintain the original system users (transaction initiator and The transaction acceptor's requirements for network bandwidth and storage space.
  • the collection of transaction transactions, block generation, and the consensus of the later verified blocks are separated, which can effectively avoid the attacks of malicious nodes that may exist in the sub-blockchain system. .
  • Fig. 1 shows a schematic diagram of a blockchain 100 according to an embodiment of the present invention
  • FIG. 2 shows a schematic diagram of a blockchain system 200 according to an embodiment of the present invention
  • FIG. 3 shows a schematic diagram of a multi-blockchain system 300 according to an embodiment of the present invention
  • FIG. 4 shows a schematic diagram of a computing device 400 according to an embodiment of the present invention
  • FIG. 5 shows a flowchart of a cross-chain transaction method 500 according to an embodiment of the present invention
  • FIG. 6 shows a flowchart of a cross-chain transaction method 600 according to an embodiment of the present invention
  • FIG. 7 shows a flowchart of a cross-chain transaction method 700 according to an embodiment of the present invention
  • FIG. 8 shows an interaction flowchart of a cross-chain transaction method 800 according to an embodiment of the present invention
  • FIG. 9 shows a schematic diagram of a cross-chain transaction device 900 according to an embodiment of the present invention.
  • FIG. 10 shows a schematic diagram of a cross-chain transaction device 1000 according to an embodiment of the present invention.
  • FIG. 11 shows a schematic diagram of a cross-chain transaction device 1100 according to an embodiment of the present invention.
  • Fig. 1 shows a schematic diagram of a blockchain 100 according to an embodiment of the present invention.
  • the blockchain 100 may include multiple blocks (also referred to as data blocks) 102.
  • the block 102 is a data structure including a transaction 104 such as a payment receipt.
  • a new transaction 104 is requested to be submitted to the blockchain 100 and verified, a new block 102 containing the transaction data 104 can be generated and added to the blockchain 100.
  • Each new block 102 may include a set of verified transaction data 104 and a hash (ie, hash) 106 of the content of the immediately preceding block 102.
  • block "2" includes a hash of the content of block "1”
  • block "n” includes a hash of the content of block "n-1", and so on.
  • Bitcoin And Ethereum It is a typical example of applying blockchain technology.
  • FIG. 2 shows an architecture diagram of a blockchain system 200 according to an embodiment of the present invention.
  • the blockchain system 200 includes a plurality of blockchain nodes (NODE). These blockchain nodes are equal to each other and can usually be implemented as computing devices located in one or more networks.
  • the blockchain 100 is distributed on multiple blockchain nodes. Each blockchain node can store a copy or part of the blockchain 100 (that is, the ledger 204).
  • the ledger and the blockchain are equivalent concepts that can replace each other without causing ambiguity.
  • the ledger 204 includes blocks 102 that have been verified and added to the blockchain 100.
  • part or all of the blockchain 100 may be stored in a centralized manner.
  • the blockchain nodes can communicate with each other via a communication link 206 (for example, a wired or wireless connection, the Internet, etc.) in order to send and receive data related to the ledger 204.
  • a communication link 206 for example, a wired or wireless connection, the Internet, etc.
  • the blockchain node can communicate or synchronize the new block 102 via the communication path 206.
  • FIG. 3 shows a schematic diagram of a multi-blockchain system 300 according to an embodiment of the present invention.
  • the multi-blockchain system 300 may include multiple sub-blockchain systems and notarization blockchain systems, such as the first blockchain system 310, the second blockchain system 320, and the notarization blockchain system 330 shown in FIG. 3 .
  • the sub-blockchain system may include client devices and blockchain nodes corresponding to the sub-blockchain system.
  • the block chain node in the sub-block chain system stores the block chain maintained by the sub-block chain system
  • the client device can store the block chain maintained by the sub-block chain system, or a part of it (such as block chain Block header).
  • the blockchain node in the sub-blockchain system can also store a part of the notarized blockchain maintained by the notarized blockchain system (for example, the block header).
  • the blockchain nodes in each sub-blockchain system can communicate via communication paths between each other, such as data synchronization.
  • the client devices in each sub-blockchain system can communicate with the blockchain nodes in the blockchain system through the network.
  • the client device can generate a transaction transaction and send it to the corresponding blockchain node.
  • the blockchain node may send the new block or its block header to the corresponding client device.
  • the notary blockchain system may include notary nodes.
  • the notarization node stores a notarization block chain maintained by the notarization block chain system, and the notarization block chain may include at least block chain data maintained by each sub-block chain system in the multi-block chain system 300.
  • notary nodes can be voted together by blockchain nodes in multiple sub-blockchain systems.
  • Notary nodes can communicate via communication paths between each other. Notary nodes can also communicate with blockchain nodes in each sub-blockchain system through the network.
  • the first blockchain system 310 includes a first client device 311 and a first blockchain node 312 corresponding to the first blockchain system 310.
  • the second blockchain system 320 includes a second client device 321 and a second blockchain node 322 corresponding to the first blockchain system 320.
  • the notary blockchain system 330 may include a notary node 331.
  • the notarization node 331 may be jointly voted by the first blockchain node 312 and the second blockchain node 322, and stores the notarization blockchain 332 maintained by the notarization blockchain system 330.
  • the notarized blockchain 332 may at least include data of the first blockchain 313 maintained by the first blockchain system 310 and the second blockchain 323 maintained by the second blockchain system 310.
  • the first blockchain node 312 stores the first blockchain 313 maintained by the first blockchain system 310, and may also store a part of the notarized blockchain 332.
  • the first client device 311 may store the first blockchain 313 or a part of the first blockchain 313.
  • the second blockchain node 322 stores the second blockchain 323 maintained by the second blockchain system 320, and may also store a part of the notarized blockchain 332.
  • the second client device 321 may store the second blockchain 323 or a part of the second blockchain 323.
  • the first blockchain nodes 312 can communicate via a communication path between each other.
  • the first client device 311 may communicate with the first blockchain node 312 through the network.
  • a user of the first blockchain system 310 may send a transaction transaction to the first blockchain node 312 via the first client device 311 to conduct transactions with other users of the first blockchain system 310.
  • the second blockchain nodes 322 can communicate via a communication path between each other.
  • the second client device 321 may communicate with the second blockchain node 322 through the network.
  • a user of the second blockchain system 320 may send transaction transactions to the second blockchain node 322 via the second client device 321 to conduct transactions with other users of the second blockchain system 320.
  • the notary nodes 331 can communicate via a communication path between each other.
  • the notary node can also communicate with the first blockchain node 312 and the second blockchain node 322 through the network.
  • notarization nodes can also be called verification nodes, arbitration nodes, or trusted nodes, etc.
  • the present invention does not limit the specific names of nodes. Any node that performs similar functions but has other names is included in the present invention. Within the scope of protection.
  • the first blockchain node 312 may include a cross-chain transaction device 900
  • the second blockchain node 322 may include a cross-chain transaction device 1000
  • the notary node 331 may include a cross-chain transaction device 1100.
  • the components (nodes and devices, etc.) in the above-mentioned multi-blockchain system 300 can be implemented by the computing device 400 as described below.
  • FIG. 4 shows a schematic diagram of a computing device 400 according to an embodiment of the present invention.
  • the computing device 400 in a basic configuration 402, the computing device 400 typically includes a system memory 406 and one or more processors 404.
  • the memory bus 408 may be used for communication between the processor 404 and the system memory 406.
  • the processor 404 may be any type of processor, including but not limited to: a microprocessor ( ⁇ P), a microcontroller ( ⁇ C), a digital information processor (DSP), or any combination thereof.
  • the processor 404 may include one or more levels of cache, such as the first level cache 410 and the second level cache 412, the processor core 414, and the registers 416.
  • the exemplary processor core 414 may include an arithmetic logic unit (ALU), a floating point number unit (FPU), a digital signal processing core (DSP core), or any combination thereof.
  • the exemplary memory controller 418 may be used with the processor 404, or in some implementations, the memory controller 418 may be an internal part of the processor 404.
  • the system memory 406 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof.
  • the system memory 406 may include an operating system 420, one or more applications 422, and program data 424.
  • the application 422 may be arranged to be executed by one or more processors 404 using program data 424 on an operating system.
  • the computing device 400 may also include an interface bus 440 that facilitates communication from various interface devices (eg, output device 442, peripheral interface 444, and communication device 446) to the basic configuration 402 via the bus/interface controller 430.
  • the example output device 442 includes an image processing unit 448 and an audio processing unit 450. They can be configured to facilitate communication with various external devices such as displays or speakers via one or more A/V ports 452.
  • the example peripheral interface 444 may include a serial interface controller 454 and a parallel interface controller 456, which may be configured to facilitate access via one or more I/O ports 458 and input devices such as keyboards, mice, pens, etc. , Voice input devices, touch input devices) or other peripherals (such as printers, scanners, etc.) to communicate.
  • the example communication device 446 may include a network controller 460, which may be arranged to facilitate communication with one or more other computing devices 462 via a network communication link via one or more communication ports 464.
  • the computing device may also include a storage device 432 and a storage interface bus 434 connected to the storage device 432.
  • the storage device 432 may include a removable storage 436 and a non-removable storage 438.
  • the storage interface bus 434 is connected to the basic configuration 402 and the interface bus 440 through the bus/interface controller 430.
  • a network communication link may be an example of a communication medium.
  • the communication medium may generally be embodied as computer readable instructions, data structures, and program modules in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.
  • a "modulated data signal" can be a signal, one or more of its data set or its change can be done in a way of encoding information in the signal.
  • communication media may include wired media such as a wired network or a dedicated line network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR), or other wireless media.
  • RF radio frequency
  • IR infrared
  • the term computer readable media used herein may include both storage media and communication media.
  • the computing device 400 may be implemented as a server, such as a database server, an application server, a WEB server, etc., and may also be implemented as a personal computer including a desktop computer and a notebook computer configuration. Of course, the computing device 400 can also be implemented as a part of a small-sized portable (or mobile) electronic device.
  • the computing device 400 may be implemented as a cross-chain transaction device 900/1000/1100 and configured to execute the cross-chain transaction method 500/600/700 according to the embodiment of the present invention.
  • the application 422 of the computing device 400 contains multiple instructions for executing the cross-chain transaction method 500/600/700 according to the embodiment of the present invention, and the program data 424 can also store content such as configuration data of the multi-blockchain system 300.
  • FIG. 5 shows a flowchart of a cross-chain transaction method 500 according to an embodiment of the present invention.
  • the cross-chain transaction method 500 may be executed in the cross-chain transaction device 900 included in the first blockchain node 312.
  • the cross-chain transaction method 500 starts at step S510.
  • the first blockchain node 312 receives the cross-chain transaction transaction.
  • the cross-chain transaction transaction is generated by the first client device 311.
  • the cross-chain transaction transaction received by the first blockchain node 312 may be sent by the first client device 311, or may be broadcast by other first blockchain nodes 312.
  • a cross-chain transaction transaction is a transaction transaction involving at least two blockchains. Therefore, a cross-chain transaction transaction can be decomposed into multiple transaction transactions related to each blockchain involved in the cross-chain transaction firm.
  • the cross-chain transaction transaction generated by the first client device 311 may include a first transaction transaction related to the first blockchain 313 and a second transaction transaction related to the second blockchain 323.
  • the transaction transaction can usually include the transaction object of the transaction transaction (for example, it can include the payer and the receiver), the transaction amount, the blockchain identifier involved in the transaction, etc., which are not limited by the present invention.
  • the exchange rate between currency X and currency Y is 1:10.
  • the user Alice of the first blockchain system 310 needs to transfer 10 units of currency X to the user Bob of the second blockchain system 320.
  • the first The first transaction transaction is that Alice remits 10 units of currency X to Bob in the first blockchain system 310
  • the second transaction transaction is that Bob accepts 100 units of currency Y from Alice in the second blockchain system 320.
  • step S520 the first blockchain node 312 sends the received cross-chain transaction transaction to the notary node 331, so that the notary node 331 verifies the cross-chain transaction transaction, and the cross-chain transaction transaction is verified after the verification is passed.
  • the second transaction in the transaction is sent to the second blockchain node 322.
  • the first blockchain node 312 may generate a block including the cross-chain transaction transaction, and send the block including the cross-chain transaction transaction to the notary node 331.
  • the first blockchain node 312 may also broadcast the received cross-chain transaction transaction to other first blockchain nodes 312.
  • the notary node 331 After the notary node 331 receives the block including the cross-chain transaction transaction, it can parse the block and verify the data contained in the block, thereby realizing the verification of the cross-chain transaction transaction. Understandably, the data contained in the block is a series of transactions.
  • the notary node 331 may verify the legality and/or validity of the transaction. For example, the notary node 331 can verify whether the transaction transaction has a legal client device signature and/or blockchain node signature, and can also verify whether the payer in the transaction transaction has sufficient assets to make payment, and so on.
  • the embodiment of the present invention does not limit the specific content of the data verification.
  • the verification is passed, otherwise the verification is not passed.
  • the notary node 331 After the notary node 331 passes the verification of the data contained in the block including the cross-chain transaction transaction, it can send the second transaction transaction related to the second blockchain 323 in the cross-chain transaction transaction to the second blockchain system The second blockchain node 322 in 320.
  • the first blockchain node 312 After the first blockchain node 312 sends the cross-chain transaction to the notary node 331, it may also send the first transaction to the notary node 331 in step S530, so that the notary node 331 verifies the first transaction, and After the verification is passed, the first transaction is returned.
  • the first blockchain node 312 may again receive the first transaction transaction related to the first blockchain 313 among the cross-chain transaction transactions, and send the received first transaction transaction to the notary. Node 331.
  • the first transaction transaction may be directly sent by the first client device 311 that generates the cross-chain transaction transaction; it may also be sent by the first client device 311 to other first blockchain nodes 312, and other Broadcasted by the first blockchain node 312. It should be noted that, different from the aforementioned step S510, what the first blockchain node 312 receives at this time is only the first transaction transaction, not the cross-chain transaction transaction.
  • the first blockchain node 312 may generate a block including the first transaction transaction, and send the block including the first transaction transaction to the notary node 331.
  • the first blockchain node 312 may also broadcast the received first transaction to other first blockchain nodes 312.
  • the notary node 331 After receiving the block including the first transaction transaction, the notary node 331 can parse the block and verify the data contained in the block, thereby realizing the verification of the first transaction transaction. Among them, the specific content of the verification of the data contained in the block has been described in detail above, and will not be repeated here.
  • the notary node 331 After the notary node 331 passes the verification of the data contained in the block including the first transaction, it may return the block including the first transaction to the first blockchain node 312.
  • the first blockchain node 312 may add the first transaction transaction to the first blockchain 313 in step S540.
  • the first blockchain node 312 may receive the block including the first transaction transaction verified and returned by the notary node 331, and broadcast the block including the first transaction transaction to other first blockchain nodes 312 for consensus.
  • each first blockchain node 312 may include the first transaction transaction.
  • the blocks of are added to the first block chain 313 stored in each.
  • the embodiments of the present invention can adopt various consensus mechanisms to achieve consensus, such as Proof of Work-PoW, Proof of Stake-PoS, and Byzantine consensus mechanism.
  • the consensus mechanism adopted is not restricted.
  • the first blockchain node 312 when the first blockchain node 312 sends a transaction (cross-chain transaction transaction or the first transaction transaction) to the notary node 331, it can choose One notary node 331 can send it, or it can be broadcast to multiple notary nodes 331, which is not limited in the present invention.
  • the first blockchain node 312 may sign the generated block, and then send the block signed by the first blockchain node.
  • the notary node 331 may also sign the received and verified block, and then return the block signed by the notary node 331.
  • Fig. 6 shows a flowchart of a cross-chain transaction method 600 according to an embodiment of the present invention.
  • the cross-chain transaction method 600 may be executed in the cross-chain transaction device 1000 included in the second blockchain node 322.
  • the cross-chain transaction method 600 starts at step S610.
  • the second blockchain node 322 may receive a second transaction transaction related to the second blockchain 323 in the cross-chain transaction transaction.
  • the cross-chain transaction transaction is generated by the first client device 311, and may include a first transaction transaction related to the first blockchain 313 and a second transaction transaction related to the second blockchain 323 .
  • the cross-chain transaction transaction is sent by the first blockchain node 312 (in the form of a block) to the notary node 331 so that the notary node 331 verifies the cross-chain transaction transaction and after the verification is passed, the cross-chain transaction transaction
  • the second transaction related to the second blockchain 323 is sent to the second blockchain node 322.
  • step S620 the second blockchain node 322 sends the second transaction to the notary node 331, so that the notary node 331 verifies the second transaction, and returns to the second transaction after the verification is passed.
  • the second blockchain node 322 may first send the received second transaction to the corresponding second client device 321 after step S610.
  • the second transaction can be sent to the second client device 321 corresponding to the payee.
  • the second transaction is sent to Bob's second client device.
  • the second client device 321 receives the second transaction transaction, and can send the second transaction transaction to the second blockchain node 322 after confirming the second transaction transaction.
  • the second blockchain node 322 can receive the second transaction again, and send the second transaction received again to the notary node 331.
  • the second transaction transaction may be directly sent by the second client device 321; it may also be sent by the second client device 321 to other second blockchain nodes 322, and other second It is broadcast by the blockchain node 322.
  • the second blockchain node 322 may generate a block including the second transaction transaction, and send the block including the second transaction transaction to the notary node 331.
  • the second blockchain node 322 may also broadcast the second transaction to other second blockchain nodes 322.
  • the notary node 331 After receiving the block including the second transaction transaction, the notary node 331 can parse the block and verify the data contained in the block, thereby realizing the verification of the second transaction transaction. Understandably, the data contained in the block is a series of transactions. In various embodiments, the notary node 331 may verify the legality and/or validity of the transaction. For example, the notary node 331 can verify whether the transaction transaction has a legal client device and/or blockchain node signature, and can also verify whether the payer in the transaction transaction has sufficient assets to make payment, and so on. The embodiment of the present invention does not limit the specific content of the data verification.
  • the verification is passed, otherwise the verification is not passed.
  • the notary node 331 may return the block including the second transaction to the second blockchain node 322 after passing the verification of the data included in the block including the second transaction.
  • the second transaction transaction may be added to the second blockchain 323 in step S630.
  • the second blockchain node 322 may receive the block including the second transaction transaction verified and returned by the notary node 331, and broadcast the block including the second transaction transaction to other second blockchain nodes 322 for consensus.
  • each second blockchain node 322 may include the second transaction transaction.
  • the blocks of are added to the second block chain 323 stored in each.
  • the embodiments of the present invention can adopt various consensus mechanisms to achieve consensus, such as Proof of Work-PoW, Proof of Stake-PoS, and Byzantine consensus mechanism.
  • the consensus mechanism adopted is not restricted.
  • a notary node 331 can be selected to send it, or it can be broadcast to There are multiple notarization nodes 331, which is not limited in the present invention.
  • the second blockchain node 322 can sign the generated block, and then send out the block signed by the second blockchain node 322.
  • the notary node 331 may also sign the received and verified block, and then return the block signed by the notary node 331.
  • Fig. 7 shows a flowchart of a cross-chain transaction method 700 according to an embodiment of the present invention.
  • the cross-chain transaction method 700 may be executed in the cross-chain transaction device 1100 included in the notary node 331.
  • the cross-chain transaction method 700 starts at step S710.
  • the notary node 331 may receive the cross-chain transaction transaction sent by the first blockchain node 312.
  • the cross-chain transaction includes a first transaction related to the first blockchain 313 and a second transaction related to the second blockchain 323.
  • the notary node 331 may receive the block including the cross-chain transaction transaction generated by the first blockchain node 312.
  • the notary node 331 may verify the cross-chain transaction transaction, and after the verification is passed, send the second transaction transaction related to the second blockchain 323 in the cross-chain transaction transaction to the second blockchain Node 322.
  • the notary node 331 can parse the block and verify the data contained in the block, thereby realizing the verification of the cross-chain transaction transaction. Understandably, the data contained in the block is a series of transactions.
  • the notary node 331 may verify the legality and/or validity of the transaction. For example, the notary node 331 can verify whether the transaction transaction has a legal client device and/or blockchain node signature, and can also verify whether the payer in the transaction transaction has sufficient assets to make payment, and so on.
  • the embodiment of the present invention does not limit the specific content of the data verification.
  • the verification is passed, otherwise the verification is not passed.
  • the notary node 331 may also broadcast the block including the cross-chain transaction to other notary nodes, so that other notary nodes can also verify the data contained in the block.
  • the notary node 331 can send the second transaction in the cross-chain transaction to the second blockchain only when all notary nodes exceeding a predetermined ratio have verified the data contained in the block.
  • the predetermined ratio can usually be 3/2.
  • the notary node 331 may receive a second transaction transaction related to the second blockchain 323 in the cross-chain transaction transaction sent by the second blockchain node.
  • the second blockchain node 322 may send the second transaction transaction to the corresponding second client device 321.
  • the second client device 321 confirms the second transaction, it then sends the second transaction to the second blockchain node 322. Therefore, the second blockchain node 322 receives the second transaction and sends it to the notary node 331.
  • the notary node 331 may receive the block including the second transaction transaction generated by the second blockchain node 322.
  • the notary node 331 can verify the second transaction transaction in step S740, and return the second transaction transaction to the second blockchain node 322 after the verification is passed, so that the second blockchain node 322 can The transaction is added to the second blockchain 323.
  • the notary node 331 may verify the data contained in the block including the second transaction, and return the block to the second blockchain node 322 after the verification is passed, so that the second blockchain node 322 will This block is added to the second blockchain 323.
  • the notary node 331 may also broadcast the block including the second transaction to other notary nodes, so that other notary nodes can also verify the data contained in the block.
  • the notary node 331 can return the block to the second blockchain node 322 only when all notary nodes exceeding a predetermined ratio have verified the data contained in the block.
  • the predetermined ratio can usually be 3/2.
  • the notary node 331 may also receive the first transaction transaction related to the first blockchain 313 in the cross-chain transaction transaction sent by the first blockchain node 312 in step S750.
  • the first client device 311 may send the first transaction transaction in the cross-chain transaction transaction to the first blockchain node 312 again. Therefore, the first blockchain node 322 receives the first transaction and sends it to the notary node 331.
  • the notary node 331 may receive the block including the first transaction transaction generated by the first blockchain node 312.
  • the notary node 331 may verify the first transaction transaction in step S760, and return the first transaction transaction to the first blockchain node 312 after the verification is passed, so that the first blockchain node 312 can The transaction is added to the first blockchain 313.
  • the notary node 331 may verify the data contained in the block including the first transaction, and return the block to the first blockchain node 312 after the verification is passed, so that the first blockchain node 312 will This block is added to the first blockchain 313.
  • the notary node 331 may also broadcast the block including the first transaction to other notary nodes, so that other notary nodes can also verify the data contained in the block.
  • the notary node 331 can return the block to the first blockchain node 312 only when all notary nodes exceeding a predetermined ratio have verified the data contained in the block.
  • the predetermined ratio can usually be 3/2.
  • the notary node 331 may also perform step S770, Record the data contained in the block, the node data sending the block, and/or the cross-chain data involved in the block, and add the recorded data to the notary blockchain 332 stored by the notary node 331 in step S780 .
  • the cross-chain data can indicate the multiple blockchains involved in the cross-chain transaction firms included in the block and the nodes involved in each blockchain.
  • the notary node 331 may generate a block based on the recorded data and broadcast it to other notary nodes for consensus.
  • each notary node 331 can add the block to the notary blockchain 332 stored in each.
  • the embodiments of the present invention can adopt various consensus mechanisms to achieve consensus, such as Proof of Work-PoW, Proof of Stake-PoS, and Byzantine consensus mechanism.
  • the consensus mechanism adopted is not restricted.
  • the notary node 331 can sign the received and verified block.
  • the full text is based on the first blockchain system, the first client device, and the first blockchain node as the transaction initiator in the cross-chain transaction transaction, the second blockchain system and the second client device ,
  • the second blockchain node is used as the transaction receiver in the cross-chain transaction transaction to describe the cross-chain transaction scheme according to the embodiment of the present invention.
  • any sub-blockchain system and corresponding client device and blockchain node in the multi-blockchain system 100 can be either the transaction initiator in a cross-chain transaction transaction, or it can be a cross-chain transaction.
  • first blockchain system and the first client device and the first blockchain node, the second blockchain system and the second client device and the second blockchain node may all include Cross-chain transaction device, and execute the cross-chain transaction method executed by the other party.
  • the client device may also generate a transaction transaction for deploying a corresponding cross-chain smart contract, and send the transaction transaction to the corresponding blockchain node.
  • the corresponding blockchain node sends the transaction to the notary node in the form of a block.
  • the notarization node can at least record the data of the block to record the transaction, and generate a block of the notarization blockchain that includes the transaction based on the recorded data.
  • the notary node can add the block including the transaction to the stored notarization blockchain, thereby completing the deployment of the cross-chain smart contract included in the transaction.
  • the notary node can call the deployed corresponding cross-chain smart contract to process the received cross-chain transaction.
  • FIG. 8 shows an interaction flowchart of a cross-chain transaction method 800 according to an embodiment of the present invention.
  • the cross-chain transaction method 800 can be executed in the multi-blockchain system 300.
  • the cross-chain transaction method 800 starts at step S810.
  • the first client device 311 generates a cross-chain transaction transaction.
  • the first client device 311 sends the cross-chain transaction transaction to the first blockchain node 312.
  • the first client device 311 can select one or more first blockchain nodes 312 to send randomly or according to a certain strategy, which is not limited in the present invention.
  • the first blockchain node 312 receives the cross-chain transaction transaction, and may generate a block including the cross-chain transaction transaction in step S830, and sign the block. Next, in step S840, the first blockchain node 312 sends the block including the cross-chain transaction transaction signed by the first blockchain node 312 to the notary node 331.
  • step S850 the notary node 331 verifies the block including the cross-chain transaction, and signs the block after the verification is passed.
  • step S860 in the case that all notary nodes exceeding a predetermined ratio sign the block, the notary node 331 sends the second transaction transaction related to the second blockchain 323 in the cross-chain transaction to the second Block chain node 322.
  • the notary node 331 can select one or more second blockchain nodes 322 to send randomly or according to a certain strategy, which is not limited in the present invention.
  • the second blockchain node 322 sends the second transaction to the corresponding second client device 321 in step S870. After the second client device 321 receives and confirms the second transaction, it may send the second transaction to the second blockchain node 322 in step S880.
  • the second client device 321 can select one or more second blockchain nodes 322 to send randomly or according to a certain strategy, which is not limited in the present invention.
  • the second blockchain node 322 receives the second transaction, and in step S890, generates a block including the second transaction, and signs the block.
  • the second blockchain node 322 sends the block including the second transaction signed by the second blockchain node 322 to the notary node 331.
  • the second blockchain node 322 can select one or more notary nodes 331 to send randomly or according to a certain strategy, which is not limited in the present invention.
  • the notary node 331 receives the block including the second transaction, may verify the block including the second transaction in step S892, and sign the block after the verification is passed. Next, in step S893, in the case that all notary nodes exceeding a predetermined ratio sign the block, the notary node 331 returns the block including the second transaction transaction signed by the notary node 331 to the second blockchain node 322.
  • the second block chain node 322 receives the block including the second transaction transaction returned by the notary node 331, and multiple second block chain nodes in the second block chain system 320 agree on the block including the second transaction transaction In the case of consensus, in step S894, the block including the second transaction is added to the stored second blockchain 323.
  • the first client device 311 may further send the first transaction transaction related to the first blockchain 313 in the cross-chain transaction transaction to the first blockchain node 312 in step S821.
  • the first client device 311 can select one or more first blockchain nodes 312 to send randomly or according to a certain strategy, which is not limited in the present invention.
  • the first blockchain node 312 receives the first transaction transaction, and then can generate a block including the first transaction transaction in step S822, and sign the block. Next, in step S823, the first blockchain node 312 sends the block including the first transaction signed by the first blockchain node 312 to the notary node 331.
  • the first blockchain node 312 can select one or more notary nodes 331 to send randomly or according to a certain strategy, which is not limited in the present invention.
  • the notary node 331 receives the block including the first transaction transaction, and then can verify the block including the first transaction transaction in step S824, and sign the block after the verification is passed. Next, in step S825, in the case that all notary nodes exceeding a predetermined ratio sign the block, the notary node 331 returns the block including the first transaction transaction signed by the notary node 331 to the first blockchain node 312.
  • the block including the first transaction transaction can be obtained by multiple first block chain nodes in the first block chain system 310.
  • the block including the first transaction is added to the stored first blockchain 313.
  • the notary node 331 after receiving the block sent by the blockchain node (for example, the block including the cross-chain transaction transaction, or the block including the first transaction transaction, or the block including the second transaction transaction), the notary node 331 also The data contained in the block, the node data of the sending block, and/or the cross-chain data involved in the block may be recorded in step S851, and the block may be generated based on the recorded data. Then, in the case where a plurality of notary nodes in the notary blockchain system 330 reach a consensus on the block, the notary node 331 adds the block to the stored notary blockchain 332 in step S852.
  • FIG. 9 shows a cross-chain transaction device 900 according to an embodiment of the present invention.
  • the cross-chain transaction device 900 may reside in the first blockchain node 312.
  • the cross-chain transaction device 900 may include a storage module 910, a communication module 920, and a processing module 930.
  • the storage module 910 is suitable for storing the first blockchain.
  • the communication module 920 is adapted to receive a cross-chain transaction transaction, and the cross-chain transaction transaction includes a first transaction transaction related to the first blockchain and a second transaction transaction related to the second blockchain.
  • the communication module 920 is further adapted to send the cross-chain transaction transaction to the notary node, so that the notary node verifies the cross-chain transaction transaction, and sends the second transaction transaction to the second blockchain node after the verification is passed.
  • the chain node stores the second blockchain.
  • the communication module 920 is further adapted to send the first transaction transaction to the notary node, so that the notary node verifies the first transaction transaction, and returns to the first transaction transaction after the verification is passed.
  • the processing module 930 is connected to the communication module 920 and the storage module 910, and is adapted to add the first transaction returned by the notary node to the first blockchain stored in the storage module 910.
  • each module in the cross-chain transaction device 900 please refer to the relevant description of the cross-chain transaction methods 500-700 in conjunction with FIGS. 1 to 7, which will not be repeated here.
  • Fig. 10 shows a cross-chain transaction device 1000 according to an embodiment of the present invention.
  • the cross-chain transaction device 1000 may reside in the second blockchain node 322.
  • the cross-chain transaction device 1000 may include a storage module 1010, a communication module 1020, and a processing module 1030.
  • the storage module 1010 is suitable for storing the second blockchain.
  • the communication module 1020 is adapted to receive a second transaction transaction related to the second blockchain in a cross-chain transaction transaction.
  • the cross-chain transaction transaction includes the first transaction transaction and the second transaction transaction related to the first blockchain, and is sent by the first blockchain node to the notary node, and the first blockchain node stores the first transaction transaction.
  • a blockchain A blockchain.
  • the communication module 1020 is further adapted to send the second transaction transaction to the notary node, so that the notary node verifies the second transaction transaction, and returns to the second transaction transaction after the verification is passed.
  • the processing module 1030 is connected to the storage module 1010 and the communication module 1020, and is adapted to add the second transaction to the second blockchain stored in the storage module 1010 after the notary node returns the second transaction.
  • FIG. 11 shows a cross-chain transaction device 1100 according to an embodiment of the present invention.
  • the cross-chain transaction device 1100 may reside in the notary node 331.
  • the cross-chain transaction device 1100 may include a storage module 1110, a communication module 1120, and a data verification module 1130.
  • the storage module 1110 is suitable for storing notarized blockchains.
  • the communication module 1120 is adapted to receive a cross-chain transaction transaction sent by a first blockchain node, the cross-chain transaction transaction includes a first transaction transaction related to the first blockchain and a second transaction transaction related to the second blockchain,
  • the first blockchain node stores the first blockchain.
  • the communication module 1120 is further adapted to receive the first transaction sent by the first blockchain node and receive the second transaction sent by the second blockchain node.
  • the data verification module 1130 is connected to the storage module 1110 and the communication module 1120, and is suitable for verifying cross-chain transaction transactions, and sends the second transaction transaction to the second blockchain node via the communication module 1120 after the verification is passed.
  • the second block chain node stores the second block chain; it is also suitable for verifying the first transaction transaction, and after the verification is passed, the first transaction transaction is returned to the first block chain node, so that the first block chain node Add the first transaction transaction to the first blockchain; it is also suitable for verifying the second transaction transaction, and returns the second transaction transaction to the second blockchain node after the verification is passed, so that the second blockchain node Add the second transaction to the second blockchain.
  • the cross-chain transaction device 1100 may also include a processing module 1140.
  • the processing module 1140 is adapted to record the data contained in the block generated by the received blockchain node, send the node data of the block, and/or the block.
  • the cross-chain data involved in the block, and based on the recorded data, a notarized block chain is generated.
  • the processing module 1140 is also adapted to add the generated block to the stored notarization blockchain 332 when the notary node reaches a consensus on the generated block.
  • a notary chain blockchain system that records all the sub-blockchain data is added to the multiple sub-blockchain systems.
  • the blockchain node of the sub-blockchain system performs the collection of transaction transactions, the generation of blocks and the consensus of the later verified blocks, and the notary node of the notary chain system verifies the legality and/or validity of the block.
  • the atomicity of data and transactions in the multi-blockchain system is guaranteed, and the role of the blockchain node and the notary node is also fully utilized.
  • the two kinds of nodes can supervise and restrain each other, thereby reducing the multi-blockchain system.
  • the degree of centralization is the degree of centralization.
  • the cross-chain smart contract is deployed on the notary node and managed by the notary node.
  • Each sub-blockchain system does not need to maintain the cross-chain smart contract, which greatly reduces the complexity of management operations. degree.
  • the cross-chain transaction scheme of the embodiment of the present invention while maintaining the management autonomy of the original sub-blockchain system, it is also easy to deploy (for example, adding a new sub-blockchain system in a multi-blockchain system) ) And easy system upgrade, which improves the flexibility of the multi-blockchain system.
  • the blockchain nodes of each sub-blockchain system only store a part of the blockchain and notarization chain maintained by each, and maintain the original system users (transaction initiator and The transaction acceptor's requirements for network bandwidth and storage space.
  • the collection of transaction transactions, block generation, and the consensus of the later verified blocks are separated, which can effectively avoid the attacks of malicious nodes that may exist in the sub-blockchain system. .
  • the cross-chain transaction scheme according to the embodiment of the present invention actively initiates transactions without waiting for the intervention of a third party.
  • the solution is less time consuming, eliminating the initialization time in the centralized notary solution and the step of guessing the random password in the hash lock solution.
  • the minimum execution time of this solution is only the block generation time (Block Generation Time), that is, the minimum time limit for the transaction broadcast in the blockchain to be confirmed.
  • the cross-chain transaction scheme according to the embodiment of the present invention is a full cross-chain mode, which not only achieves the verification of cross-chain transaction transactions, but also achieves asset transfer between blockchains. Transactions no longer just happen in their respective blockchains, but a consensus is reached between the blockchains. The transfer of assets from one blockchain to another is not just a change of holders.
  • the existing centralized notary scheme needs to introduce a third party that both parties to the transaction can trust to act as a notary.
  • the initialization of the notary node is quite time-consuming.
  • the scheme is a passive transaction, and the transaction is reached (through or Rejected) relies on the signature of a collection of notaries.
  • the existing hash lock scheme relies on the calculation of a random password, and this calculation step is also quite time-consuming.
  • the above two schemes are both semi-cross-chain models. Although cross-chain transaction verification is achieved, the transactions still occur in their respective chains, and no real cross-chain transactions have been achieved.
  • a notarization system can be set up outside the two banking systems.
  • the first banking system node sends the cross-system transaction to the notary system node.
  • the cross-system transaction should include the first transaction transaction and the second transaction transaction related to the first banking system.
  • the second transaction transaction is sent to the second banking system node.
  • the first banking system and the second banking system respectively send their respective related transaction transactions to the notary system node, and the notary system node will return after verification.
  • the first bank system and the second bank system respectively receive the transaction transaction verified by the notary system node, and execute and record the transaction transaction respectively.
  • the method and device of the embodiment of the present invention or some aspects or parts of the method and device of the embodiment of the present invention may be embedded in a tangible medium, such as a removable hard disk, U disk, floppy disk, CD-ROM, or any other machine.
  • a form of program code ie, instructions
  • a read storage medium where when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the embodiment of the present invention.
  • the computing device When the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and nonvolatile memory and/or storage elements), and at least one input device, And at least one output device.
  • the memory is configured to store program code; the processor is configured to execute the method of the embodiment of the present invention according to instructions in the program code stored in the memory.
  • readable media include readable storage media and communication media.
  • the readable storage medium stores information such as computer readable instructions, data structures, program modules, or other data.
  • Communication media generally embody computer readable instructions, data structures, program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and include any information delivery media. Combinations of any of the above are also included in the scope of readable media.
  • the algorithms and displays are not inherently related to any particular computer, virtual system or other equipment.
  • Various general-purpose systems can also be used with the examples of embodiments of the present invention. From the above description, the structure required to construct this type of system is obvious.
  • the embodiments of the present invention are not directed to any specific programming language. It should be understood that various programming languages may be used to implement the content of the embodiments of the present invention described herein, and the above description of specific languages is for the purpose of disclosing the best implementation of the embodiments of the present invention.
  • modules or units or components of the device in the example disclosed herein can be arranged in the device as described in this embodiment, or alternatively can be positioned differently from the device in this example In one or more devices.
  • the modules in the foregoing examples can be combined into one module or further divided into multiple sub-modules.
  • modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and/or processes or units are mutually exclusive, any combination can be used to compare all features disclosed in this specification (including the accompanying claims, abstract and drawings) and any method or methods disclosed in this manner or All the processes or units of the equipment are combined. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

Landscapes

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

Abstract

一种跨链交易方法、装置、多区块链系统、计算设备及存储介质,所述方法包括:第一区块链节点接收跨链交易事务(S510),跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务,第一区块链节点存储有第一区块链;将跨链交易事务发送至公证节点,以便公证节点对跨链交易事务进行验证,并在验证通过后将第二交易事务发送至第二区块链节点(S520),第二区块链节点存储有第二区块链;将第一交易事务发送至公证节点,以便公证节点对第一交易事务进行验证,并在验证通过后返回第一交易事务(S530);以及将第一交易事务添加至第一区块链(S540)。

Description

跨链交易方法、装置、多区块链系统及计算设备
本申请要求2019年08月07日递交的申请号为201910726868.2、发明名称为“跨链交易方法、装置、多区块链系统及计算设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及区块链技术领域,尤其涉及一种跨链交易方法、装置、多区块链系统及计算设备。
背景技术
区块链(blockchain)是存储交易列表的数据结构,并且可以被看作记录(一个或多个)源标识符与(一个或多个)目的地标识符之间的交易的分布式电子账本(ledger)。由于具有去中心化、公开透明、各节点均可以参与记账、存储在区块链中的数据具备不可篡改、并且各节点之间可以快速的进行数据同步的特性,利用区块链技术来搭建去中心化系统,并在区块链的分布式数据库中收录各种执行程序进行自动执行,已在众多的领域中广泛的进行应用。
现今,主流的区块链系统均为单链系统,其所有对区块链的操作均实现在一条区块链上。这种单链系统存在很多不足,如系统的吞吐量,安全性,灵活性等。不论对于公有链还是私有链,跨链技术就是实现多区块链间价值的关键,是区块链向外拓展和连接的桥梁。
如何管理多条区块链、实现跨区块链间的交易,一种可能的、较直接的解决方案是将所有区块链的数据融合为一条新的区块链进行统一管理。但是,这种解决方法一方面会使得原有各条区块链所对应的不同组成机构(如不同供应链、不同企业或组织)失去自身的管理自主性。另一方面,新的区块链在融合多条链的数据后,会要求区块链中的所有节点拥有更大的数据存储空间以存储其他链的数据。这对系统使用者的网络带宽和存储空间提出了更高的要求。
另一种可行的方案是设计区块链之间的跨链协议。然而所涉及到的区块链数量越多会导致需要设计大量协议,这样系统不够灵活,并且该跨链协议仅支持单链对单链的跨链,无法达成多链间的跨链。如果要设计多链间的跨链协议,协议复杂度会更高,且单 链需要维护的跨链协议也会更繁琐。
因此,需要一种更为先进的多区块链系统方案,以便对多条区块链进行管理、实现跨区块链间的交易。
发明内容
为此,本发明实施例提供一种跨链交易方法、装置、多区块链系统及计算设备,以力图解决或至少缓解上面存在的问题。
根据本发明实施例的一个方面,提供了一种跨链交易方法,包括:第一区块链节点接收跨链交易事务,跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务,第一区块链节点存储有第一区块链;将跨链交易事务发送至公证节点,以便公证节点对跨链交易事务进行验证,并在验证通过后将第二交易事务发送至第二区块链节点,第二区块链节点存储有第二区块链;将第一交易事务发送至公证节点,以便公证节点对第一交易事务进行验证,并在验证通过后返回第一交易事务;以及将第一交易事务添加至第一区块链。
可选地,在根据本发明实施例的方法中,将第一交易事务发送至公证节点的步骤包括:生成包括第一交易事务的区块,将区块发送至公证节点,以便公证节点对区块包含的数据进行验证,并在验证通过后返回区块。
可选地,在根据本发明实施例的方法中,将第一交易事务添加至第一区块链的步骤包括:将公证节点返回的、包括第一交易事务的区块广播至其他第一区块链节点,以便进行共识;在第一区块链节点对区块达成共识的情况下,将区块添加至第一区块链。
可选地,在根据本发明实施例的方法中,将跨链交易事务发送至公证节点的步骤包括:生成包括跨链交易事务的区块,将区块发送至公证节点,以便公证节点对区块包含的数据进行验证,并在验证通过后将第二交易事务发送至第二区块链节点。
可选地,在根据本发明实施例的方法中,将第一交易事务发送至公证节点的步骤包括:再次接收第一交易事务;将再次接收到的第一交易事务发送至公证节点。
根据本发明实施例的另一个方面,提供了一种跨链交易方法,包括:第二区块链节点接收跨链交易事务中与第二区块链相关的第二交易事务,跨链交易事务包括与第一区块链相关的第一交易事务和第二交易事务,并由第一区块链节点发送至公证节点,以便公证节点将第二交易事务发送至第二区块链节点,第一区块链节点存储有第一区块链,第二区块链节点存储有第二区块链;将第二交易事务发送至公证节点,以便公证节点对 第二交易事务进行验证,并在验证通过后返回第二交易事务;将第二交易事务添加至第二区块链。
根据本发明实施例的另一个方面,提供了一种跨链交易方法,包括:公证节点接收第一区块链节点发送的跨链交易事务,跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务,第一区块链节点存储有第一区块链;对跨链交易事务进行验证,并在验证通过后将第二交易事务发送至第二区块链节点,第二区块链节点存储有第二区块链;接收第一区块链节点发送的第一交易事务;对第一交易事务进行验证,并在验证通过后将第一交易事务返回至第一区块链节点,以便第一区块链节点将第一交易事务添加至第一区块链;接收第二区块链节点发送的第二交易事务;以及对第二交易事务进行验证,并在验证通过后将第二交易事务返回至第二区块链节点,以便第二区块链节点将第二交易事务添加至第二区块链。
根据本发明实施例的另一个方面,提供了一种跨链交易装置,包括:存储模块,适于存储第一区块链;通信模块,适于接收跨链交易事务,跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务;还适于将跨链交易事务发送至公证节点,以便公证节点对跨链交易事务进行验证,并在验证通过后将第二交易事务发送至第二区块链节点,第二区块链节点存储有第二区块链;还适于将第一交易事务发送至公证节点,以便公证节点对第一交易事务进行验证,并在验证通过后返回第一交易事务;以及处理模块,适于将第一交易事务添加至第一区块链。
根据本发明实施例的另一个方面,提供了一种跨链交易装置,包括:存储模块,适于存储第二区块链;通信模块,适于接收跨链交易事务中与第二区块链相关的第二交易事务,跨链交易事务包括与第一区块链相关的第一交易事务和第二交易事务,并由第一区块链节点发送至公证节点,第一区块链节点存储有第一区块链;还适于将第二交易事务发送至公证节点,以便公证节点对第二交易事务进行验证,并在验证通过后返回第二交易事务;以及处理模块,适于在公证节点返回第二交易事务后,将第二交易事务添加至第二区块链。
根据本发明实施例的另一个方面,提供了一种跨链交易装置,包括:存储模块,适于存储公证区块链;通信模块,适于接收第一区块链节点发送的跨链交易事务,跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务,第一区块链节点存储有第一区块链;还适于接收第一区块链节点发送的第一交易事务;还 适于接收第二区块链节点发送的第二交易事务;以及数据验证模块,适于对跨链交易事务进行验证,并在验证通过后经由通信模块将第二交易事务发送至第二区块链节点,第二区块链节点存储有第二区块链;还适于对第一交易事务进行验证,并在验证通过后将第一交易事务返回至第一区块链节点,以便第一区块链节点将第一交易事务添加至第一区块链;还适于对第二交易事务进行验证,并在验证通过后将第二交易事务返回至第二区块链节点,以便第二区块链节点将第二交易事务添加至第二区块链。
根据本发明实施例的另一个方面,提供了一种多区块链系统,包括:第一区块链系统,包括第一客户端设备和第一区块链节点,第一客户端设备存储有第一区块链或者其一部分,第一区块链节点存储有第一区块链,并包括根据本发明实施例的跨链交易装置;第二区块链系统,包括第二客户端设备和第二区块链节点,第二客户端设备存储有第二区块链或者其一部分,第二区块链节点存储有第二区块链,并包括根据本发明实施例的跨链交易装置;以及公证区块链系统,包括至少一个公证节点,公证节点存储有公证区块链,并包括根据本发明实施例的跨链交易装置,公证区块链至少包括第一区块链和第二区块链的数据,第一区块链节点和第二区块链节点还存储有公证区块链的一部分。
根据本发明实施例的另一个方面,提供了一种计算设备,包括:一个或多个处理器;存储器;以及一个或多个程序,其中一个或多个程序存储在存储器中并被配置为由一个或多个处理器执行,该一个或多个程序包括用于执行根据本发明实施例的方法的指令。
根据本发明实施例的还有一个方面,提供了一种存储一个或多个程序的计算机可读存储介质,一个或多个程序包括指令,该指令当被计算设备执行时,使得计算设备执行根据本发明实施例的方法。
根据本发明实施例的跨链交易方案,在多个子区块链系统外增设有记录有全部子区块链数据的公证链区块链系统。由子区块链系统的区块链节点进行交易事务的收集、区块的生成及后期通过验证的区块的共识,由公证链系统的公证节点进行区块的合法性和/或有效性验证。这样,保证了多区块链系统中数据、事务的原子性,也充分发挥了区块链节点和公证节点的作用,能让这两种节点互相监督、互相约束,从而降低多区块链系统的中心化程度。
其中,根据本发明实施例的跨链交易方案,跨链智能合约部署于公证节点,由公证节点来管理,各子区块链系统不需维护跨链智能合约,极大地降低了管理操作的复杂度。
其中,根据本发明实施例的跨链交易方案,在维持了原有子区块链系统的管理自主性的同时,还易于部署(例如在多区块链系统中添加新的子区块链系统)及易于系统升 级,提升了多区块链系统的灵活性。
其中,根据本发明实施例的跨链交易方案,各个子区块链系统的区块链节点仅存储各自维护的区块链和公证链的一部分,维持了原有系统使用者(交易发起方和交易接受方)对网络带宽及存储空间的要求。同时,对子区块链系统来说,将交易事务的收集、区块的生成及后期通过验证的区块的共识等分离开,可以有效避免子区块链系统中可能存在的恶意节点的攻击。
上述说明仅是本发明实施例技术方案的概述,为了能够更清楚了解本发明实施例的技术手段,而可依照说明书的内容予以实施,并且为了让本发明实施例的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明实施例的具体实施方式。
附图说明
为了实现上述以及相关目的,本文结合下面的描述和附图来描述某些说明性方面,这些方面指示了可以实践本文所公开的原理的各种方式,并且所有方面及其等效方面旨在落入所要求保护的主题的范围内。通过结合附图阅读下面的详细描述,本公开的上述以及其它目的、特征和优势将变得更加明显。遍及本公开,相同的附图标记通常指代相同的部件或元素。
图1示出了根据本发明一个实施例的区块链100的示意图;
图2示出了根据本发明一个实施例的区块链系统200的示意图;
图3示出了根据本发明一个实施例的多区块链系统300的示意图;
图4示出了根据本发明一个实施例的计算设备400的示意图;
图5示出了根据本发明一个实施例的跨链交易方法500的流程图;
图6示出了根据本发明一个实施例的跨链交易方法600的流程图;
图7示出了根据本发明一个实施例的跨链交易方法700的流程图;
图8示出了根据本发明一个实施例的跨链交易方法800的交互流程图;
图9示出了根据本发明一个实施例的跨链交易装置900的示意图;
图10示出了根据本发明一个实施例的跨链交易装置1000的示意图;以及
图11示出了根据本发明一个实施例的跨链交易装置1100的示意图。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的 示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
图1示出了根据本发明一个实施例的区块链100的示意图。如图1所示,区块链100可以包括多个区块(block,也称之为数据块)102。区块102是包括诸如支付收据之类的交易事务(transaction)104的数据结构。当新的交易事务104请求提交至区块链100、且通过验证后,可以生成包含此交易数据104的新的区块102并添加至区块链100。每个新区块102可以包括一组经验证的交易数据104和紧接在前的区块102的内容的散列(即哈希)106。例如,区块“2”包括区块“1”的内容的散列,区块“n”包括区块“n-1”的内容的散列等等。比特币
Figure PCTCN2020106981-appb-000001
和以太坊
Figure PCTCN2020106981-appb-000002
为应用区块链技术的典型示例。
图2示出了根据本发明一个实施例的区块链系统200的架构图。该区块链系统200包括多个区块链节点(NODE)。这些区块链节点彼此对等,并通常可以实现为位于一个或多个网络中的计算设备。在一些实施方式中,区块链100分散地存储在多个区块链节点上。每个区块链节点均可以存储区块链100(也就是账本204)的副本或者其一部分。本领域技术人员可以理解,在不引起歧义的情况下,账本和区块链是可以互相替代的同等概念。
账本204包括已经验证并添加到区块链100的区块102。在另一些实施方式中,部分或全部区块链100可以以集中方式存储。
如图2所示,区块链节点可以经由通信链路206(例如,有线或无线连接、因特网等)彼此通信,以便发送和接收与账本204相关的数据。例如,当新区块102被添加到账本204时,区块链节点可以经由通信路径206通信或同步此新区块102。
图3示出了根据本发明一个实施例的多区块链系统300的示意图。多区块链系统300可以包括多个子区块链系统和公证区块链系统,例如图3所示出的第一区块链系统310、第二区块链系统320和公证区块链系统330。
子区块链系统可以包括对应于该子区块链系统的客户端设备和区块链节点。子区块链系统中的区块链节点存储有该子区块链系统维护的区块链,客户端设备则可以存储该子区块系统维护的区块链、或者其一部分(例如区块链的区块头)。此外,子区块链系统中的区块链节点还可以存储公证区块链系统维护的公证区块链的一部分(例如区块头)。
每个子区块链系统中的区块链节点可以经由彼此之间的通信路径来进行通信,例如数据同步。每个子区块链系统中的客户端设备可以通过网络与该区块链系统中的区块链节点进行通信。例如,客户端设备可以生成交易事务,并发送给对应的区块链节点。又例如,区块链节点可以将新的区块或者其区块头发送给对应的客户端设备。
公证区块链系统可以包括公证节点。公证节点存储有公证区块链系统维护的公证区块链,该公证区块链至少可以包括多区块链系统300内各个子区块链系统维护的区块链的数据。在根据本发明的一个实施方式中,公证节点可以多个子区块链系统中的区块链节点共同投票产生。
公证节点可以经由彼此之间的通信路径来进行通信。公证节点还可以通过网络与各个子区块链系统中的区块链节点进行通信。
如图3所示,第一区块链系统310包括对应于第一区块链系统310的第一客户端设备311和第一区块链节点312。第二区块链系统320包括对应于第一区块链系统320的第二客户端设备321和第二区块链节点322。公证区块链系统330可以包括公证节点331。
公证节点331可以由第一区块链节点312和第二区块链节点322共同投票产生,并存储有公证区块链系统330维护的公证区块链332。公证区块链332至少可以包括第一区块链系统310维护的第一区块链313和第二区块链系统310维护的第二区块链323的数据。
第一区块链节点312存储有第一区块链系统310维护的第一区块链313,还可以存储公证区块链332的一部分。第一客户端设备311可以存储第一区块链313、或者第一区块链313的一部分。
类似地,第二区块链节点322存储有第二区块链系统320维护的第二区块链323,还可以存储公证区块链332的一部分。第二客户端设备321可以存储第二区块链323、或者第二区块链323的一部分。
其中,第一区块链节点312可以经由彼此之间的通信路径来进行通信。第一客户端设备311可以通过网络与第一区块链节点312进行通信。例如,第一区块链系统310的用户可以经由第一客户端设备311向第一区块链节点312发送交易事务,以与第一区块链系统310的其他用户进行交易。
第二区块链节点322可以经由彼此之间的通信路径来进行通信。第二客户端设备321可以通过网络与第二区块链节点322进行通信。例如,第二区块链系统320的用户可以经由第二客户端设备321向第二区块链节点322发送交易事务,以与第二区块链系统320 的其他用户进行交易。
公证节点331可以经由彼此之间的通信路径来进行通信。公证节点还可以通过网络与第一区块链节点312和第二区块链节点322进行通信。
应当指出,公证节点还可以被称为验证节点、仲裁节点、或者可信节点等等,本发明对节点的具体名称不做限制,任何起到类似作用但具有其他名称的节点均在本发明的保护范围之内。
根据本发明的实施方式,为了实现不同区块链间的跨链交易事务,第一区块链节点312可以包括跨链交易装置900,第二区块链节点322可以包括跨链交易装置1000,公证节点331可以包括跨链交易装置1100。
在根据本发明的实施方式中,上述多区块链系统300中的各部件(节点和设备等等)均可以通过如下所述的计算设备400来实现。
图4示出了根据本发明一个实施例的计算设备400的示意图。如图4所示,在基本的配置402中,计算设备400典型地包括系统存储器406和一个或者多个处理器404。存储器总线408可以用于在处理器404和系统存储器406之间的通信。
取决于期望的配置,处理器404可以是任何类型的处理器,包括但不限于:微处理器(μP)、微控制器(μC)、数字信息处理器(DSP)或者它们的任何组合。处理器404可以包括诸如一级高速缓存410和二级高速缓存412之类的一个或者多个级别的高速缓存、处理器核心414和寄存器416。示例的处理器核心414可以包括运算逻辑单元(ALU)、浮点数单元(FPU)、数字信号处理核心(DSP核心)或者它们的任何组合。示例的存储器控制器418可以与处理器404一起使用,或者在一些实现中,存储器控制器418可以是处理器404的一个内部部分。
取决于期望的配置,系统存储器406可以是任意类型的存储器,包括但不限于:易失性存储器(诸如RAM)、非易失性存储器(诸如ROM、闪存等)或者它们的任何组合。系统存储器406可以包括操作系统420、一个或者多个应用422以及程序数据424。在一些实施方式中,应用422可以布置为在操作系统上由一个或多个处理器404利用程序数据424执行指令。
计算设备400还可以包括有助于从各种接口设备(例如,输出设备442、外设接口444和通信设备446)到基本配置402经由总线/接口控制器430的通信的接口总线440。示例的输出设备442包括图像处理单元448和音频处理单元450。它们可以被配置为有助于经由一个或者多个A/V端口452与诸如显示器或者扬声器之类的各种外部设备进行 通信。示例外设接口444可以包括串行接口控制器454和并行接口控制器456,它们可以被配置为有助于经由一个或者多个I/O端口458和诸如输入设备(例如,键盘、鼠标、笔、语音输入设备、触摸输入设备)或者其他外设(例如打印机、扫描仪等)之类的外部设备进行通信。示例的通信设备446可以包括网络控制器460,其可以被布置为便于经由一个或者多个通信端口464与一个或者多个其他计算设备462通过网络通信链路的通信。
计算设备还可以包括储存设备432、以及与储存设备432相连接的储存接口总线434。所述储存设备432可以包括可移除储存器436和不可移除储存器438。所述储存接口总线434通过总线/接口控制器430与基本配置402、以及接口总线440相连接。
网络通信链路可以是通信介质的一个示例。通信介质通常可以体现为在诸如载波或者其他传输机制之类的调制数据信号中的计算机可读指令、数据结构、程序模块,并且可以包括任何信息递送介质。“调制数据信号”可以是这样的信号,它的数据集中的一个或者多个或者它的改变可以在信号中编码信息的方式进行。作为非限制性的示例,通信介质可以包括诸如有线网络或者专线网络之类的有线介质,以及诸如声音、射频(RF)、微波、红外(IR)或者其它无线介质在内的各种无线介质。这里使用的术语计算机可读介质可以包括存储介质和通信介质二者。
计算设备400可以实现为服务器,例如数据库服务器、应用程序服务器和WEB服务器等,也可以实现为包括桌面计算机和笔记本计算机配置的个人计算机。当然,计算设备400也可以实现为小尺寸便携(或者移动)电子设备的一部分。
在根据本发明的实施例中,计算设备400可以实现为跨链交易装置900/1000/1100,并被配置为执行根据本发明实施例的跨链交易方法500/600/700。其中,计算设备400的应用422中包含执行根据本发明实施例的跨链交易方法500/600/700的多条指令,而程序数据424还可以存储多区块链系统300的配置数据等内容。
图5示出了根据本发明一个实施例的跨链交易方法500的流程图。跨链交易方法500可以在第一区块链节点312包括的跨链交易装置900中执行。
如图5所示,跨链交易方法500始于步骤S510。在步骤S510中,第一区块链节点312接收跨链交易事务。该跨链交易事务由第一客户端设备311生成。在一些实施例中,该第一区块链节点312接收的跨链交易事务可以是由第一客户端设备311发送过来的,也可以是由其他第一区块链节点312广播过来的。
可以理解地,跨链交易事务为涉及至少两条区块链的交易事务。因此,一笔跨链交 易事务可以分解成分别与该跨链交易事务所涉及的各条区块链相关的多笔交易事务。
在本发明的实施方式中,第一客户端设备311生成的跨链交易事务可以包括与第一区块链313相关的第一交易事务和与第二区块链323相关的第二交易事务。其中,交易事务通常可以包括该交易事务的交易对象(例如可以包括付款方和收款方)、交易金额、交易所涉及的区块链标识等等,本发明对此不做限制。
例如,假设第一区块链系统310采用货币X,第二区块链系统320采用货币Y,货币X与货币Y之间的汇率为1:10。第一区块链系统310的用户Alice需要向第二区块链系统320的用户Bob转账10个单位的货币X,那么此时在Alice的第一客户端设备生成的跨链交易事务中,第一交易事务为在第一区块链系统310中Alice向Bob汇款10个单位的货币X,第二交易事务为在第二区块链系统320中Bob接受Alice所汇的100个单位的货币Y。
而后,在步骤S520中,第一区块链节点312将所接收的跨链交易事务发送至公证节点331,以便公证节点331对该跨链交易事务进行验证,并在验证通过后将该跨链交易事务中的第二交易事务发送至第二区块链节点322。
具体地,第一区块链节点312可以生成包括跨链交易事务的区块,将包括跨链交易事务的区块发送至公证节点331。
在一些实施例中,第一区块链节点312还可以将所接收的跨链交易事务广播至其他第一区块链节点312。
公证节点331接收包括跨链交易事务的区块之后,可以解析该区块,对该区块包含的数据进行验证,从而实现对跨链交易事务的验证。可以理解地,区块包含的数据即为一系列的交易事务。在各种实施例中,公证节点331可以对交易事务的合法性和/或有效性进行验证。例如,公证节点331可以验证交易事务是否具有合法的客户端设备签名和/或区块链节点签名,还可以验证交易事务中付款方是否具有足够资产来进行支付等等。本发明实施例对针对数据所进行的验证的具体内容不做限制。
在一些实施例中,如果交易事务具有合法的客户端设备签名和/或区块链节点签名,且交易事务中付款方具有足够资产来进行支付,则验证通过,否则验证不通过。
公证节点331在对上述包括跨链交易事务的区块包含的数据验证通过后,可以将该跨链交易事务中与第二区块链323相关的第二交易事务发送至第二区块链系统320中的第二区块链节点322。
第一区块链节点312将跨链交易事务发送至公证节点331之后,还可以在步骤S530 中,将第一交易事务发送至公证节点331,以便公证节点331对第一交易事务进行验证,并在验证通过后返回第一交易事务。
在一些实施例中,第一区块链节点312可以再次接收上述跨链交易事务中与第一区块链313相关的第一交易事务,并将再次接收到的该第一交易事务发送至公证节点331。其中,该第一交易事务可以是由生成跨链交易事务的第一客户端设备311直接发送过来的;也可以是由该第一客户端设备311发送给其他第一区块链节点312,其他第一区块链节点312广播过来的。需要注意的是,区别于前述步骤S510,此时第一区块链节点312接收到的仅是第一交易事务,不是跨链交易事务。
具体地,第一区块链节点312可以生成包括第一交易事务的区块,将包括第一交易事务的区块发送至公证节点331。
在一些实施例中,第一区块链节点312还可以将所接收的第一交易事务广播至其他第一区块链节点312。
公证节点331接收包括第一交易事务的区块之后,可以解析该区块,对该区块包含的数据进行验证,从而实现对第一交易事务的验证。其中,针对区块包含的数据进行验证的具体内容已在前文详细描述,此处不再赘述。
公证节点331在对上述包括第一交易事务的区块包含的数据验证通过后,可以将该包括第一交易事务的区块返回至第一区块链节点312。
第一区块链节点312在接收经公证节点331验证通过并返回的第一交易事务之后,可以在步骤S540中,将第一交易事务添加至第一区块链313。
具体地,第一区块链节点312可以接收经公证节点331验证通过并返回的、包括第一交易事务的区块,将该包括第一交易事务的区块广播至其他第一区块链节点312,以便进行共识。在第一区块链系统310内多个第一区块链节点312对该包括第一交易事务的区块达成共识的情况下,各第一区块链节点312可以将该包括第一交易事务的区块添加至各自存储的第一区块链313。本发明实施例可以采用各种共识机制来进行共识,例如工作量证明机制(Proof of Work-PoW)、权益证明机制(Proof of Stake-PoS)和拜占庭共识机制等等,本发明实施例对所采用的共识机制不做限制。
应当指出,根据本发明的实施方式,在第一区块链系统310中,第一区块链节点312将交易事务(跨链交易事务或者第一交易事务)发送给公证节点331时,可以选择一个公证节点331进行发送,也可以广播给多个公证节点331,本发明对此不做限制。其中,第一区块链节点312可以对其生成的区块进行签名,之后再将经第一区块链节点签名的 区块发送出去。另外,公证节点331也可以对其接收到的、通过验证的区块进行签名,之后再将经公证节点331签名的区块返回。
图6示出了根据本发明一个实施例的跨链交易方法600的流程图。跨链交易方法600可以在第二区块链节点322包括的跨链交易装置1000中执行。
如图6所示,跨链交易方法600始于步骤S610。在步骤S610中,第二区块链节点322可以接收跨链交易事务中与第二区块链323相关的第二交易事务。
如前文所描述地,该跨链交易事务由第一客户端设备311生成,并可以包括与第一区块链313相关的第一交易事务和与第二区块链323相关的第二交易事务。该跨链交易事务由第一区块链节点312(以区块的形式)发送至公证节点331,以便公证节点331对该跨链交易事务进行验证且验证通过后,将该跨链交易事务中与第二区块链323相关的第二交易事务发送至第二区块链节点322。
而后,在步骤S620中,第二区块链节点322将第二交易事务发送至公证节点331,以便公证节点331对第二交易事务进行验证,并在验证通过后返回该第二交易事务。
在一些实施例中,第二区块链节点322在步骤S610之后,可以先将接收到的第二交易事务发送至对应的第二客户端设备321。例如,可以将第二交易事务发送至收款方对应的第二客户端设备321。在前述Alice与Bob的示例中,也就是将第二交易事务发送至Bob的第二客户端设备。
第二客户端设备321接收第二交易事务,可以对该第二交易事务进行确认后,再将该第二交易事务发送至第二区块链节点322。
这样,第二区块链节点322可以再次接收该第二交易事务,并将再次接收到的第二交易事务发送至公证节点331。在一些实施例中,该第二交易事务可以是由第二客户端设备321直接发送过来的;也可以是由该第二客户端设备321发送给其他第二区块链节点322,其他第二区块链节点322广播过来的。
具体地,第二区块链节点322可以生成包括第二交易事务的区块,将该包括第二交易事务的区块发送至公证节点331。
在一些实施例中,第二区块链节点322还可以将第二交易事务广播至其他第二区块链节点322。
公证节点331接收包括第二交易事务的区块之后,可以解析该区块,对该区块包含的数据进行验证,从而实现对第二交易事务的验证。可以理解地,区块包含的数据即为一系列的交易事务。在各种实施例中,公证节点331可以对交易事务的合法性和/或有效 性进行验证。例如,公证节点331可以验证交易事务是否具有合法的客户端设备和/或区块链节点签名,还可以验证交易事务中付款方是否具有足够资产来进行支付等等。本发明实施例对针对数据所进行的验证的具体内容不做限制。
在一些实施例中,如果交易事务具有合法的客户端设备和/或区块链节点签名,且交易事务中付款方具有足够资产来进行支付,则验证通过,否则验证不通过。
公证节点331在对上述包括第二交易事务的区块包含的数据验证通过后,可以将该包括第二交易事务的区块返回至第二区块链节点322。
第二区块链节点322在接收经公证节点331验证通过并返回的第二交易事务之后,可以在步骤S630中,将第二交易事务添加至第二区块链323。
具体地,第二区块链节点322可以接收经公证节点331验证通过并返回的、包括第二交易事务的区块,将该包括第二交易事务的区块广播至其他第二区块链节点322,以便进行共识。在第二区块链系统320内多个第二区块链节点322对该包括第二交易事务的区块达成共识的情况下,各第二区块链节点322可以将该包括第二交易事务的区块添加至各自存储的第二区块链323。本发明实施例可以采用各种共识机制来进行共识,例如工作量证明机制(Proof of Work-PoW)、权益证明机制(Proof of Stake-PoS)和拜占庭共识机制等等,本发明实施例对所采用的共识机制不做限制。
应当指出,根据本发明的实施方式,在第二区块链系统320中,第二区块链节点322将交易事务发送给公证节点331时,可以选择一个公证节点331进行发送,也可以广播给多个公证节点331,本发明对此不做限制。其中,第二区块链节点322可以对其生成的区块进行签名,之后再将经第二区块链节点322签名的区块发送出去。另外,公证节点331也可以对其接收到的、通过验证的区块进行签名,之后再将经公证节点331签名的区块返回。
图7示出了根据本发明一个实施例的跨链交易方法700的流程图。跨链交易方法700可以在公证节点331包括的跨链交易装置1100中执行。
如图7所示,跨链交易方法700始于步骤S710。在步骤S710中,公证节点331可以接收第一区块链节点312发送的跨链交易事务。如前文所描述地,该跨链交易事务包括与第一区块链313相关的第一交易事务和与第二区块链323相关的第二交易事务。具体地,公证节点331可以接收由第一区块链节点312生成的包括跨链交易事务的区块。
而后,在步骤S720中,公证节点331可以对跨链交易事务进行验证,并在验证通过后将跨链交易事务中与第二区块链323相关的第二交易事务发送至第二区块链节点322。
具体地,公证节点331接收包括跨链交易事务的区块之后,可以解析该区块,对该区块包含的数据进行验证,从而实现对跨链交易事务的验证。可以理解地,区块包含的数据即为一系列的交易事务。在各种实施例中,公证节点331可以对交易事务的合法性和/或有效性进行验证。例如,公证节点331可以验证交易事务是否具有合法的客户端设备和/或区块链节点签名,还可以验证交易事务中付款方是否具有足够资产来进行支付等等。本发明实施例对针对数据所进行的验证的具体内容不做限制。
在一些实施例中,如果交易事务具有合法的客户端设备和/或区块链节点签名,且交易事务中付款方具有足够资产来进行支付,则验证通过,否则验证不通过。
其中,公证节点331还可以将包括跨链交易事务的区块广播至其他公证节点,以便其他公证节点同样对区块包含的数据进行验证。在一些实施例中,在超过预定比例的公证节点均对该区块包含的数据验证通过的情况下,公证节点331才可以将跨链交易事务中的第二交易事务发送至第二区块链节点322。其中,预定比例通常可以为3/2。
接着,在步骤S730中,公证节点331可以接收第二区块链节点发送的、跨链交易事务中与第二区块链323相关的第二交易事务。在一些实施例中,第二区块链节点322接收到公证节点331发送的第二交易事务之后,可以将第二交易事务发送给对应的第二客户端设备321。第二客户端设备321确认第二交易事务之后,再将第二交易事务发送至第二区块链节点322。于是第二区块链节点322接收第二交易事务,将其发送给公证节点331。
具体地,公证节点331可以接收第二区块链节点322生成的包括第二交易事务的区块。
而后,公证节点331可以在步骤S740中,对第二交易事务进行验证,并在验证通过后将第二交易事务返回至第二区块链节点322,以便第二区块链节点322将第二交易事务添加至第二区块链323。
具体地,公证节点331可以对包括第二交易事务的区块包含的数据进行验证,并在验证通过后将该区块返回至第二区块链节点322,以便第二区块链节点322将该区块添加至第二区块链323。
其中,公证节点331还可以将包括第二交易事务的区块广播至其他公证节点,以便其他公证节点同样对该区块包含的数据进行验证。在一些实施例中,在超过预定比例的公证节点均对该区块包含的数据验证通过的情况下,公证节点331才可以将该区块返回至第二区块链节点322。其中,预定比例通常可以为3/2。
相应地,公证节点331还可以在步骤S750中,接收第一区块链节点312发送的、跨链交易事务中与第一区块链313相关的第一交易事务。在一些实施例中,第一客户端设备311在发送跨链交易事务之后,可以将跨链交易事务中的第一交易事务再次发送至第一区块链节点312。于是第一区块链节点322接收第一交易事务,将其发送给公证节点331。
具体地,公证节点331可以接收第一区块链节点312生成的包括第一交易事务的区块。
而后,公证节点331可以在步骤S760中,对第一交易事务进行验证,并在验证通过后将第一交易事务返回至第一区块链节点312,以便第一区块链节点312将第一交易事务添加至第一区块链313。
具体地,公证节点331可以对包括第一交易事务的区块包含的数据进行验证,并在验证通过后将该区块返回至第一区块链节点312,以便第一区块链节点312将该区块添加至第一区块链313。
其中,公证节点331还可以将包括第一交易事务的区块广播至其他公证节点,以便其他公证节点同样对该区块包含的数据进行验证。在一些实施例中,在超过预定比例的公证节点均对该区块包含的数据验证通过的情况下,公证节点331才可以将该区块返回至第一区块链节点312。其中,预定比例通常可以为3/2。
此外,根据本发明的实施方式,对于接收到的、区块链节点(第一区块链节点和/或第二区块链节点)生成的区块,公证节点331还可以在步骤S770中,记录该区块包含的数据、发送该区块的节点数据和/或该区块所涉及的跨链数据,并在步骤S780中将所记录的数据添加至公证节点331存储的公证区块链332。其中,跨链数据可以指示该区块包含的跨链交易事务所涉及的多条区块链以及每条区块链上所涉及的节点。
具体地,公证节点331可以基于所记录的数据生成区块,并广播至其他公证节点,以便进行共识。在公证区块链系统330内多个公证节点331对该区块达成共识的情况下,各公证节点331可以将该区块添加至各自所存储的公证区块链332。
本发明实施例可以采用各种共识机制来进行共识,例如工作量证明机制(Proof of Work-PoW)、权益证明机制(Proof of Stake-PoS)和拜占庭共识机制等等,本发明实施例对所采用的共识机制不做限制。
应当指出,根据本发明的实施方式,在公证区块链系统330中,公证节点331可以对其接收到的、通过验证的区块进行签名。
综上所述,全文是以第一区块链系统及第一客户端设备、第一区块链节点作为跨链交易事务中的交易发起方,第二区块链系统及第二客户端设备、第二区块链节点作为跨链交易事务中的交易接收方来对根据本发明实施例的跨链交易方案进行描述。本领域技术人员应当理解,多区块链系统100中的任一子区块链系统及对应客户端设备和区块链节点都既可以是跨链交易事务中的交易发起方、也可以是跨链交易事务中的交易接收方。
也就是说,第一区块链系统及第一客户端设备和第一区块链节点、第二区块链系统及第二客户端设备和第二区块链节点均可以包括对方所包含的跨链交易装置,并执行对方所执行的跨链交易方法。
此外,本领域技术人员应当理解,客户端设备在发起跨链交易事务之前,还可以生成用于部署相应跨链智能合约的交易事务,并将该交易事务发送至对应区块链节点。对应区块链节点将该交易事务以区块的形式发送至公证节点。公证节点至少可以记录该区块的数据从而记录该交易事务,并基于所记录的数据生成公证区块链的包括该交易事务的区块。公证节点可以将包括该交易事务的区块添加至所存储的公证区块链中,从而完成了对该交易事务包含的跨链智能合约的部署。之后公证节点就可以调用所部署的相应跨链智能合约,来处理接收到的跨链交易事务。
图8示出了根据本发明一个实施例的跨链交易方法800的交互流程图。跨链交易方法800可以在多区块链系统300中执行。
如图8所示,跨链交易方法800始于步骤S810。在步骤S810中,第一客户端设备311生成跨链交易事务。接着,在步骤S820中,第一客户端设备311将跨链交易事务发送至第一区块链节点312。第一客户端设备311可以随机或按照某种策略选择一个或多个第一区块链节点312进行发送,本发明对此不做限制。
第一区块链节点312接收跨链交易事务,可以在步骤S830中,生成包括跨链交易事务的区块,并对该区块进行签名。接着,在步骤S840中,第一区块链节点312将经第一区块链节点312签名的包括跨链交易事务的区块发送至公证节点331。
公证节点331在步骤S850中,对包括跨链交易事务的区块进行验证,并在验证通过后对该区块进行签名。接着,在步骤S860中,在超过预定比例的公证节点均对该区块签名的情况下,公证节点331将跨链交易事务中与第二区块链323相关的第二交易事务发送至第二区块链节点322。公证节点331可以随机或按照某种策略选择一个或多个第二区块链节点322进行发送,本发明对此不做限制。
第二区块链节点322在步骤S870中,将第二交易事务发送至对应的第二客户端设备 321。第二客户端设备321接收并确认第二交易事务之后,可以在步骤S880中,将第二交易事务发送至第二区块链节点322。第二客户端设备321可以随机或按照某种策略选择一个或多个第二区块链节点322进行发送,本发明对此不做限制。
第二区块链节点322接收第二交易事务,并在步骤S890中,生成包括第二交易事务的区块,并对该区块进行签名。接着,在步骤S891中,第二区块链节点322将经第二区块链节点322签名的包括第二交易事务的区块发送至公证节点331。第二区块链节点322可以随机或按照某种策略选择一个或多个公证节点331进行发送,本发明对此不做限制。
公证节点331接收包括第二交易事务的区块,可以在步骤S892中,对包括第二交易事务的区块进行验证,并在验证通过后对该区块进行签名。接着,在步骤S893中,在超过预定比例的公证节点均对该区块签名的情况下,公证节点331将经公证节点331签名的包括第二交易事务的区块返回至第二区块链节点322。
第二区块链节点322接收公证节点331返回的包括第二交易事务的区块,在第二区块链系统320内多个第二区块链节点对该包括第二交易事务的区块达成共识的情况下,在步骤S894中,将该包括第二交易事务的区块添加至所存储的第二区块链323。
相应地,第一客户端设备311在步骤S820之后,还可以在步骤S821中,将跨链交易事务中与第一区块链313相关的第一交易事务再次发送至第一区块链节点312。第一客户端设备311可以随机或按照某种策略选择一个或多个第一区块链节点312进行发送,本发明对此不做限制。
第一区块链节点312接收第一交易事务,接着可以在步骤S822中,生成包括第一交易事务的区块,并对该区块进行签名。接着,在步骤S823中,第一区块链节点312将经第一区块链节点312签名的包括第一交易事务的区块发送至公证节点331。第一区块链节点312可以随机或按照某种策略选择一个或多个公证节点331进行发送,本发明对此不做限制。
公证节点331接收包括第一交易事务的区块,接着可以在步骤S824中,对包括第一交易事务的区块进行验证,并在验证通过后对该区块进行签名。接着,在步骤S825中,在超过预定比例的公证节点均对该区块签名的情况下,公证节点331将经公证节点331签名的包括第一交易事务的区块返回至第一区块链节点312。
第一区块链节点312接收公证节点331返回的包括第一交易事务的区块之后,可以在第一区块链系统310内多个第一区块链节点对该包括第一交易事务的区块达成共识的情况下,在步骤S826中,将该包括第一交易事务的区块添加至所存储的第一区块链313。
此外,公证节点331在接收区块链节点发送的区块(例如,包括跨链交易事务的区块、或者包括第一交易事务的区块、或者包括第二交易事务的区块)之后,还可以在步骤S851中记录区块包含的数据、发送区块的节点数据和/或区块所涉及的跨链数据,基于所记录的数据生成区块。接着,在公证区块链系统330内多个公证节点对该区块达成共识的情况下,公证节点331在步骤S852中,将该区块添加至所存储的公证区块链332。
关于跨链交易方法800中各步骤的详细处理逻辑和实施过程可以参见前文结合图1-图7对跨链交易方法500~700的相关描述,此处不再赘述。
图9示出了根据本发明一个实施例的跨链交易装置900。跨链交易装置900可以驻留在第一区块链节点312中。如图9所示,跨链交易装置900可以包括存储模块910、通信模块920和处理模块930。
存储模块910适于存储第一区块链。通信模块920则适于接收跨链交易事务,跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务。通信模块920还适于将跨链交易事务发送至公证节点,以便公证节点对跨链交易事务进行验证,并在验证通过后将第二交易事务发送至第二区块链节点,第二区块链节点存储有所述第二区块链。通信模块920还适于将第一交易事务发送至公证节点,以便公证节点对第一交易事务进行验证,并在验证通过后返回第一交易事务。处理模块930与通信模块920和存储模块910相连接,适于将公证节点返回的第一交易事务添加至存储模块910所存储的第一区块链。
关于跨链交易装置900中各模块的详细处理逻辑和实施过程可以参见前文结合图1-图7对跨链交易方法500~700的相关描述,此处不再赘述。
图10示出了根据本发明一个实施例的跨链交易装置1000。跨链交易装置1000可以驻留在第二区块链节点322中。如图10所示,跨链交易装置1000可以包括存储模块1010、通信模块1020和处理模块1030。
存储模块1010适于存储第二区块链。通信模块1020适于接收跨链交易事务中与第二区块链相关的第二交易事务。跨链交易事务包括与第一区块链相关的第一交易事务和该第二交易事务,并由第一区块链节点发送至公证节点,所述第一区块链节点存储有所述第一区块链。通信模块1020还适于将第二交易事务发送至公证节点,以便公证节点对第二交易事务进行验证,并在验证通过后返回第二交易事务。
处理模块1030与存储模块1010和通信模块1020相连接,并适于在公证节点返回第二交易事务后,将第二交易事务添加至存储模块1010所存储的第二区块链。
关于跨链交易装置1000中各模块的详细处理逻辑和实施过程可以参见前文结合图1-图7对跨链交易方法500~700的相关描述,此处不再赘述。
图11示出了根据本发明一个实施例的跨链交易装置1100。跨链交易装置1100可以驻留在公证节点331中。如图11所示,跨链交易装置1100可以包括存储模块1110、通信模块1120和数据验证模块1130。
存储模块1110适于存储公证区块链。通信模块1120适于接收第一区块链节点发送的跨链交易事务,跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务,第一区块链节点存储有第一区块链。通信模块1120还适于接收第一区块链节点发送的第一交易事务和接收第二区块链节点发送的第二交易事务。
数据验证模块1130与存储模块1110和通信模块1120相连接,并适于对跨链交易事务进行验证,并在验证通过后经由通信模块1120将第二交易事务发送至第二区块链节点,第二区块链节点存储有第二区块链;还适于对第一交易事务进行验证,并在验证通过后将第一交易事务返回至第一区块链节点,以便第一区块链节点将第一交易事务添加至第一区块链;还适于对第二交易事务进行验证,并在验证通过后将第二交易事务返回至第二区块链节点,以便第二区块链节点将第二交易事务添加至第二区块链。
跨链交易装置1100还可以包括处理模块1140,处理模块1140适于对接收到的区块链节点生成的区块,记录该区块包含的数据、发送该区块的节点数据和/或该区块所涉及的跨链数据,并基于所记录的数据生成公证区块链的区块。处理模块1140还适于在公证节点对该生成的区块达成共识的情况下,将该生成的区块添加至所存储的公证区块链332。
关于跨链交易装置1100中各模块的详细处理逻辑和实施过程可以参见前文结合图1-图7对跨链交易方法500~700的相关描述,此处不再赘述。
根据本发明实施例的跨链交易方案,在多个子区块链系统外增设有记录有全部子区块链数据的公证链区块链系统。由子区块链系统的区块链节点进行交易事务的收集、区块的生成及后期通过验证的区块的共识,由公证链系统的公证节点进行区块的合法性和/或有效性验证。这样,保证了多区块链系统中数据、事务的原子性,也充分发挥了区块链节点和公证节点的作用,能让这两种节点互相监督、互相约束,从而降低多区块链系统的中心化程度。
其中,根据本发明实施例的跨链交易方案,跨链智能合约部署于公证节点,由公证节点来管理,各子区块链系统不需维护跨链智能合约,极大地降低了管理操作的复杂度。
其中,根据本发明实施例的跨链交易方案,在维持了原有子区块链系统的管理自主性的同时,还易于部署(例如在多区块链系统中添加新的子区块链系统)及易于系统升级,提升了多区块链系统的灵活性。
其中,根据本发明实施例的跨链交易方案,各个子区块链系统的区块链节点仅存储各自维护的区块链和公证链的一部分,维持了原有系统使用者(交易发起方和交易接受方)对网络带宽及存储空间的要求。同时,对子区块链系统来说,将交易事务的收集、区块的生成及后期通过验证的区块的共识等分离开,可以有效避免子区块链系统中可能存在的恶意节点的攻击。
与现有的中心化公证人方案和哈希锁方案相比,根据本发明实施例的跨链交易方案为主动式发起交易,无需等待第三方介入。并且,方案耗时较少,省去了中心化公证人方案中的初始化时间和哈希锁方案中猜解随机密码的步骤。本方案的执行最少时间仅为区块平均生成时间(Block Generation Time),即区块链中交易广播到确认的最小时限。此外,根据本发明实施例的跨链交易方案为全跨链模式,不仅做到了跨链交易事务的验证,而且做到了区块链间的资产转移。交易不再只是发生在各自的区块链内,而且在区块链间达成了共识。资产确实从一条区块链转移到另一条区块链,不仅仅是持有者的变化。
而现有的中心化公证人方案需要引入交易双方都能够共同信任的第三方充当公证人,一方面公证人节点的初始化相当耗时,另一方面该方案为被动交易,交易的达成(通过或被拒绝)依赖于公证人集合的签名。现有的哈希锁方案则依赖于随机密码的计算,而这一计算步骤同样相当耗时。同时,以上两种方案均为半跨链模式,尽管做到了跨链交易事务验证,但交易还是发生在各自的链内,并未做到真正的跨链交易。
此外,本领域技术人员应当理解,根据本发明实施例的方法不仅可以应用于前文所描述的区块链场景,还可以应用于诸如两个闭环系统之间的跨系统交易之类的非区块链场景。
以第一银行系统和第二银行系统之间的货币兑换为例,可以在两个银行系统之外架设公证系统。第一银行系统节点将跨系统交易发送给公证系统节点,可以理解地,跨系统交易应当包括与第一银行系统相关的第一交易事务和第二交易事务。公证系统节点对跨系统交易进行验证后将其中的第二交易事务发送给第二银行系统节点。
第一银行系统和第二银行系统再分别将各自相关的交易事务发送给公证系统节点,由公证系统节点进行验证后返回。第一银行系统和第二银行系统分别接收经公证系统节点验证后的交易事务,各自执行并记录该交易事务。
其中的详细处理逻辑和实施过程可以参见前文结合图1-图7对多区块链系统200以及跨链交易方法的相关描述,此处不再赘述。这里描述的各种技术可结合硬件或软件,或者它们的组合一起实现。从而,本发明实施例的方法和设备,或者本发明实施例的方法和设备的某些方面或部分可采取嵌入有形媒介,例如可移动硬盘、U盘、软盘、CD-ROM或者其它任意机器可读的存储介质中的程序代码(即指令)的形式,其中当程序被载入诸如计算机之类的机器,并被机器执行时,该机器变成实践本发明实施例的设备。
在程序代码在可编程计算机上执行的情况下,计算设备一般包括处理器、处理器可读的存储介质(包括易失性和非易失性存储器和/或存储元件),至少一个输入装置,和至少一个输出装置。其中,存储器被配置用于存储程序代码;处理器被配置用于根据该存储器中存储的程序代码中的指令,执行本发明实施例的方法。
以示例而非限制的方式,可读介质包括可读存储介质和通信介质。可读存储介质存储诸如计算机可读指令、数据结构、程序模块或其它数据等信息。通信介质一般以诸如载波或其它传输机制等已调制数据信号来体现计算机可读指令、数据结构、程序模块或其它数据,并且包括任何信息传递介质。以上的任一种的组合也包括在可读介质的范围之内。
在此处所提供的说明书中,算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与本发明实施例的示例一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明实施例也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明实施例的内容,并且上面对特定语言所做的描述是为了披露本发明实施例的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明实施例的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明实施例的示例性实施例的描述中,本发明实施例的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明实施例要求比在每个权利要求中所明确记载的特征更多特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明实施例的单独实施例。
本领域那些技术人员应当理解在本文所公开的示例中的设备的模块或单元或组件可以布置在如该实施例中所描述的设备中,或者可替换地可以定位在与该示例中的设备不同的一个或多个设备中。前述示例中的模块可以组合为一个模块或者此外可以分成多个子模块。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所描述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明实施例的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
此外,上述实施例中的一些在此被描述成可以由计算机系统的处理器或者由执行上述功能的其它装置实施的方法或方法元素的组合。因此,具有用于实施上述方法或方法元素的必要指令的处理器形成用于实施该方法或方法元素的装置。此外,装置实施例的在此所描述的元素是如下装置的例子:该装置用于实施由为了实施该发明的目的的元素所执行的功能。
如在此所使用的那样,除非另行规定,使用序数词“第一”、“第二”、“第三”等等来描述普通对象仅仅表示涉及类似对象的不同实例,并且并不意图暗示这样被描述的对象必须具有时间上、空间上、排序方面或者以任意其它方式的给定顺序。
尽管根据有限数量的实施例描述了本发明实施例,但是受益于上面的描述,本技术领域内的技术人员明白,在由此描述的本发明实施例的范围内,可以设想其它实施例。此外,应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明实施例的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明实施例的范围,对本发明实施例所做的公开是说明性的而非限制性 的,本发明实施例的范围由所附权利要求书限定。

Claims (30)

  1. 一种跨链交易方法,包括:
    第一区块链节点接收跨链交易事务,所述跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务,所述第一区块链节点存储有所述第一区块链;
    将所述跨链交易事务发送至公证节点,以便所述公证节点对所述跨链交易事务进行验证,并在验证通过后将所述第二交易事务发送至第二区块链节点,所述第二区块链节点存储有所述第二区块链;
    将所述第一交易事务发送至所述公证节点,以便所述公证节点对所述第一交易事务进行验证,并在验证通过后返回所述第一交易事务;以及
    将所述第一交易事务添加至所述第一区块链。
  2. 如权利要求1所述的方法,其中,将所述第一交易事务发送至所述公证节点的步骤包括:
    生成包括所述第一交易事务的区块,将所述区块发送至所述公证节点,以便所述公证节点对所述区块包含的数据进行验证,并在验证通过后返回所述区块。
  3. 如权利要求2所述的方法,其中,将所述第一交易事务添加至所述第一区块链的步骤包括:
    将所述公证节点返回的、包括所述第一交易事务的区块广播至其他第一区块链节点,以便进行共识;
    在第一区块链节点对所述区块达成共识的情况下,将所述区块添加至所述第一区块链。
  4. 如权利要求1所述的方法,其中,将所述跨链交易事务发送至公证节点的步骤包括:
    生成包括所述跨链交易事务的区块,将所述区块发送至所述公证节点,以便所述公证节点对所述区块包含的数据进行验证,并在验证通过后将所述第二交易事务发送至所述第二区块链节点。
  5. 如权利要求1所述的方法,其中,将所述第一交易事务发送至所述公证节点的步骤包括:
    再次接收所述第一交易事务;
    将再次接收到的所述第一交易事务发送至所述公证节点。
  6. 如权利要求2或4所述的方法,其中,所述第一区块链节点对生成的区块进行签名,所述公证节点在对所述第一区块链节点发送的区块进行验证且验证通过后,对所述区块进行签名。
  7. 如权利要求1所述的方法,其中,所述公证节点存储有公证区块链,所述公证区块链至少包括所述第一区块链的数据和所述第二区块链的数据,所述区块链节点还存储有所述公证区块链的一部分。
  8. 一种跨链交易方法,包括:
    第二区块链节点接收跨链交易事务中与第二区块链相关的第二交易事务,所述跨链交易事务包括与第一区块链相关的第一交易事务和所述第二交易事务,并由第一区块链节点发送至公证节点,以便所述公证节点将所述第二交易事务发送至所述第二区块链节点,所述第一区块链节点存储有所述第一区块链,所述第二区块链节点存储有所述第二区块链;
    将所述第二交易事务发送至所述公证节点,以便所述公证节点对所述第二交易事务进行验证,并在验证通过后返回所述第二交易事务;以及
    将所述第二交易事务添加至所述第二区块链。
  9. 如权利要求8所述的方法,其中,将所述第二交易事务发送至所述公证节点的步骤包括:
    生成包括所述第二交易事务的区块,将所述区块发送至所述公证节点,以便所述公证节点对所述区块包含的数据进行验证,并在验证通过后返回所述区块。
  10. 如权利要求9所述的方法,其中,将所述第二交易事务添加至所述第二区块链的步骤包括:
    将所述公证节点返回的、包括所述第二交易事务的区块广播至其他第二区块链节点,以便进行共识;
    在第二区块链节点对所述区块达成共识的情况下,将所述区块添加至所述第二区块链。
  11. 如权利要求8所述的方法,其中,将所述第二交易事务发送至所述公证节点的步骤包括:
    将所述第二交易事务发送至对应的第二客户端设备,以便所述第二客户端设备将所述第二交易事务发送至第二区块链节点;
    再次接收所述第二交易事务;
    将再次接收到的所述第二交易事务发送至所述公证节点。
  12. 如权利要求9所述的方法,其中,所述第二区块链节点对生成的区块进行签名,所述公证节点在对所述第二区块链节点发送的区块进行验证且验证通过后,对所述区块进行签名。
  13. 如权利要求8所述的方法,其中,所述公证节点存储有公证区块链,所述公证区块链至少包括所述第一区块链的数据和所述第二区块链的数据,所述区块链节点还存储有所述公证区块链的一部分。
  14. 一种跨链交易方法,包括:
    公证节点接收第一区块链节点发送的跨链交易事务,所述跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务,所述第一区块链节点存储有所述第一区块链;
    对所述跨链交易事务进行验证,并在验证通过后将所述第二交易事务发送至第二区块链节点,所述第二区块链节点存储有所述第二区块链;
    接收第一区块链节点发送的所述第一交易事务;
    对所述第一交易事务进行验证,并在验证通过后将所述第一交易事务返回至所述第一区块链节点,以便所述第一区块链节点将所述第一交易事务添加至所述第一区块链;
    接收第二区块链节点发送的所述第二交易事务;以及
    对所述第二交易事务进行验证,并在验证通过后将所述第二交易事务返回至所述第二区块链节点,以便所述第二区块链节点将所述第二交易事务添加至所述第二区块链。
  15. 如权利要求14所述的方法,其中,接收第一区块链节点发送的跨链交易事务的步骤包括:
    接收第一区块链节点生成的包括所述跨链交易事务的区块;
    对所述跨链交易事务进行验证的步骤包括:
    对所述区块包含的数据进行验证。
  16. 如权利要求15所述的方法,其中,在验证通过后将所述第二交易事务发送至第二区块链节点的步骤包括:
    将包括所述跨链交易事务的区块广播至其他公证节点,以便其他公证节点对所述区块包含的数据进行验证;
    在超过预定比例的公证节点均对所述区块包含的数据验证通过的情况下,将所述第二交易事务发送至第二区块链节点。
  17. 如权利要求14所述的方法,其中,接收第一区块链节点发送的所述第一交易事务的步骤包括:
    接收第一区块链节点生成的包括所述第一交易事务的区块;
    对所述第一交易事务进行验证,并在验证通过后将所述第一交易事务返回至所述第一区块链节点的步骤包括:
    对所述区块包含的数据进行验证,并在验证通过后将所述区块返回至所述第一区块链节点,以便所述第一区块链节点将所述区块添加至所述第一区块链。
  18. 如权利要求14所述的方法,其中,接收第二区块链节点发送的所述第二交易事务的步骤包括:
    接收第二区块链节点生成的包括所述第二交易事务的区块;
    对所述第二交易事务进行验证,并在验证通过后将所述第二交易事务返回至所述第二区块链节点的步骤包括:
    对所述区块包含的数据进行验证,并在验证通过后将所述区块返回至所述第二区块链节点,以便所述第二区块链节点将所述区块添加至所述第二区块链。
  19. 如权利要求17或18所述的方法,其中,对所述第一交易事务进行验证,并在验证通过后将所述第一交易事务返回至所述第一区块链节点的步骤、或者对所述第二交易事务进行验证,并在验证通过后将所述第二交易事务返回至所述第二区块链节点的步骤还包括:
    将所述区块广播至其他公证节点,以便其他公证节点对所述区块包含的数据进行验证;
    在超过预定比例的公证节点均对所述区块包含的数据验证通过的情况下,将所述区块返回至所述区块链节点。
  20. 如权利要求15-18中任一项所述的方法,其中,所述区块链节点对生成的区块进行签名,所述公证节点在对所述区块链节点发送的区块进行验证且验证通过后,对所述区块进行签名。
  21. 如权利要求14所述的方法,其中,还包括:
    对于接收到的、所述区块链节点生成的区块,所述公证节点记录所述区块包含的数据、发送所述区块的节点数据和/或所述区块所涉及的跨链数据;
    将所记录的数据添加至所述公证节点存储的公证区块链。
  22. 如权利要求21所述的方法,其中,将所记录的数据添加至所述公证节点存储的 公证区块链的步骤包括:
    基于所记录的数据生成区块,并广播至其他公证节点,以便进行共识;
    在公证节点对所述区块达成共识的情况下,将所述区块添加至所述公证区块链。
  23. 如权利要求14所述的方法,其中,所述区块链节点存储有所述公证区块链的一部分。
  24. 一种跨链交易装置,包括:
    存储模块,适于存储第一区块链;
    通信模块,适于接收跨链交易事务,所述跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务;还适于将所述跨链交易事务发送至公证节点,以便所述公证节点对所述跨链交易事务进行验证,并在验证通过后将所述第二交易事务发送至第二区块链节点,所述第二区块链节点存储有所述第二区块链;还适于将所述第一交易事务发送至所述公证节点,以便所述公证节点对所述第一交易事务进行验证,并在验证通过后返回所述第一交易事务;以及
    处理模块,适于将所述第一交易事务添加至所述第一区块链。
  25. 一种跨链交易装置,包括:
    存储模块,适于存储第二区块链;
    通信模块,适于接收跨链交易事务中与第二区块链相关的第二交易事务,所述跨链交易事务包括与第一区块链相关的第一交易事务和所述第二交易事务,并由第一区块链节点发送至公证节点,所述第一区块链节点存储有所述第一区块链;还适于将所述第二交易事务发送至所述公证节点,以便所述公证节点对所述第二交易事务进行验证,并在验证通过后返回所述第二交易事务;以及
    处理模块,适于在所述公证节点返回所述第二交易事务后,将所述第二交易事务添加至所述第二区块链。
  26. 一种跨链交易装置,包括:
    存储模块,适于存储公证区块链;
    通信模块,适于接收第一区块链节点发送的跨链交易事务,所述跨链交易事务包括与第一区块链相关的第一交易事务和与第二区块链相关的第二交易事务,所述第一区块链节点存储有所述第一区块链;还适于接收第一区块链节点发送的所述第一交易事务;还适于接收第二区块链节点发送的所述第二交易事务;以及
    数据验证模块,适于对所述跨链交易事务进行验证,并在验证通过后经由所述通信 模块将所述第二交易事务发送至第二区块链节点,所述第二区块链节点存储有所述第二区块链;还适于对所述第一交易事务进行验证,并在验证通过后将所述第一交易事务返回至所述第一区块链节点,以便所述第一区块链节点将所述第一交易事务添加至所述第一区块链;还适于对所述第二交易事务进行验证,并在验证通过后将所述第二交易事务返回至所述第二区块链节点,以便所述第二区块链节点将所述第二交易事务添加至所述第二区块链。
  27. 一种多区块链系统,包括:
    第一区块链系统,包括第一客户端设备和第一区块链节点,所述第一客户端设备存储有第一区块链或者其一部分,所述第一区块链节点存储有所述第一区块链,并包括如权利要求24所述的跨链交易装置;
    第二区块链系统,包括第二客户端设备和第二区块链节点,所述第二客户端设备存储有第二区块链或者其一部分,所述第二区块链节点存储有所述第二区块链,并包括如权利要求25所述的跨链交易装置;以及
    公证区块链系统,包括至少一个公证节点,所述公证节点存储有公证区块链,并包括如权利要求26所述的跨链交易装置,所述公证区块链至少包括所述第一区块链和所述第二区块链的数据,所述第一区块链节点和所述第二区块链节点还存储有所述公证区块链的一部分。
  28. 如权利要求27所述的系统,其中,所述公证节点至少由所述第一区块链节点和所述第二区块链节点投票产生。
  29. 一种计算设备,包括:
    一个或多个处理器;和
    存储器;
    一个或多个程序,其中所述一个或多个程序存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序包括用于执行根据权利要求1-23所述方法中的任一方法的指令。
  30. 一种存储一个或多个程序的计算机可读存储介质,所述一个或多个程序包括指令,所述指令当计算设备执行时,使得所述计算设备执行根据权利要求1-23所述方法中的任一方法。
PCT/CN2020/106981 2019-08-07 2020-08-05 跨链交易方法、装置、多区块链系统及计算设备 WO2021023200A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910726868.2 2019-08-07
CN201910726868.2A CN112348672B (zh) 2019-08-07 2019-08-07 跨链交易方法、装置、多区块链系统及计算设备

Publications (1)

Publication Number Publication Date
WO2021023200A1 true WO2021023200A1 (zh) 2021-02-11

Family

ID=74367258

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/106981 WO2021023200A1 (zh) 2019-08-07 2020-08-05 跨链交易方法、装置、多区块链系统及计算设备

Country Status (2)

Country Link
CN (1) CN112348672B (zh)
WO (1) WO2021023200A1 (zh)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113077257A (zh) * 2021-04-07 2021-07-06 许昌学院 一种基于数据分析的区块链跨链管理方法及系统
CN113434881A (zh) * 2021-06-29 2021-09-24 北京百度网讯科技有限公司 跨链交易的可信性验证方法、装置及电子设备
CN113468268A (zh) * 2021-06-29 2021-10-01 北京百度网讯科技有限公司 跨链处理方法、装置、电子设备及可读存储介质
CN113657900A (zh) * 2021-07-13 2021-11-16 中国人民银行数字货币研究所 一种跨链交易验证方法、系统以及跨链交易系统
CN113890739A (zh) * 2021-08-17 2022-01-04 北京邮电大学 跨区块链的认证方法、装置、电子设备及介质
CN114363050A (zh) * 2021-12-31 2022-04-15 北京交通大学 基于公证人和哈希锁定的去中心化跨链协议通信方法
CN114363335A (zh) * 2021-12-31 2022-04-15 支付宝(杭州)信息技术有限公司 跨链交互方法及装置
US20220164795A1 (en) * 2020-11-23 2022-05-26 Beijing University Of Posts And Telecommunications Cross-chain Communication Method, Device and Storage Medium thereof
WO2022195569A1 (en) * 2021-03-19 2022-09-22 R3 Ltd. Internetwork swapping of assets
CN115174693A (zh) * 2022-06-30 2022-10-11 国家信息中心 一种层级化的区块链跨链交互方法
US20230316398A1 (en) * 2020-10-06 2023-10-05 Datachain, Inc. Trading system

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194141B (zh) * 2021-04-29 2022-08-23 杭州链网科技有限公司 一种基于异构区块链的跨链网桥构建方法
CN115796861B (zh) * 2021-09-08 2024-01-30 区块链新科技(广州)有限公司 一种区块链上跨链交易方法、系统、设备及存储介质
CN116204110A (zh) * 2021-11-30 2023-06-02 腾讯科技(深圳)有限公司 基于区块链的区块处理方法、装置及设备、介质、产品
CN115049393B (zh) * 2022-06-22 2023-07-18 北京交通大学 半中心化公证人跨链方法、系统与装置
CN117931933A (zh) * 2022-10-14 2024-04-26 腾讯科技(深圳)有限公司 多区块链数据处理方法、装置、设备、系统以及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239940A (zh) * 2017-05-11 2017-10-10 北京博晨技术有限公司 基于区块链系统的网络交易方法及装置
US20170293912A1 (en) * 2016-04-12 2017-10-12 Digicash Pty Ltd. Secure transaction controller for value token exchange systems
CN107742210A (zh) * 2017-10-13 2018-02-27 布比(北京)网络技术有限公司 一种不同区块链间的跨链转账系统和方法
CN109325762A (zh) * 2018-08-30 2019-02-12 杭州复杂美科技有限公司 平行链跨链交易方法、设备和存储介质
CN110020860A (zh) * 2019-04-09 2019-07-16 湖南天河国云科技有限公司 一种跨链资产转移方法、系统及计算机可读存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107909369A (zh) * 2017-10-13 2018-04-13 布比(北京)网络技术有限公司 基于跨链交易的共识方法、装置和存储介质
CN109345387A (zh) * 2018-09-04 2019-02-15 湖南宸瀚信息科技有限责任公司 区块链跨链交易方法、跨链通信装置及存储介质
CN109685489B (zh) * 2018-12-28 2021-06-01 杭州云象网络技术有限公司 一种区块链之间的资产跨链交易方法
CN110009494B (zh) * 2019-03-18 2022-03-04 创新先进技术有限公司 一种监控区块链中的交易内容的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170293912A1 (en) * 2016-04-12 2017-10-12 Digicash Pty Ltd. Secure transaction controller for value token exchange systems
CN107239940A (zh) * 2017-05-11 2017-10-10 北京博晨技术有限公司 基于区块链系统的网络交易方法及装置
CN107742210A (zh) * 2017-10-13 2018-02-27 布比(北京)网络技术有限公司 一种不同区块链间的跨链转账系统和方法
CN109325762A (zh) * 2018-08-30 2019-02-12 杭州复杂美科技有限公司 平行链跨链交易方法、设备和存储介质
CN110020860A (zh) * 2019-04-09 2019-07-16 湖南天河国云科技有限公司 一种跨链资产转移方法、系统及计算机可读存储介质

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230316398A1 (en) * 2020-10-06 2023-10-05 Datachain, Inc. Trading system
US20220164795A1 (en) * 2020-11-23 2022-05-26 Beijing University Of Posts And Telecommunications Cross-chain Communication Method, Device and Storage Medium thereof
US11631080B2 (en) * 2020-11-23 2023-04-18 Beijing University Of Posts And Telecommunications Cross-chain communication method, device and storage medium thereof
WO2022195569A1 (en) * 2021-03-19 2022-09-22 R3 Ltd. Internetwork swapping of assets
CN113077257B (zh) * 2021-04-07 2023-06-20 许昌学院 一种基于数据分析的区块链跨链管理方法及系统
CN113077257A (zh) * 2021-04-07 2021-07-06 许昌学院 一种基于数据分析的区块链跨链管理方法及系统
CN113468268A (zh) * 2021-06-29 2021-10-01 北京百度网讯科技有限公司 跨链处理方法、装置、电子设备及可读存储介质
CN113434881A (zh) * 2021-06-29 2021-09-24 北京百度网讯科技有限公司 跨链交易的可信性验证方法、装置及电子设备
CN113434881B (zh) * 2021-06-29 2024-03-26 北京百度网讯科技有限公司 跨链交易的可信性验证方法、装置及电子设备
CN113657900A (zh) * 2021-07-13 2021-11-16 中国人民银行数字货币研究所 一种跨链交易验证方法、系统以及跨链交易系统
CN113657900B (zh) * 2021-07-13 2024-03-22 中国人民银行数字货币研究所 一种跨链交易验证方法、系统以及跨链交易系统
CN113890739A (zh) * 2021-08-17 2022-01-04 北京邮电大学 跨区块链的认证方法、装置、电子设备及介质
CN114363050A (zh) * 2021-12-31 2022-04-15 北京交通大学 基于公证人和哈希锁定的去中心化跨链协议通信方法
CN114363335A (zh) * 2021-12-31 2022-04-15 支付宝(杭州)信息技术有限公司 跨链交互方法及装置
CN114363335B (zh) * 2021-12-31 2024-03-15 支付宝(杭州)信息技术有限公司 跨链交互方法及装置
CN115174693A (zh) * 2022-06-30 2022-10-11 国家信息中心 一种层级化的区块链跨链交互方法
CN115174693B (zh) * 2022-06-30 2023-04-21 国家信息中心 一种层级化的区块链跨链交互方法

Also Published As

Publication number Publication date
CN112348672B (zh) 2023-08-08
CN112348672A (zh) 2021-02-09

Similar Documents

Publication Publication Date Title
WO2021023200A1 (zh) 跨链交易方法、装置、多区块链系统及计算设备
US11558177B2 (en) Block chain permission control method, device, and node apparatus
TWI713353B (zh) 區塊鏈節點間通訊方法、數位憑證管理方法、裝置和電子設備
US11329995B2 (en) Blockchain-based system, and electronic apparatus and method in the system
JP7461417B2 (ja) セキュアなオフチェーンのブロックチェーントランザクション
WO2020192743A1 (zh) 权限管理方法、权限验证方法和相关装置
JP7543288B2 (ja) ブロックチェーンネットワークを介した移転を実施するためのコンピュータで実施されるシステムおよび方法
US11038682B2 (en) Communication method, apparatus and system, electronic device, and computer readable storage medium
US20230316273A1 (en) Data processing method and apparatus, computer device, and storage medium
WO2018112940A1 (zh) 区块链节点的业务执行方法、装置及节点设备
JP2023036794A (ja) スクリプトに基づくブロックチェーン相互作用
WO2019137566A2 (en) Methods and devices for validating transaction in blockchain system
WO2017107976A1 (zh) 用于授权访问的客户端装置、服务器装置和访问控制系统
JP2022509933A (ja) 鍵管理を伴う高性能分散型記録システム
TW202101165A (zh) 解鎖方法、實現解鎖的設備及電腦可讀媒體
US11811945B2 (en) Blockchain identities
WO2022206446A1 (zh) 交易凭证的生成、验证及存储方法、装置、设备和系统
CN109428722A (zh) 一种内容发布方法及装置
CN113228075A (zh) 用于控制或强制执行在区块链上进行的转移的计算机实现的系统和方法
CN115967508A (zh) 数据访问控制方法及装置、设备、存储介质、程序产品
Zhang et al. Boros: Secure and efficient off-blockchain transactions via payment channel hub
Singh et al. IoT–Blockchain Integration-Based Applications Challenges and Opportunities
CN113300853B (zh) 金融征信信息管理方法、装置、电子设备及存储介质
US20230068597A1 (en) Cryptocurrency system and method for performing financial transactions
WO2024021785A1 (zh) 一种数字实体的处理方法、装置、设备、介质及程序产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20849906

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20849906

Country of ref document: EP

Kind code of ref document: A1