Tri-State Circuits - A Circuit Model that Captures RAM
David Heath, Vladimir Kolesnikov, Rafail Ostrovsky
Abstract
We introduce tri-state circuits (TSCs). TSCs form a natural model of computation that, to our knowledge, has not been considered by theorists. The model captures a surprising combination of simplicity and power. TSCs are simple in that they allow only three wire values ( and undefined - ) and three types of fan-in two gates; they are powerful in that their statically placed gates fire (execute) eagerly as their inputs become defined, implying orders of execution that depend on input. This behavior is sufficient to efficiently evaluate RAM programs.
We construct a TSC that emulates steps of any RAM program and that has only gates. Contrast this with the reduction from RAM to Boolean circuits, where the best approach scans all of memory on each access, incurring quadratic cost.
We connect TSCs with cryptography by using them to improve Yao's Garbled Circuit (GC) technique. TSCs capture the power of garbling far better than Boolean Circuits, offering a more expressive model of computation that leaves per-gate cost essentially unchanged.
As an important application, we construct authenticated Garbled RAM (GRAM), enabling constant-round maliciously-secure 2PC of RAM programs. Let denote the security parameter. We extend authenticated garbling to TSCs; by simply plugging in our TSC-based RAM, we obtain authenticated GRAM running at cost , outperforming all prior work, including prior semi-honest GRAM.
We also give semi-honest garbling of TSCs from a one-way function (OWF). This yields OWF-based GRAM at cost , outperforming the best prior OWF-based GRAM by more than factor .
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get fd039d07-9936-42da-ade6-cb83c2ea4eebCited by top-tier papers3
- 2PC Memory-Manipulating Programs with Constant OverheadDavid HeathCCS 2026
- Improved Garbled RAM via Garbled MergeCan Liu, Lenny Liu, Ning Luo, David HeathCCS 2026
- Toss: Garbled PIR from Table-Only StackingLucien K. L. Ng, Vladimir KolesnikovCCS 2025
Related papers
- NanoGRAM: Garbled RAM with OverheadAndrew Park, Wei-Kai Lin, Elaine ShiEUROCRYPT 2023 · 5 citations
- Global-Scale Secure Multiparty ComputationXiao Wang, Samuel Ranellucci, Jonathan KatzCCS 2017 · 220 citations
- Multiparty Garbling from OT with Linear Scaling and RAM SupportDavid Heath, Vladimir Kolesnikov, Varun Narayanan, Rafail Ostrovsky et al.CRYPTO 2025 · 4 citations
- Garbling Gadgets for Boolean and Arithmetic CircuitsMarshall Ball, Tal Malkin, Mike RosulekCCS 2016 · 81 citations
- Zebra: Arithmetic Garbled RAM for Large Words from DCRTianyao Gu, Ashrujit Ghoshal, Elaine ShiEUROCRYPT 2026 · 1 citation
