CN112540969A - Data migration method for intelligent contracts among heterogeneous block chains - Google Patents

Data migration method for intelligent contracts among heterogeneous block chains Download PDF

Info

Publication number
CN112540969A
CN112540969A CN202011354527.6A CN202011354527A CN112540969A CN 112540969 A CN112540969 A CN 112540969A CN 202011354527 A CN202011354527 A CN 202011354527A CN 112540969 A CN112540969 A CN 112540969A
Authority
CN
China
Prior art keywords
data
block chain
contract
migrator
heterogeneous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011354527.6A
Other languages
Chinese (zh)
Other versions
CN112540969B (en
Inventor
吴啸
张舒艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Pure White Matrix Technology Co ltd
Original Assignee
Nanjing Pure White Matrix Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Pure White Matrix Technology Co ltd filed Critical Nanjing Pure White Matrix Technology Co ltd
Priority to CN202011354527.6A priority Critical patent/CN112540969B/en
Publication of CN112540969A publication Critical patent/CN112540969A/en
Application granted granted Critical
Publication of CN112540969B publication Critical patent/CN112540969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a data migration method of an intelligent contract between heterogeneous block chains, and relates to the field of heterogeneous block chains. The data migration method based on the intelligent contracts among the heterogeneous block chains is characterized in that each heterogeneous block chain migrates data of the intelligent contracts through a conversion engine, and the stability and the accuracy of migration are ensured, and the method comprises the following specific steps: s1, formulating a data mapping rule, namely formulating a data mapping rule from a source block chain to an SD intermediate language and then to a target block chain, and importing the data mapping rule into a conversion engine; and S2, registering a migrator account in the source block chain, and upgrading the source block chain contract. The method maps data of a source block chain to a target block chain; meanwhile, the source data owner ID is stored to the target block chain through the data storage contract, so that the ID invalidation can be effectively prevented, a stable normal form is provided for data migration of the heterogeneous block chain, and the problem that the heterogeneous block chain contract data cannot be effectively migrated is solved.

Description

Data migration method for intelligent contracts among heterogeneous block chains
Technical Field
The invention relates to the technical field of heterogeneous block chains, in particular to a data migration method of an intelligent contract between heterogeneous block chains.
Background
Blockchains are a completely new distributed infrastructure and computing paradigm for verifying and storing data using blockchain data structures, generating and updating data using distributed node consensus algorithms, securing data transmission and access control using cryptographic techniques, programming and manipulating data using intelligent contracts composed of automated script codes. Currently, blockchains are referred to by many large organizations as a significant breakthrough technique for drastically changing the business and even the operational modes of the organizations. In the fields of finance, internet of things, public welfare charity, medical health, supply chain and the like, more and more enterprise institutions begin to explore the application prospect of a block chain in the industry and plan a data circulation route map based on the block chain technology; in the face of opportunities and challenges brought by a block chain technology, all industries around the world are actively distributed, and an attempt is made to change the original business and management mode through the combined innovation technology to construct a novel ecosystem with multi-party participation and safe trust.
Smart contracts (english: Smart contracts) are a computer protocol intended to propagate, verify or execute contracts in an informative way. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible. The intelligent contract concept was first introduced by Nick Szabo in 1995. The goal of smart contracts is to provide a secure method over traditional contracts and to reduce other transaction costs associated with the contracts. An "intelligent contract" is a set of numerically defined commitments (commitments) that include an agreement on which the contract participants can execute the commitments. "
When the applicant applies for the present invention, through search, it is found that a chinese patent discloses a "data migration method for a blockchain multi-level intelligent contract," whose application number is "CN 201710230002.3," which discloses a data migration method for a blockchain multi-level intelligent contract. The method comprises the following steps: 1) constructing a contract tree model for a contract system with a plurality of contracts mutually invoked; 2) migrating data of the top-level contract except the contract address of the child node; 3) judging whether the node where the current contract is located is a leaf node; 4) deploying a new contract of the leaf node, migrating the data of the contract, and storing the contract address of the leaf node; 5) after the data migration of all the sub-node contracts is finished, deploying new contract migration contract data and storing new addresses of all the sub-node contracts; 6) repeating the steps 3) to 5), and migrating the contract address parameters of all the sub-contracts of the top-level contract. The invention solves the problem that the contract address as a parameter cannot be updated when complex intelligent contract data on the block chain is migrated, and realizes the data migration facing the block chain multi-level intelligent contract, but the data is invalid in the data migration process.
The existing data migration stability price of the block chain is poor, and the problem that the ID is invalid frequently occurs in the heterogeneous block migration process, so that a data migration method of an intelligent contract between heterogeneous block chains is provided.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a data migration method of an intelligent contract between heterogeneous block chains, which solves the problems of poor stability and price of data migration of the existing block chains and invalid IDs frequently generated in the process of heterogeneous block migration.
(II) technical scheme
In order to achieve the purpose, the invention is realized by the following technical scheme:
a data migration method of intelligent contracts among heterogeneous blockchains is characterized in that each heterogeneous blockchain migrates data of the intelligent contracts through a conversion engine, and the stability and accuracy of migration are ensured, and the method comprises the following specific steps:
s1, formulating a data mapping rule, namely formulating a data mapping rule from a source block chain to an SD intermediate language and then to a target block chain, and importing the data mapping rule into a conversion engine;
s2, registering a migrator account in the source block chain, and upgrading a source block chain contract, namely setting all interfaces storing data to be open to the migrator;
s3, the migrator service accesses the data interface, converts the data into a data format of a target block chain according to the data mapping rule formulated in the step S1, and attaches a source data owner ID to each piece of data;
s4, registering a migrator account in the target block chain, constructing a data storage contract in the target block chain through mapping, and opening the authority of all the data storage contracts to the migrator;
and S5, storing the data with the data owner ID into the target block chain through a data storage contract.
Preferably, the data mapping rule is, for example: a mapping from int to number or from Char to String to charraray.
Preferably, the migrator is migration runner.
The working principle is as follows: the specific work comprises the following steps: s1, formulating a data mapping rule from a source block chain to an SD (software development kit) intermediate language and then to a target block chain, and importing the data mapping rule into a conversion engine; data mapping rules are e.g. (int-data type-to-number-value-to-number, Char [ ] -mapping of pointers to String-functions to charraray). And S2, registering a migrator (migration runner) account in the source block chain, upgrading the source block chain contract, and setting all interfaces storing data to be open to the migrator. S3. the migration runner service accesses the source data interface, converts the data into the data format of the target block chain according to the data mapping rule formulated in step S1, and attaches a source data owner ID to each piece of data. And S4, registering a migrator (migration runner) account in the target block chain, constructing a data storage contract in the target block chain through mapping, and opening the authority of all the data storage contracts to the migrator. And S5, storing the data with the data owner ID into the target block chain through a data storage contract. The method comprises the steps of carrying out data mapping on data of a source block chain to a target block chain through a conversion engine; meanwhile, the data owner ID of the source block chain is converted into the data format of the target block chain, so that the problem that the data of the target block chain is invalid can be effectively solved, a stable normal form is provided for data migration of the heterogeneous block chain, and the problem that the reduced data of the heterogeneous block chain cannot be effectively migrated is solved.
(III) advantageous effects
The invention provides a data migration method of an intelligent contract between heterogeneous block chains. The method has the following beneficial effects:
the invention provides a data migration method of an intelligent contract between heterogeneous block chains, which maps data of a source block chain to a target block chain by a conversion engine; meanwhile, the data owner ID of the source block chain is converted into the data format of the target block chain, so that the problem that the data of the target block chain is invalid can be effectively solved, a stable normal form is provided for data migration of the heterogeneous block chain, and the problem that the reduced data of the heterogeneous block chain cannot be effectively migrated is solved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example (b):
the embodiment of the invention provides a data migration method of an intelligent contract among heterogeneous block chains, which is characterized in that each heterogeneous block chain migrates data of the intelligent contract through a conversion engine, and the stability and the accuracy of migration are ensured, and the method comprises the following specific steps:
s1, formulating a data mapping rule, namely formulating a data mapping rule from a source block chain to an SD intermediate language and then to a target block chain, and importing the data mapping rule into a conversion engine;
s2, registering a migrator account in the source block chain, and upgrading a source block chain contract, namely setting all interfaces storing data to be open to the migrator;
s3, the migrator service accesses the data interface, converts the data into a data format of a target block chain according to the data mapping rule formulated in the step S1, and attaches a source data owner ID to each piece of data;
s4, registering a migrator account in the target block chain, constructing a data storage contract in the target block chain through mapping, and opening the authority of all the data storage contracts to the migrator;
and S5, storing the data with the data owner ID into the target block chain through a data storage contract.
Data is mapped to rules, such as: a mapping from int to number or from Char to String to charraray.
The migrator is migration runner.
The method comprises the steps of carrying out data mapping on data of a source block chain to a target block chain through a conversion engine; meanwhile, the data owner ID of the source block chain is converted into the data format of the target block chain, so that the problem that the data of the target block chain is invalid can be effectively solved, a stable normal form is provided for data migration of the heterogeneous block chain, and the problem that the reduced data of the heterogeneous block chain cannot be effectively migrated is solved.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (3)

1. A data migration method of intelligent contracts among heterogeneous block chains is characterized in that: the method is characterized in that each heterogeneous block chain transfers data of an intelligent contract through a conversion engine, and the stability and the accuracy of the transfer are ensured, and the method comprises the following specific steps:
s1, formulating a data mapping rule, namely formulating the data mapping rule from a source block chain to an SD intermediate language and then to a target block chain, and importing the data mapping rule into a conversion engine;
s2, registering a migrator account in the source block chain, and upgrading a source block chain contract, namely setting all interfaces storing data to be open to the migrator;
s3, the migrator service accesses the data interface, converts the data into a data format of a target block chain according to the data mapping rule formulated in the step S1, and attaches a source data owner ID to each piece of data;
s4, registering a migrator account in the target block chain, constructing a data storage contract in the target block chain through mapping, and opening the authority of all the data storage contracts to the migrator;
and S5, storing the data with the data owner ID mapped by the conversion engine into the target block chain through a data storage contract.
2. The method of claim 1, wherein the method comprises: the data mapping rule is, for example: a mapping from int to number or from Char to String to charraray.
3. The method of claim 1, wherein the method comprises: the migrator is migration runner.
CN202011354527.6A 2020-11-26 2020-11-26 Data migration method of intelligent contracts among heterogeneous block chains Active CN112540969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011354527.6A CN112540969B (en) 2020-11-26 2020-11-26 Data migration method of intelligent contracts among heterogeneous block chains

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011354527.6A CN112540969B (en) 2020-11-26 2020-11-26 Data migration method of intelligent contracts among heterogeneous block chains

Publications (2)

Publication Number Publication Date
CN112540969A true CN112540969A (en) 2021-03-23
CN112540969B CN112540969B (en) 2023-07-14

Family

ID=75016876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011354527.6A Active CN112540969B (en) 2020-11-26 2020-11-26 Data migration method of intelligent contracts among heterogeneous block chains

Country Status (1)

Country Link
CN (1) CN112540969B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023185044A1 (en) * 2022-03-31 2023-10-05 蚂蚁区块链科技(上海)有限公司 Data processing method and apparatus, and electronic device and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070299975A1 (en) * 2006-05-16 2007-12-27 Klaus Daschakowsky Systems and methods for migrating data
US20140012814A1 (en) * 2012-07-06 2014-01-09 Box, Inc. System and method for performing shard migration to support functions of a cloud-based service
CN106171035A (en) * 2014-12-31 2016-11-30 华为技术有限公司 A kind of method of state transition, Apparatus and system
CN107577427A (en) * 2017-08-31 2018-01-12 上海保险交易所股份有限公司 For the data migration method of block catenary system, equipment and storage medium
CN108829350A (en) * 2018-05-31 2018-11-16 阿里巴巴集团控股有限公司 Data migration method and device based on block chain
CN109669709A (en) * 2018-11-26 2019-04-23 杭州秘猿科技有限公司 A kind of data migration method and data mover system of the upgrading of block chain
CN110334154A (en) * 2019-06-28 2019-10-15 阿里巴巴集团控股有限公司 Based on the classification storage method and device of block chain, electronic equipment
CN110532323A (en) * 2019-09-02 2019-12-03 腾讯科技(深圳)有限公司 Pupilage information processing method, device, electronic equipment and storage medium in block chain network
CN110659259A (en) * 2019-09-03 2020-01-07 平安科技(深圳)有限公司 Database migration method, server and computer storage medium
CN110992029A (en) * 2019-12-02 2020-04-10 中国科学院计算技术研究所 Block chain management system and method
CN111309711A (en) * 2020-03-13 2020-06-19 财付通支付科技有限公司 Cross-block-chain data migration method, device, equipment and storage medium
CN111984631A (en) * 2020-09-02 2020-11-24 深圳壹账通智能科技有限公司 Production data migration method and device, computer equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070299975A1 (en) * 2006-05-16 2007-12-27 Klaus Daschakowsky Systems and methods for migrating data
US20140012814A1 (en) * 2012-07-06 2014-01-09 Box, Inc. System and method for performing shard migration to support functions of a cloud-based service
CN106171035A (en) * 2014-12-31 2016-11-30 华为技术有限公司 A kind of method of state transition, Apparatus and system
CN107577427A (en) * 2017-08-31 2018-01-12 上海保险交易所股份有限公司 For the data migration method of block catenary system, equipment and storage medium
CN108829350A (en) * 2018-05-31 2018-11-16 阿里巴巴集团控股有限公司 Data migration method and device based on block chain
CN109669709A (en) * 2018-11-26 2019-04-23 杭州秘猿科技有限公司 A kind of data migration method and data mover system of the upgrading of block chain
CN110334154A (en) * 2019-06-28 2019-10-15 阿里巴巴集团控股有限公司 Based on the classification storage method and device of block chain, electronic equipment
CN110532323A (en) * 2019-09-02 2019-12-03 腾讯科技(深圳)有限公司 Pupilage information processing method, device, electronic equipment and storage medium in block chain network
CN110659259A (en) * 2019-09-03 2020-01-07 平安科技(深圳)有限公司 Database migration method, server and computer storage medium
CN110992029A (en) * 2019-12-02 2020-04-10 中国科学院计算技术研究所 Block chain management system and method
CN111309711A (en) * 2020-03-13 2020-06-19 财付通支付科技有限公司 Cross-block-chain data migration method, device, equipment and storage medium
CN111984631A (en) * 2020-09-02 2020-11-24 深圳壹账通智能科技有限公司 Production data migration method and device, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
AMALIA CAMPOS-DELGADO: "Counter-mapping migration: irregular migrants’ stories through cognitive mapping", 《MOBILITIES》, pages 488 - 504 *
孙善鹏 等: "基于区块链的持久标识符系统", 《计算机系统应用》, pages 90 - 97 *
赵贵菊: "PCEDM模型的数据迁移方案设计及实施", 《数字石油和化工》, pages 49 - 53 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023185044A1 (en) * 2022-03-31 2023-10-05 蚂蚁区块链科技(上海)有限公司 Data processing method and apparatus, and electronic device and storage medium

