Singapore Institute of Technology
Browse

A Complete Formal Semantics of eBPF Instruction Set Architecture for Solana

Download (1.08 MB)
journal contribution
posted on 2025-07-25, 05:29 authored by Shenghao Yuan, Zhuoruo Zhang, Jiayi Lu, David Miguel Sanan BaenaDavid Miguel Sanan Baena, Rui Chang, Yongwang Zhao
<p dir="ltr">We present the first formal semantics for the Solana eBPF bytecode language used in smart contracts on the Solana blockchain platform. Our formalization accurately captures all binary-level instructions of the Solana eBPF instruction set architecture. This semantics is structured in a small-step style, facilitating the formalization of the Solana eBPF interpreter within Isabelle/HOL. We provide a semantics validation framework that extracts an executable semantics from our formalization to test against the original implementation of the Solana eBPF interpreter. This approach introduces a novel lightweight and non-invasive method to relax the limitations of the existing Isabelle/HOL extraction mechanism. Furthermore, we illustrate potential applications of our semantics in the formalization of the main components of the Solana eBPF virtual machine.</p>

History

Journal/Conference/Book title

Proceedings of the ACM on Programming Languages

Publication date

2025-04-09

Version

  • Published

Usage metrics

    Licence

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC