Blockchain net type database comprising smart contract and work method

A smart contract and blockchain technology, applied in the database field, can solve problems such as accelerating the development speed of blockchain applications, and achieve the effect of ensuring data authenticity and accelerating development speed

Inactive Publication Date: 2017-08-29
曾建伟
View PDF2 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above-mentioned prior art, the technical problem to be solved by the present invention is to provide a block chain network database containing smart contracts, which provides a general core library of block chain systems, It can speed up the development of blockchain applications; it can realize multi-chain interaction, which can not only avoid the situation that some nodes cannot participate in the network due to the large ledger of single-chain mode, but also ensure the authenticity of data through the business logic dependencies between chains

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
  • Blockchain net type database comprising smart contract and work method
  • Blockchain net type database comprising smart contract and work method
  • Blockchain net type database comprising smart contract and work method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0024] Such as figure 1 As shown, a block chain network database containing smart contracts includes a smart contract module, a data packaging module, a block header calculation module, and a communication module in the library. The smart contract module is connected to the data packaging module, and the data The packaging module is respectively connected with the block header calculation module and the communication module in the library, and the smart contract module is also connected with the external non-chain application module;

[0025] The smart contract module is a user-defined module, and the user can perform custom constraints on the data, and the module will verify and process data according to the user-defined constraints;

[0026] The data packaging module organizes data in the form of a tree chain (usually Merkle Tree or Merkle P...

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 provides a blockchain net type database comprising a smart contract. The blockchain net type database comprises a smart contract module, a data packaging module, a block head calculating module and an in-database executing module, wherein the smart contract module is connected with the data packaging module, and the data packaging module is connected with the block head calculating module and the in-database executing module; the smart contract module is a user-defined mode and used for verifying and processing data according to user-defined constraint; the data package module organizes data in a tree chain mode; the in-database executing module adopts a PBFT algorithm to ensure consistency between a main node and backup modes. The invention further provides a working method of the blockchain net type database comprising the smart contract. The general core library of the blockchain system is provided, and the development speed of blockchain application can be accelerated; multi-chain interaction can be achieved, the condition that part of nodes cannot take part in a network as a single chain mode account book is too large can be avoided, and data authenticity can be ensured through service logic dependent relation between chains.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a block chain network database including smart contracts and a working method. Background technique [0002] Since Satoshi Nakamoto invented Bitcoin (Bitcoin), a peer-to-peer electronic cash system in 2008, Blockchain (BlockChain) technology has gradually entered people's field of vision. In addition to the Bitcoin system, Ethereum and Factom are the three most widely known systems that use blockchain technology. However, these three systems have their own advantages and disadvantages: both Bitcoin and Ethereum are single-chain systems; although the notary chain has a multi-chain prototype, it only has an inclusion relationship—the secondary data (sub-chain) is included in the primary data (main chain); among the three, only Ethereum uses smart contracts, which can automatically execute complex logic. The disadvantage of the single-chain system is that all data is stored in 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 曾建伟
Owner 曾建伟
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