Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A highly automated intelligent contract formal verification system and method

A formal verification and smart contract technology, applied in instruments, platform integrity maintenance, finance, etc., can solve problems such as high time cost, no unified model specification, and hidden dangers, so as to reduce the degree of dependence, shorten the verification cycle, and reduce time cost effect

Active Publication Date: 2018-12-11
成都链安科技有限公司
View PDF4 Cites 62 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 2. The existing technology mainly relies on manual verification, with heavy workload and low degree of automation. Therefore, the time cost is too high, and the correctness of the established model cannot be guaranteed. Once the requirements change, the previous work must be restarted, and the model is correct. depends on the programmer's modeling experience and technical level
[0006] 3. Poor readability, which is not conducive to the docking work between programmers
There is no unified standard for the models established by common formal verification methods, which are only related to the habits and qualities of programmers, and it is not convenient for code docking
[0007] 4. At present, most of the common verification methods are to verify reasonable input to obtain reasonable results, and often ignore the results of unreasonable input. This approach has great security risks
If unreasonable input can still get the result that conforms to the function specification, it means that there is a loophole in the smart contract code

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 highly automated intelligent contract formal verification system and method
  • A highly automated intelligent contract formal verification system and method
  • A highly automated intelligent contract formal verification system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0077] Such as figure 1 As shown, a highly automated smart contract formal verification system includes a formal verification rule model library, a smart contract compiler, a natural language interpreter, an automated modeling tool, a syntax tree parser, a theorem generator, and a theorem prover , smart contract vulnerability detection document generator, where,

[0078]The smart contract compiler is used to receive the block chain smart contract source code, compile the block chain smart contract source code to obtain source code and byte code, and then output the obtained source code and byte code to the automatic modeling tool for modeling ;

[0079] The natural language interpreter is used to receive the smart contract functional requirement description document, convert the smart contract functional requirement description document into a smart contract functional requirement specification document described in non-natural language, and transmit the smart contract functi...

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 highly automated intelligent contract formal verification system and method. The method includes the following steps: step 001, converting an intelligent contract function requirement description document into an intelligent contract function requirement specification document described in a non-natural language, wherein the content of intelligent contract function requirement specification document includes target contract function specification description and security attribute description; step 002, creating a formal validation rule model library; step 003, automatically modeling the contract source code and / or bytecode by an automated modeling tool; step 004, parsing the abstract syntax tree generated in step 003, and allocating memory addresses for constantsand variables in the code; step 005, performing formal proof. The invention is adapted to program codes written in a plurality of high-level programming languages and also adapted to a plurality of formal languages, and simultaneously provides two automatic modeling modes of source code modeling and bytecode modeling, so that modeling can be carried out according to different modeling requirements of users, and the verification efficiency is further improved.

Description

technical field [0001] The invention relates to the security field of blockchain smart contracts and a formal verification method, in particular to a highly automated smart contract formal verification system and method. Background technique [0002] Blockchain is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. The technology of using a decentralized consensus mechanism to maintain a complete, distributed, and non-tamperable ledger database enables participants in the blockchain to implement a unified ledger system without establishing a trust relationship. A smart contract is a set of promises defined in digital form, including the agreement on which the parties to the contract can implement these promises. In the context of blockchain technology, smart contracts refer to program codes that run on the blockchain and can perform certain functions. The smart contra...

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): G06F21/57G06Q40/04
CPCG06F21/577G06F2221/033G06Q40/04
Inventor 杨霞
Owner 成都链安科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products