Unlock instant, AI-driven research and patent intelligence for your innovation.

A cross-chain transaction method and device

A transaction method and transaction technology, applied in the blockchain field, can solve problems such as poor security

Active Publication Date: 2021-06-15
HUAWEI TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] This application provides a cross-chain transaction method, which is used to solve the problem of poor security caused by the implementation scheme in the prior art completely relying on the middleman

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A cross-chain transaction method and device
  • A cross-chain transaction method and device
  • A cross-chain transaction method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0137] based on figure 1 The system architecture shown, figure 2 A schematic flow diagram corresponding to a cross-chain transaction method provided by this application, such as figure 2 As shown, the method includes:

[0138] Step 201, the first client device generates a transaction request; the transaction request includes the transaction data of the first transaction, the transaction data of the associated transaction of the first transaction, and the transaction data of the second block chain where the associated transaction is located. logo;

[0139] Step 202, the first client device sends the transaction request to the first node; the first node maintains the first block chain; the transaction request is used to request to write the transaction data of the first transaction into the the first blockchain;

[0140] Step 203, the first node receives the transaction request sent by the first client device;

[0141] Step 204, the first node verifies the local validity ...

Embodiment 2

[0248] The present application will be described below in conjunction with a specific embodiment.

[0249] The scenario of this embodiment is: user A in blockchain 1 wants to pay user B in blockchain 2 with currency in blockchain 2. Among them, the currency type in blockchain 1 is Coin1, and the currency type in blockchain 2 is Coin2. User A finds user C who has assets in blockchain 1 and blockchain 2 as an intermediary. Before the transaction starts, the assets of each role are shown in Table 1.

[0250] Table 1: Assets of User A, User B, and User C before the transaction

[0251] user Blockchain 1 Blockchain 2 User A 300Coin1 NA (none) User B NA 10Coin2 User C 500Coin1 300Coin2

[0252] The basic information of blockchain 1 and blockchain 2 is shown in Table 2.

[0253] Table 2: Basic information of blockchain 1 and blockchain 2

[0254] internal currency current block number average block time Blockchain ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

This application discloses a cross-chain transaction method and device. The method includes: when the first node writes the first transaction into the first block chain, it needs to verify the local validity of the first transaction and the first associated validity of its associated transactions, so as to ensure that the first transaction is written accurately into the corresponding block chain, and after the first node writes the first transaction into the first block chain, it is necessary to verify the validity of the second association of the associated transaction before it can determine that the first transaction is associated successfully, effectively avoiding The problem that the assets of the user who initiated the first transaction were damaged due to the successful execution of the first transaction when the associated transaction was not accurately written. Whether a transaction with related transactions in this application is successfully executed depends on the verification result of its related transactions, rather than completely relying on the trust of the intermediary, so it has high security, and the two related transactions can be executed concurrently , making the entire transaction process complete in a short time.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to a cross-chain transaction method and device. Background technique [0002] In the blockchain (Blockchain) system, data is stored in blocks, and newly written data forms new blocks, which are added at the end of the current blockchain. While saving data, each block also saves a unique number corresponding to all recorded data in the previous block (often the hash value of all recorded data), thus forming a chain. Therefore, the blockchain system can be considered as a system in which computers on a distributed network that do not fully trust each other jointly maintain a set of traceable and non-tamperable chained data through consensus rules. [0003] A cross-chain transaction between blockchains means that user A uses his assets in blockchain 1 to pay user B in blockchain 2 for assets in blockchain 2. The implementation scheme in the existing technology is: user A...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06Q20/40G06Q20/38G06Q40/04
CPCG06Q20/382G06Q20/401G06Q40/04G06Q20/38G06Q20/40
Inventor 丁海洋谢军安胡瑞丰蒋飞虎姜耀国
Owner HUAWEI TECH CO LTD