Multi-chain message table transaction processing method for cross-chain and cross-chain system

A transaction processing and transaction technology, applied in the blockchain cross-chain field, can solve problems such as difficulty in implementation, difficulty in landing, and single-point risk, and achieve the effects of improving efficiency, ensuring atomicity, and ensuring final consistency

Pending Publication Date: 2021-06-01
HANGZHOU YUNXIANG NETWORK TECH
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, among the current three cross-chain methods, hash locking is a cross-chain method specially used to transfer digital currency. The digital currency is locked on the chain through a blockchain account with a time limit. The corresponding tokens generated in the blockchain are generally applicable to cross-chains between two blockchains, and their versatility is poor
The witness mechanism transfers data in different blockchains through a centralized and credible witness, which requires the cross-chain blockchain network and relevant operators to fully trust the witness, which is likely to cause serious single-point risk problems
The relay chain mechanism relays and transfers data on different chains by building trusted relay nodes between chains, but its structure is extremely complex, the process is cumbersome, and the efficiency is extremely low, and it will introduce the organization of the relay chain Management issues, difficult to land
[0004] In short, there are currently various solutions for cross-chain implementation, but their implementation is extremely difficult
Whether it is hash locking, witness mechanism or relay chain mechanism, one of the essences that lead to the difficulty of its implementation is that transaction processing cannot be efficient and consistent in the process of realizing cross-chain

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
  • Multi-chain message table transaction processing method for cross-chain and cross-chain system
  • Multi-chain message table transaction processing method for cross-chain and cross-chain system

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment 1

[0058] figure 1 It shows an implementation form according to the present invention, and shows a flow chart of the multi-chain message table transaction processing method for cross-chain in the present invention, in the cross-chain network based on application chain, gateway and relay chain , the specific implementation process of the multi-chain message table transaction processing method includes:

[0059] Step1: Client A initiates a call and sends the call request to the application chain Atr;

[0060] Step2: the application chain Atr generates the total transaction Tr, and generates the total transaction identity information IDtr for the total transaction Tr, and sets the transaction execution status as pending (not completed); the steps of generating the total transaction Tr include:

[0061] S2.1: Client A calls the application contract to initiate a cross-chain call;

[0062] S2.2: Pre-freeze the asset data on the application contract;

[0063] S2.3: Cross-chain contr...

specific Embodiment 2

[0102] In order to simplify the present invention, when n=1, the present invention is a two-chain cross-chain network under a two-dimensional relay chain model, and the realization flow chart is as follows figure 2 As shown, the total transaction Tr is transaction 1, and the sub-transaction Tri, where i=1, is transaction 2, because the sub-transaction of the total transaction 1 has only sub-transaction 2, so the relay chain A updates the status of the total transaction 1 to success , which means that the entire transaction call is successful. Since it is basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the descriptions of the method embodiments.

specific Embodiment 3

[0104] This embodiment proposes a cross-chain system for multi-chain message table transaction processing, and its specific implementation composition is as follows figure 2 As shown, the specific composition includes:

[0105] Cross-chain call initiation module: used for client A to initiate a cross-chain call and send the call request to the application chain Atr;

[0106] Transaction identity information ID generation and processing module: used to generate transaction IDtr and its sub-transaction IDtri, i=1,2,...,n, n is a natural number;

[0107] Application chain data freezing and unfreezing module: used to freeze and unfreeze data for the application chain Atr internally; used for Abi to freeze its own data;

[0108] Transaction sending processing module: used for the application chain Atr to send the total transaction Tr to the gateway GAtr; used to send the sub-transaction Tri and its corresponding sub-state si and IDtri to the gateway Xi; used for the gateway Xi to...

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

The invention discloses a multi-chain message table transaction processing method for cross-chain and a cross-chain system.The method comprises the steps that a relay chain transaction contract is responsible for splitting a total transaction Tr into sub-transactions Tri, the state si of each sub-transaction is initialized, the relay chain transaction contract maintains a transaction table (a multi-chain message table), and the multi-chain message table is stored in the transaction table; when the application chain sub-transactions Tri are executed successfully, all gateways G can query the transaction state of the transaction table, rollback on the service is carried out in a timeout manner once the query fails, after the sub-transactions Tri of all the application chains are executed successfully, the sub-transaction states si on the corresponding relay chains are updated through the gateways, when all the sub-transactions are executed successfully finally, the total transaction succeeds, and as long as one sub-transaction fails, the total transaction fails. According to the multi-chain message table transaction processing method and the cross-chain system, the final consistency of cross-chain transactions is ensured through the built-in cross-chain transaction management contract.

Description

technical field [0001] The invention belongs to the field of block chain cross-chain technology, and in particular relates to a multi-chain message table transaction processing method for cross-chain and a cross-chain system. Background technique [0002] Different blockchain platforms often use different underlying architectures, data structures, network links and technical interfaces. Each blockchain platform has its own rich applications, data and users, but due to the differences in the underlying architecture, data structure, network links and technical interfaces, it is often difficult to implement applications, data and users on two different platforms. transfer. As a bridge between different platforms, cross-chain technology has played an extremely critical role. In order to enable the intercommunication of data on different platforms, it is necessary to solve the transaction processing problem of multi-chain intercommunication in the cross-chain process, so as to ...

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 Applications(China)
IPC IPC(8): G06F9/46G06F21/64H04L29/08
CPCG06F9/466G06F21/64H04L67/10
Inventor 黄步添吕逸彬刘成永罗春凤邵辉沈玮
Owner HANGZHOU YUNXIANG NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products