Skip to main content
QUICK REVIEW

[Paper Review] Wys*: A Verified Language Extension for Secure Multi-party Computations

Aseem Rastogi, Nikhil Swamy|arXiv (Cornell University)|Jan 1, 2015
Security and Verification in ComputingComputer Science4 citations
TL;DR

WYS* is a verified, domain-specific language extension for secure multi-party computation (MPC), implemented as an embedded DSL in F*. It enables formal verification of MPC programs through deep embedding and mechanized metatheory, with a verified extraction to a correct-by-construction interpreter. This is the first MPC DSL to provide both formal verification of source programs and a verified implementation.

ABSTRACT

Secure multi-party computation (MPC) enables a set of mutually distrusting parties to cooperatively compute, using a cryptographic protocol, a function over their private data. This paper presents WYS*, a new domain-specific language (DSL) implementation for writing MPCs. WYS* is a Verified, Domain-Specific Integrated Language Extension (VDSILE), a new kind of embedded DSL hosted in F*, a full-featured, verification-oriented programming language. WYS* source programs are essentially F* programs written against an MPC library, meaning that programmers can use F*'s logic to verify the correctness and security properties of their programs. To reason about the distributed semantics of these programs, we formalize a deep embedding of WYS*, also in F*. We mechanize the necessary metatheory to prove that the properties verified for the WYS* source programs carry over to the distributed, multi-party semantics. Finally, we use F*'s extraction mechanism to extract an interpreter that we have proved matches this semantics, yielding a verified implementation. WYS* is the first DSL to enable formal verification of source MPC programs, and also the first MPC DSL to provide a verified implementation. With WYS* we have implemented several MPC protocols, including private set intersection, joint median, and an MPC-based card dealing application, and have verified their security and correctness.

Motivation & Objective

  • To address the lack of formal verification support for MPC programs in existing domain-specific languages.
  • To enable developers to write and verify MPC protocols with strong security and correctness guarantees using a high-level, verified programming language.
  • To bridge the gap between high-level program verification and distributed, multi-party execution semantics in MPC.
  • To provide a verified implementation of MPC protocols by extracting a correct-by-construction interpreter from a deep embedding in F*.
  • To demonstrate the practicality of the approach through verified implementations of real-world MPC protocols such as private set intersection and card dealing.

Proposed method

  • WYS* is implemented as a domain-specific language embedded in F*, leveraging F*'s dependent types and verification capabilities.
  • A deep embedding of WYS* is formalized within F*, representing the language's syntax and semantics in a machine-checked way.
  • Metatheory is mechanized in F* to prove that properties verified on the source program level are preserved under the distributed execution semantics.
  • The deep embedding is used to define a semantics for WYS* programs that captures their multi-party, distributed behavior.
  • An interpreter is extracted from the deep embedding using F*'s extraction mechanism, with a proof that it matches the formal semantics.
  • The entire pipeline—from source program to verified implementation—is formally verified using F*'s verification framework.

Experimental results

Research questions

  • RQ1Can a domain-specific language for MPC be formally verified at the source level while preserving security and correctness under distributed execution?
  • RQ2Is it possible to mechanize the metatheory of an MPC DSL to ensure that verified properties on the source level hold in the distributed setting?
  • RQ3Can a verified, correct-by-construction implementation of an MPC DSL be automatically extracted from a deep embedding in a verification-oriented language?
  • RQ4How can a high-level, verified programming language like F* be used to build and verify end-to-end MPC protocols?
  • RQ5Can the proposed approach be practically applied to implement and verify real-world MPC protocols such as private set intersection and joint median computation?

Key findings

  • WYS* is the first MPC DSL to provide formal verification of source programs, ensuring correctness and security through F*'s verification logic.
  • The deep embedding of WYS* in F* enables precise reasoning about distributed semantics, with metatheory that guarantees semantic soundness.
  • The extracted interpreter is formally proven to match the deep embedding semantics, ensuring implementation correctness.
  • The approach has been successfully applied to verify multiple MPC protocols, including private set intersection, joint median, and a card dealing protocol.
  • The integration of F* allows developers to use full-featured verification techniques for MPC programs, significantly reducing the risk of implementation errors.
  • The work demonstrates that end-to-end verification of MPC systems—from high-level specification to verified implementation—is feasible and practical.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.