https://github.com/b1f6c1c4/naive-garble
Naïve implementation of garbled circuits.
https://github.com/b1f6c1c4/naive-garble
cryptography garbled-circuits oblivious-transfer secure-computation sfe
Last synced: about 2 months ago
JSON representation
Naïve implementation of garbled circuits.
- Host: GitHub
- URL: https://github.com/b1f6c1c4/naive-garble
- Owner: b1f6c1c4
- License: mit
- Created: 2019-05-27T04:39:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T01:18:54.000Z (over 1 year ago)
- Last Synced: 2025-02-09T02:31:36.945Z (3 months ago)
- Topics: cryptography, garbled-circuits, oblivious-transfer, secure-computation, sfe
- Language: C
- Homepage:
- Size: 1.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# naive-garble
[Garbled circuit](https://en.wikipedia.org/wiki/Garbled_circuit) is a cryptography protocol that facilitates secured function evalutation (SFE).
This site demonstrates the basics of it and can be used for SFE in limited scenarios (semi-trusted).## Online
See [Demo](https://garbled.netlify.com/) in WebAssembly.
## Run Locallly
```sh
make -j4
./bin/garble --alice 1 # 0~3
./bin/garble --bob 2 # 0~3
# Should evaluate to min(1, 2) = 1
```