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

Data synchronization method and system based on block chain, electronic equipment and storage medium

A technology of data synchronization and blockchain, applied in the field of blockchain, can solve problems such as inability to synchronize data, difficult blockchain data, query and analysis, and achieve the effect of facilitating query and analysis and improving efficiency

Pending Publication Date: 2022-06-21
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a blockchain-based data synchronization method and system, electronic equipment, and storage media to at least solve the problem of inability to synchronize the data in the on-chain database with the data in the off-chain database in related technologies, resulting in Technical issues that are difficult to query and analyze blockchain data

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
  • Data synchronization method and system based on block chain, electronic equipment and storage medium
  • Data synchronization method and system based on block chain, electronic equipment and storage medium
  • Data synchronization method and system based on block chain, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] According to an embodiment of the present invention, an embodiment of a blockchain-based data synchronization method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.

[0037] figure 1 is a flowchart of an optional blockchain-based data synchronization method according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:

[0038] Step S101, in response to the transaction request initiated by the client, execute the transaction request through the smart contract, and endorse and sign the execution result, wherein the client and the off-chain database establish a network connection in advance.

[0039] In step S102, the tran...

Embodiment 2

[0063] image 3 is a schematic diagram of an optional blockchain-based data synchronization system according to an embodiment of the present invention, such as image 3 shown, including: client, blockchain node, event streaming device, wherein,

[0064] The client is used to receive the input transaction type and transaction parameters, assemble the transaction type and transaction parameters into a transaction request, and send the transaction request to the blockchain node indicated by the blockchain node ID based on the blockchain node ID , in which the client establishes a network connection with the off-chain database in advance.

[0065] The blockchain node is used to respond to the transaction request initiated by the client, execute the transaction request through the pre-deployed smart contract, endorse and sign the execution result, and write the transaction data generated during the execution of the transaction request into the on-chain database.

[0066] Optional...

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-based data synchronization method and system, electronic equipment and a storage medium, and relates to the technical field of block chains, and the synchronization method comprises the steps: responding to a transaction request initiated by a client, executing the transaction request through a smart contract, and carrying out the endorsement signature of an execution result, and writing transaction data generated in a transaction request execution process into the on-chain database, creating an event stream, writing the transaction data into the event stream, monitoring the transaction data in the event stream by the client, and writing the transaction data into the off-chain database after the client monitors the transaction data. According to the method and the device, the technical problem that the block chain data is difficult to query and analyze due to the fact that the data in the on-chain database and the data in the off-chain database cannot be synchronized in related technologies is solved.

Description

technical field [0001] The present invention relates to the technical field of blockchain, in particular, to a method and system for data synchronization based on blockchain, electronic equipment and storage medium. Background technique [0002] In related technologies, the on-chain database in the blockchain system is an important module for storing data on the chain. Business applications write business logic through smart contracts. After the data is processed by the contract, it is uploaded to the chain and stored in the on-chain database. Therefore, the blockchain The on-chain data stored in the on-chain database in the system is of great value. The existing blockchain system has no on-chain and off-chain coordination mechanism. The on-chain database generally uses KV (Key-Value) database, which cannot support SQL queries. To analyze and mine on-chain data, only high-level programming languages ​​can be used. Only processing programs can be written to access the data o...

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/27G06Q40/04
CPCG06F16/27G06Q40/04
Inventor 曾钊创程灿权刘朝伟钟亮
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA