multiparty / jigg Goto Github PK
View Code? Open in Web Editor NEWJavaScript implementation of garbled gates and 2PC boolean circuit protocols
Home Page: https://multiparty.org/jigg
License: Other
JavaScript implementation of garbled gates and 2PC boolean circuit protocols
Home Page: https://multiparty.org/jigg
License: Other
hi,
We have a variety of circuits available under circuits/bristol
, What does AES-128.txt do? there are two inputs here, are they key and message for AES encryption? there is 1 output,it's length is 128bit, what is the content of this output?
look forward for your reply ,thanks
Doubling is implemented here
Lines 23 to 29 in afb4af1
But the paper says that this must be "Circular left shift" of BITS, but your code performs a shift of BYTES.
Maybe this does not introduce an exploitable attack vector but definitely the implementation is not in line with the paper.
Is this a bug or was this done on purpose to avoid bit shifting?
Hello, first of all thank you for providing such a good tool so that I don't have to know too much about the principles of MPC and can try to use it。
but when I run it, I find that there is an error, after searching no problem, hope to get your help, thanks
➜ jigg npm test
> [email protected] test ~/workspace/jigg
> mocha test/test.js --timeout 120000
Exhaustive regular server: logic-and-4-bit.txt
✓ Inputs 00 00 (1337ms)
✓ Inputs 00 01 (327ms)
✓ Inputs 00 10 (326ms)
✓ Inputs 00 11 (333ms)
✓ Inputs 01 00 (335ms)
✓ Inputs 01 01 (325ms)
✓ Inputs 01 10 (326ms)
✓ Inputs 01 11 (324ms)
✓ Inputs 10 00 (332ms)
✓ Inputs 10 01 (333ms)
✓ Inputs 10 10 (359ms)
✓ Inputs 10 11 (340ms)
✓ Inputs 11 00 (341ms)
✓ Inputs 11 01 (342ms)
✓ Inputs 11 10 (343ms)
✓ Inputs 11 11 (342ms)
SHA256 Garbling Server
1) Input 0
stderr in node [ 'demo/server.js',
'3001',
'Garbler',
'000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F',
'hex',
'sha-256-reverse.txt',
'false' ]
events.js:167
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::3001
at Server.setupListenHandle [as _listen2] (net.js:1286:14)
at listenInCluster (net.js:1334:12)
at Server.listen (net.js:1421:7)
at Object.<anonymous> (/Users/linfang/workspace/prove/jigg-master/demo/server.js:21:12)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
Emitted 'error' event at:
at emitErrorNT (net.js:1313:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
stderr in node [ 'demo/server.js',
'3001',
'Garbler',
'0000000000000000000000000000000000000000000000000000000000000000',
'hex',
'sha-256-reverse.txt',
'false' ]
events.js:173
throw err; // Unhandled 'error' event
^
Error [ERR_UNHANDLED_ERROR]: Unhandled error. (Role already taken!)
at Socket.emit (events.js:171:17)
at Socket.emit (~/workspace/jigg/node_modules/socket.io/lib/socket.js:142:10)
at Server.join (~/workspace/jigg/src/jiggServer.js:52:12)
at Socket.emit (events.js:182:13)
at~/workspace/jigg/node_modules/socket.io/lib/socket.js:528:12
at process._tickCallback (internal/process/next_tick.js:61:11)
Hi, the README.md says
JIGG can parse a circuit in the standardized 'Bristol Format'
but tutorial/intro.md says
In particular, JIGG accepts circuits specified using the Bristol Fashion.
Is it both?
Hi, I just wanted to give you a heads-up that the recent socket.io version 4.0.1 wil result in not being able to connect to the server.
Installing an earlier version with e.g. npm install [email protected]
resolves the issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.