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

Block chain transaction data migration method and device

A technology of transaction data and blockchain, which is applied in the field of financial technology, can solve the problem that the number and order of transactions cannot be guaranteed, and achieve the effect of improving execution efficiency and throughput and shortening execution time

Pending Publication Date: 2020-12-08
WEBANK (CHINA)
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a method and device for blockchain transaction data migration, which is used to solve the problem in the prior art that due to the random nature of the period and sequence of the block packaging consensus algorithm, the specific block level cannot be guaranteed during replay. Issues with the number and sequence of transactions

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
  • Block chain transaction data migration method and device
  • Block chain transaction data migration method and device
  • Block chain transaction data migration method and device

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0076] In the client interface of the new chain, addresses of some system contracts are added and solidified; while in the client interface of the old chain, these addresses are randomly generated. In this case, it is necessary to replace the old address with the address of the system contract, and it is necessary to complete the work of translating the binary code.

[0077] still with image 3 Take the example of the deployment contract shown as an example, the original value of the dark part is 0x123, and the original meaning of this parameter represents the address of a certain business contract. Now, in the EVM of the new chain, the rules of the business state of the new system contract are defined. In all operations of deploying the contract, the address of 0x123 needs to be changed to the address of the system contract of 0x3.

[0078]At this time, it is necessary to first retrieve the binary code input by the client for transaction execution, and check whether there is...

example 2

[0080] The compiler version of the smart contract is upgraded in the new chain, and the binary code of the same smart contract in the old chain is different from the binary code generated by the compiler of the new chain.

[0081] In this scenario, it is necessary to obtain the codes of all smart contracts deployed on the old chain, and use the old chain’s smart contract compiler to compile the smart contracts to obtain the old chain’s smart contract binary code C1; then use the new chain’s smart The contract compiler compiles the smart contract to obtain the smart contract binary code C2 of the new chain; a mapping dictionary [C1, C2] is established between the two.

[0082] Next, it is necessary to retrieve the binary code of the transaction execution input obtained by the client, check whether there is a binary code containing the content of C1, and if it exists, replace the part of C1 with the part of C2. Finally, the replaced input binary code is used as the binary code t...

example 3

[0085] Different versions of blockchain node programs may have different rules for generating smart contract addresses. In the blockchain version, whether it is deploying a contract or calling a contract function, it will trigger the addition of the external account number. But in the new version, only deploying the contract will trigger the serial number increment. Since the generation rule of the contract address is the HASH value of information such as account address and serial number, different serial number increment rules will lead to different contract addresses after replay. For this reason, if it is detected that the execution is a blockchain migration operation, it is necessary to modify the increment rule of the serial number of the new version of the blockchain node to maintain forward compatibility.

[0086] The above are just three specific examples of input parameter changes, contract compilation structure changes, and smart contract address generation rules c...

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 block chain transaction data migration method and device, and the method comprises the steps that a client transmits a first migration instruction to a first block chain nodethrough a communication link, obtains the detailed information, transmitted by the first block chain node, of a block, converts a binary code inputted by transaction execution in the detailed information of the block, obtains a binary code input by the converted transaction execution, and sends detailed information of the block containing the binary code input by the converted transaction execution to a second block chain node. By converting the binary code input by transaction execution in the detailed information of the block sent by the block chain node of the emigration transaction data,the version information of the block chain node of the emigration transaction data can be met, so that the block chain node of the emigration transaction data can be ensured to call a smart contract,thus, the data orderliness is guaranteed, and meanwhile, due to the fact that only one block is migrated every time, the orderliness of the blocks can be guaranteed.

Description

technical field [0001] The present invention relates to the field of financial science and technology (Fintech), in particular to a method and a device for migrating transaction data of a block chain (Block Chain). Background technique [0002] With the development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually transforming into financial technology. However, due to the security and real-time requirements of the financial industry, higher requirements are also placed on technology. In blockchain technology in the financial field, transaction data migration is an important issue. [0003] Since the data storage between different blockchain software or versions is heterogeneous, if the data stored at the bottom of the blockchain node is directly copied, the blockchain program cannot correctly and effectively parse and process the bottom storage data. Assuming that the uplink interface ...

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
IPC IPC(8): G06F16/21G06Q40/04G06F16/23G06F16/27
CPCG06Q40/04G06F16/214G06F16/2365G06F16/27
Inventor 毛嘉宇范瑞彬张开翔张龙储雨知王越
Owner WEBANK (CHINA)