首页> 外文会议>International Symposium on Static Analysis >Cost Analysis of Smart Contracts Via Parametric Resource Analysis
【24h】

Cost Analysis of Smart Contracts Via Parametric Resource Analysis

机译:通过参数分析的智能合同成本分析

获取原文

摘要

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.
机译:智能合同和区块链平台的本质,其中程序执行和存储在大量节点上复制,使资源消耗分析高度相关。这导致了用于特定平台和语言的分析仪的开发。然而,区块链平台具有语言和成本模型的显着变化,以及随着时间的推移。促进快速发展和对成本分析的改编的方法在这种情况下可能具有吸引力。我们探讨了一种通用方法和工具的应用,以实现成本分析对智能合约静态消耗界静态推理的问题。该方法是基于参数资源分析,这是一种简化分析器的方法,用于推断不同资源和不同资源消耗模型的安全界。此外,为了支持不同的输入语言,该方法还利用翻译成位于基于喇叭子句的中间表示。为了评估实用性,我们开发了Tezos平台及其迈克尔森语的分析仪。我们认为,这种方法提供了一种快速,灵活,有效的方法,可以为智能合同开发成本分析。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号