Also Published As

Publication number Publication date
CN112540969B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
US11983706B2 (en) Digital asset modeling
Zheng et al. bcBIM: A Blockchain‐Based Big Data Model for BIM Modification Audit and Provenance in Mobile Cloud
Zhang Interaction design research based on large data rule mining and blockchain communication technology
CN108446976B (en) A kind of common reserve fund transfer method, computer readable storage medium and terminal device
EP3933581B1 (en) Evm-based transaction processing method and apparatus, device, program and medium
CN103001945A (en) Diversified resource identifier safety access method
CN109151030A (en) A kind of Internet of Things object distributed interactive system, method
Xue et al. Optimizing ontology alignment through an interactive compact genetic algorithm
Xue et al. Using compact coevolutionary algorithm for matching biomedical ontologies
CN112540969B (en) Data migration method of intelligent contracts among heterogeneous block chains
Zhao et al. Token economy: A new form economy with decentralized mutual trust and collective governance
CN111144133A (en) Translation document keyword modification traceability system and method based on block chain
Jin et al. Intermediate data fault-tolerant method of cloud computing accounting service platform supporting cost-benefit analysis
Jia et al. Development model of enterprise green marketing based on cloud computing
Peng Blockchain equity system transaction method and system research based on machine learning and big data algorithm
US11978118B2 (en) Event management and validation platform using a recursive hierarchic blockchain
CN107678964B (en) Method for ensuring internal consistency of dynamic evolution of component
Lee et al. ICT development in North Korea: Changes and challenges
Li et al. The study of the spatial heterogeneity and structural evolution of the producer services trade network
Li et al. Assessment of industrial Internet platform application in manufacturing enterprises: System construction and industrial practice
Lei Knowledge transfer analysis and management of virtual enterprises based on structured cognitive computing
Ren et al. Fabric Smart Contract Read-After-Write Risk Detection Method Based on Key Methods and Call Chains
Fan [Retracted] International Logistics Management System Based on Cloud Computing Technology
Ma et al. Discussion on smart contract under blockchains technology
Shi Research on Decentralized Algorithm of Infrastructure Project Cost Management Aided by Big Data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant