A blockchain smart contract construction method

A technology of smart contracts and construction methods, applied in the direction of creating/generating source code, data processing applications, program code conversion, etc., can solve problems such as the inability of contracts to be generalized, the difficulty of smart contract development, and the incomprehension of programming languages, etc., to improve development. method, reducing the difficulty of development, and reducing the effect of development requirements

Active Publication Date: 2020-07-10
陕西医链区块链集团有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

With the development of blockchain and smart contracts, the current blockchain smart contract development methods are different on different blockchains (Ethereum and EOS), resulting in the inability of the two contracts to be universal. When multi-language types are supported on the block chain, the programming language is difficult to understand and requires strong logical thinking ability, which increases the difficulty of smart contract development. How to reduce the difficulty of smart contract development is an urgent problem for relevant personnel

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
  • A blockchain smart contract construction method
  • A blockchain smart contract construction method
  • A blockchain smart contract construction method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0021] Such as figure 1 As shown, a block chain smart contract construction method disclosed by the present invention comprises the following steps:

[0022] (1) Decompose the smart contract into multiple action operations, and the action operations are not related to each other;

[0023] (2) Write each action operation using SQL-like syntax;

[0024] (3) The written action operation uses antlr technology to generate a standard AST tree. According to the characteristics of the blockchain language, the AST tree is translated into the function code of the corresponding language, and four arithmetic operations and function calls are performed on it;

[0025] (4) Build a smart contract development framework, and introduce the translated function code files into the smart contract development framework;

[0026] (5) According to the translated function code, the online compilation module of the smart contract development framework compiles and generates the corresponding smart co...

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 intelligent contract construction method, comprising the following steps: (1) the intelligent contract is decomposed into a plurality of action operations, and the action operations of the intelligent contract are not related to each other; (2) Write each action operation using SQL-like syntax; (3) Antlr technology is used to generate standard AST tree for theaction operation. The AST tree is translated into the function code of the corresponding block chain language, and the four arithmetic operations and function calls are carried out. (4) Build the framework of intelligent contract development, and introduce the translated function code file into the framework of intelligent contract development; (5) According to the translated function code, the corresponding intelligent contract is generated by on-line compiling module of intelligent contract development framework, and the construction of block chain intelligent contract is completed. The invention reduces the development difficulty of the block chain intelligent contract, and the area chain of different languages can be uniformly developed, thereby providing convenience for the intelligent contract developer.

Description

technical field [0001] The present invention relates to the field of blockchain smart contracts, in particular to a method for constructing blockchain smart contracts. Background technique [0002] A smart contract is based on and runs on a blockchain, and a smart contract is a computer protocol designed to disseminate, verify or execute contracts in an informational manner. Smart contracts allow for trusted transactions without third parties, which are traceable and irreversible. The purpose of its smart contracts is to provide a method of security superior to traditional contracts and reduce other transaction costs associated with contracts. [0003] Due to the advantages of higher efficiency in processing transactions, irreversible, secure transactions and fully automated processes, smart contracts have received extensive attention and rapid development in recent years. With the development of blockchain and smart contracts, the current blockchain smart contract develop...

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 Patents(China)
IPC IPC(8): G06F8/30G06Q40/04G06F8/41
CPCG06F8/30G06F8/41G06Q40/04
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