Machine-checked ZKP for NP-relations: Formally Verified Security Proofs and Implementations of MPC-in-the-Head

José Carlos Bacelar Almeida, Manuel Barbosa, Karim Eldefrawy, Stéphane Graham-Lengrand, Hugo Pacheco +1 more
4/12/2021
cs.CR

Official code: SRI-CSL/high-assurance-crypto (12 stars, eC, last commit 2025-01-10).

Abstract

MPC-in-the-Head (MitH) is a general framework that allows constructing efficient Zero Knowledge protocols for general NP-relations from secure multiparty computation (MPC) protocols. In this paper we give the first machine-checked implementation of this transformation.

Show full abstract

We begin with an EasyCrypt formalization of MitH that preserves the modular structure of MitH and can be instantiated with arbitrary MPC protocols that satisfy standard notions of security, which allows us to leverage an existing machine-checked secret-sharing-based MPC protocol development. The resulting concrete ZK protocol is proved secure and correct in EasyCrypt. Using a recently developed code extraction mechanism for EasyCrypt we synthesize a formally verified implementation of the protocol, which we benchmark to get an indication of the overhead associated with our formalization choices and code extraction mechanism.

View on arXivView PDF

Code Implementations(1)

This repository contains software for projects focusing on computer-aided verification of (distributed) cryptographic protocols and algorithms.

122eC, OCamlJan 7, 20211 years ago

Similar Papers

Cite this paper

@article{almeida2021machinechecked,
  title  = {Machine-checked ZKP for NP-relations: Formally Verified Security Proofs and Implementations of MPC-in-the-Head},
  author = {José Carlos Bacelar Almeida and Manuel Barbosa and Karim Eldefrawy and Stéphane Graham-Lengrand and Hugo Pacheco and Vitor Pereira},
  year   = {2021},
  eprint = {2104.05516},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.05516}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.05516.svg)](https://codeofpaper.com/paper/2104.05516)

Discussion