Aviso: para depositar documentos, por favor, inicia sesión e identifícate con tu cuenta de correo institucional de la UCM con el botón MI CUENTA UCM. No emplees la opción AUTENTICACIÓN CON CONTRASEÑA
 

Super-optimization of Smart Contracts

dc.contributor.authorAlbert Albiol, Elvira María
dc.contributor.authorGordillo Alguacil, Pablo
dc.contributor.authorHernández-Cerezo, Alejandro
dc.contributor.authorRubio, Albert
dc.contributor.authorSchett, Maria A.
dc.date.accessioned2024-01-30T12:09:11Z
dc.date.available2024-01-30T12:09:11Z
dc.date.issued2022
dc.description.abstractSmart contracts are programs deployed on a blockchain. They are executed for a monetary fee paid in gas—a clear optimization target for smart contract compilers. Because smart contracts are a young, fast-moving field without (manually) fine-tuned compilers, they highly benefit from automated and adaptable approaches, especially as smart contracts are effectively immutable, and as such need a high level of assurance. This makes them an ideal domain for applying formal methods. Super-optimization is a technique to find the best translation of a block of instructions by trying all possible sequences of instructions that produce the same result. We present a framework for super-optimizing smart contracts based on Max-SMT with two main ingredients: (1) a stack functional specification extracted from the basic blocks of a smart contract, which is simplified using rules capturing the semantics of arithmetic, bit-wise, and relational operations, and (2) the synthesis of optimized blocks, which finds—by means of an efficient SMT encoding—basic blocks with minimal gas cost whose stack functional specification is equal (modulo commutativity) to the extracted one. We implemented our framework in the tool syrup 2.0. Through large-scale experiments on real-world smart contracts, we analyze performance improvements for different SMT encodings, as well as tradeoffs between quality of optimizations and required optimization time.
dc.description.departmentDepto. de Sistemas Informáticos y Computación
dc.description.facultyFac. de Informática
dc.description.refereedTRUE
dc.description.statuspub
dc.identifier.citationElvira Albert, Pablo Gordillo, Alejandro Hernández-Cerezo, Albert Rubio, and Maria A. Schett. 2022. Super-optimization of Smart Contracts. ACM Trans. Softw. Eng. Methodol. 31, 4, Article 70 (October 2022), 29 pages. https://doi.org/10.1145/3506800
dc.identifier.doi10.1145/3506800
dc.identifier.essn1557-7392
dc.identifier.issn1049-331X
dc.identifier.officialurlhttps://doi.org/10.1145/3506800
dc.identifier.urihttps://hdl.handle.net/20.500.14352/96462
dc.issue.number70
dc.journal.titleACM Transactions on Software Engineering and Methodology
dc.language.isoeng
dc.page.final29
dc.page.initial1
dc.publisherAssociation for Computing Machinery
dc.rightsAttribution-NonCommercial-NoDerivatives 4.0 Internationalen
dc.rights.accessRightsrestricted access
dc.rights.urihttp://creativecommons.org/licenses/by-nc-nd/4.0/
dc.subject.ucmInformática (Informática)
dc.subject.unesco1203.17 Informática
dc.titleSuper-optimization of Smart Contracts
dc.typejournal article
dc.type.hasVersionVoR
dc.volume.number31
dspace.entity.typePublication
relation.isAuthorOfPublication1b41e88a-837f-414a-af5d-9105b5c0e7c5
relation.isAuthorOfPublication5c47e6f8-de26-4311-b340-ac4b1b1e5594
relation.isAuthorOfPublication.latestForDiscovery5c47e6f8-de26-4311-b340-ac4b1b1e5594

Download

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Super-optimization_of_Smart_Contracts.pdf
Size:
3.21 MB
Format:
Adobe Portable Document Format

Collections