Data interaction method based on block chain on-chain and off-chain collaboration

A data interaction and blockchain technology, applied in the field of data interaction based on blockchain chain-off-chain collaboration, can solve problems such as unsuitable storage of large data, network congestion, slow data storage, etc., to ensure data security and completeness, interactive fast effect

Active Publication Date: 2020-01-10
NORTHEASTERN UNIV
View PDF9 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the blockchain itself has limitations and is not suitable for storing large-scale data: (1) each block in the blockchain is only a few MB in size, and storing large data requires building a large number of blocks, so storing data is slow; (2) Before data is written into the blockchain system, data verification needs to be carried out first. Excessive data volume may cause network congestion

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 interaction method based on block chain on-chain and off-chain collaboration
  • Data interaction method based on block chain on-chain and off-chain collaboration
  • Data interaction method based on block chain on-chain and off-chain collaboration

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] The data interaction method based on blockchain on-chain and off-chain collaboration of the present invention includes the following steps:

[0035] Step 1: Build as figure 1The blockchain chain-off-chain collaborative interaction framework shown includes the blockchain, the data center under the chain, and the verification network, and the verification network includes a verification node set S VN ={VN 1 ,VN 2 ,...,VN p ,...,VN P}, VN p is the pth verification node, P is the total number of verification nodes;

[0036] Step 2: When the user requests to write data, execute step 3; when the user requests to query data, execute step 4; when the user requests to update data, execute step 5;

[0037] Step 3: If figure 2 As shown, write on-chain-off-chain data:

[0038] Step 3.1: When user S U ={U 1 ,U 2 ,...,U i ,...,U I} Request to write raw data S data ={data 1 , data 2 ,...,data j ,...,data J}, the original data S data Write to the data center under t...

Embodiment 2

[0056] The difference between the second embodiment and the first embodiment above is that:

[0057] In the second embodiment, the user U 1 Request query data, will sign sig 1 Sent to the validator set S VN Each validator node in . Verification node set S VN Each verification node in starts from the end of the blockchain to query the data on the blockchain from the blockchain head. Each verification node queries the signature as sig 1 The data on the chain are all broadcast messages, when more than 15 / 2 verification nodes query the same data digest on the chain on When, from query to on-chain data digest on The validator node {...,VN 3 ,VN 4 ,VN 5 ,…} Randomly select a verification node as the master node, VN 3 Selected, the master node VN 3 The third message is broadcast, and other verification nodes stop the data query operation after receiving the third message. Master node VN 3 Query user U from the off-chain data center 1 The raw data, and then extract the d...

Embodiment 3

[0059] The difference between the third embodiment and the first embodiment above is that:

[0060] In the third embodiment, user S U ={U 1 ,U 2 ,...,U i ,...,U 10}Request to modify part of the data as S mdata ={mdata 1 ,mdata 2 ,...,mdata k ,...,mdata 5000}, after modifying the original data on the off-chain data center, notify the verification node set S VN Each validator node in . Verification node set S VN Each verification node in the data S from the data S through the hash function mdata Extract data summary from S mdig ={mdig 1 ,mdig 2 ,...,mdig k ,...,mdig 5000}, and use user U i signature sig i ∈ S sig ={sig 1 ,sig 2 ,...,sig i ,...,sig 10} to user U i Signature of the data digest. From the verification node {VN that first completes the data digest extraction operation 1 ,VN 5 ,VN 7} randomly selects a verification node as the master node, VN 5 Be selected, have the right to record the block, broadcast the fourth message, and other verific...

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 relates to the technical field of computer block chains, and provides a data interaction method based on block chain on-chain and off-chain coordination. The method comprises the following steps: firstly, constructing an on-chain and off-chain collaborative interaction framework; when a user requests to write / update data, writing / modifying original data in the off-chain data center,extracting a data abstract from the original data / to-be-modified data and signing, selecting a main node to construct a block and access a block chain, and then notifying other nodes to synchronize; when a user requests to inquire data, sending signatures to verification nodes, the verification nodes inquiring the on-chain data and broadcasting the data, when more than half of the verification nodes inquire the same data, selecting the main node, the main node inquiring the original data from the off-chain data center and extracting the data abstract, comparing the on-chain data and the off-chain data, if yes, returning the query permission of the user, and if not, informing the user that the data is damaged. According to the invention, the data security and integrity can be ensured, and the speed is high when large data interaction is carried out.

Description

technical field [0001] The invention relates to the technical field of computer block chains, in particular to a data interaction method based on on-chain-off-chain collaboration of block chains. Background technique [0002] A blockchain is a database in which the same global state is maintained by nodes that do not trust each other. Blockchain is different from ordinary databases and has its own characteristics. First of all, the blockchain uses a P2P network to store data, there is no centralized management organization, and all nodes have equal rights and obligations, so the blockchain has the characteristics of decentralization. Second, the blockchain adopts a consensus-based protocol (that is, a consensus mechanism). All nodes in the system can exchange data freely and safely without trust, avoiding human intervention, so the blockchain has the characteristics of no need for trust and endorsement. In addition, after information is added to the blockchain, it cannot b...

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/54G06F21/64G06F16/27G06F16/2458G06F16/23
CPCG06F9/542G06F21/64G06F16/27G06F16/2471G06F16/2343
Inventor 信俊昌姚钟铭郝琨王之琼范子嘉罗艺栖宋雨萌陈金义
Owner NORTHEASTERN UNIV
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