Pedersen2 and BitPoints MulFix and MulAny

This commit is contained in:
Jordi Baylina
2018-11-27 16:03:57 +01:00
parent fcc61f9237
commit 55e9a60c37
40 changed files with 2272 additions and 80 deletions

View File

@@ -0,0 +1,23 @@
include "../../circuit/pointbits.circom";
template Main() {
signal input in[2];
var i
component p2b = Point2Bits_Strict();
component b2p = Bits2Point_Strict();
p2b.in[0] <== in[0];
p2b.in[1] <== in[1];
for (i=0; i<256; i++) {
b2p.in[i] <== p2b.out[i];
}
b2p.out[0] === in[0];
b2p.out[1] === in[1];
}
component main = Main();