Cost Analysis of Smart Contracts via Parametric Resource Analysis
summary
Claims a reusable method that automatically infers safe parametric bounds for gas and storage and delivers concrete formulas by translating contracts to Horn clauses and solving recurrences. Implements a parametric resource analysis inside CiaoPP, compiles Michelson to CHCs via partial evaluation, attaches a Tezos gas model, and produces bounds like log(A)^2+2B for examples. Analyzer runs in reasonable time, handles Carthage and Delphi models, and updates to new Tezos protocols by changing cost assertions in hours.
AI-written summary · about
chapters (19)
- 0:00Cost Analysis of Smart Contracts via Parametric Resource Analysis
- 1:15Smart Contract platforms, Resources. ... and Static Analysis
- 2:26Challenges and the Parametric Resource Analysis approach
- 5:23Resource Usage Analysis - Some Characteristics and Challenges
- 6:51Parametricity in the Resource Analysis CLP OY, Bytecode 09 1. Programmer defines the resource consumption for basic elements
- 8:54Static Resource Analysis in CiaoPP (Example)
- 11:18Static Resource Analysis in CiaoPP - Overview (classical)
- 14:09PLAI (CiaoPP's Generic Al Framework) Generic framework given P (as a set of CHGS) and abstract domain(s).
- 16:26Resource Analysis within the Abstract Interp. Engine TPLP 14
- 17:44Supporting Different Languages & Compilation Levels
- 19:12Transformation example - binaries Xcore ISA Example
- 20:26Energy Usage Verification
- 21:31The Case Study: an Analyzer for Michelson Gas and Storage Applying the method and the CPP analysis tools to Tezos contracts
- 22:20The Michelson language
- 25:56Michelson to CHC IR Translation: Transformations
- 29:31The Tezos/Michelson Gas Model: Encoding
- 30:05Performing the Analysis
- 30:45A Simple Michelson Contract Example (arithmetic): Gas Analysis Results
- 32:59To conclude
related talks
18mAsparagus: Automated Synthesis of Parametric Gas Upper-Bounds for Smart Contrac...
29mCompositional Verification of Smart Contracts Through Communication Abstraction
29mSynthesis-Powered Optimization of Smart Contracts via Data Type Refactoring
15mCompositional Verification of Smart Contracts Through Communication Abstraction
25mCommSec D2 - Smart Contract (In)Security
51mA Deal with the Devil: Breaking Smart Contracts
21mPractical Verification Of Smart Contracts Using Memory Splitting
04mInterview
