Skip to content

FairgateLabs/BitVM3-garbling-toy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSA-Based Garbling: Toy Implementation and Attack Demo

This project provides toy implementations of two RSA-based garbling schemes, along with a minimal attack that demonstrates how a malicious evaluator can forge additional wire labels.

Garbling Schemes

The code includes implementations of three garbling schemes based on the following two papers:

And from a suggestion to use affine functions for adaptors proposed on the BitVM builders telegram group.

Attack Overview

A minimal example demonstrates how a malicious evaluator can exploit the scheme. The attack uses a small circuit consisting of two AND gates and three inputs.
Given the public data, circuit adaptors, and wire labels for the input [0, 0, 0], the evaluator is able to forge at least one additional wire label.

Detailed Explanation

For a full explanation of the attack strategy, see the detailed write-up

Running the Demo

Clone the repository and run the demo script. No additional dependencies are required.

python demo.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages