Cost analysis of smart contracts via parametric resource analysis

Pérez Carrasco, Víctor, Klemen, Maximiliano, López García, Pedro, Morales Caballero, José Francisco and Hermenegildo, Manuel V. ORCID: https://orcid.org/0000-0002-7583-323X (2020). Cost analysis of smart contracts via parametric resource analysis. En: "Static Analysis: 27th International Symposium, SAS 2020, Virtual Event, November 18–20, 2020, Proceedings". Lecture Notes in Computer Science (12389). Springer, Suiza, pp. 7-31. ISBN 978-3-030-65473-3.

Descripción

Título: Cost analysis of smart contracts via parametric resource analysis
Autor/es:
Tipo de Documento: Sección de Libro
Título del Libro: Static Analysis: 27th International Symposium, SAS 2020, Virtual Event, November 18–20, 2020, Proceedings
Fecha: 2020
ISBN: 978-3-030-65473-3
Nombre de la Serie: Lecture Notes in Computer Science
Número: 12389
Materias:
ODS:
Palabras Clave Informales: Blockchain, Smart contracts, Parametric Resource Analysis, Static analysis, Constraint horn clauses, Program transformation
Escuela: E.T.S. de Ingenieros Informáticos (UPM)
Departamento: Inteligencia Artificial
Licencias Creative Commons: Reconocimiento - Sin obra derivada - No comercial

Texto completo

[thumbnail of HERMENEGILDO_2020-03.pdf] PDF (Portable Document Format) - Se necesita un visor de ficheros PDF, como GSview, Xpdf o Adobe Acrobat Reader
Descargar (705kB)

Resumen

The very nature of smart contracts and blockchain platforms, where program execution and storage are replicated across a large number of nodes, makes resource consumption analysis highly relevant. This has led to the development of analyzers for specific platforms and languages. However, blockchain platforms present significant variability in languages and cost models, as well as over time. Approaches that facilitate the quick development and adaptation of cost analyses are thus potentially attractive in this context. We explore the application of a generic approach and tool for cost analysis to the problem of static inference of gas consumption bounds in smart contracts. The approach is based on Parametric Resource Analysis, a method that simplifies the implementation of analyzers for inferring safe bounds on different resources and with different resource consumption models. In addition, to support different input languages, the approach also makes use of translation into a Horn clause-based intermediate representation. To assess practicality we develop an analyzer for the Tezos platform and its Michelson language. We argue that this approach offers a rapid, flexible, and effective method for the development of cost analyses for smart contracts.

Proyectos asociados

Tipo
Código
Acrónimo
Responsable
Título
Gobierno de España
PID2019-108528RB-C21
Sin especificar
Fundación IMDEA Software
Sin especificar
Comunidad de Madrid
P2018/TCS-4339
BLOQUES-CM
Sin especificar
Contratos inteligentes y blockchains escalables y seguros mediante verificación y análisis

Más información

ID de Registro: 70117
Identificador DC: https://oa.upm.es/70117/
Identificador OAI: oai:oa.upm.es:70117
URL Oficial: https://link.springer.com/content/pdf/10.1007%2F97...
Depositado por: Biblioteca Facultad de Informatica
Depositado el: 17 Mar 2022 10:18
Ultima Modificación: 28 May 2025 11:36