Skip to content

Commit

Permalink
Merge pull request #18 from tokamak-network/dev
Browse files Browse the repository at this point in the history
v0.1.1
  • Loading branch information
SonYoungsung authored Feb 3, 2025
2 parents 55f7bf5 + 799ee3e commit 4fd1a37
Show file tree
Hide file tree
Showing 1,162 changed files with 39,657 additions and 215,987 deletions.
6 changes: 0 additions & 6 deletions packages/frontend/qap-compiler/circuits/load.circom

This file was deleted.

22 changes: 22 additions & 0 deletions packages/frontend/qap-compiler/components/dectobit.circom
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
pragma circom 2.1.6;
include "../node_modules/circomlib/circuits/bitify.circom";

template DecToBit () {
signal input in[2]; // A 256-bit integer consisting of two 128-bit integers; in[0]: lower, in[1]: upper
signal output out[512];

component lower_num_to_bits = Num2Bits(128);
lower_num_to_bits.in <== in[0];

component upper_num_to_bits = Num2Bits(128);
upper_num_to_bits.in <== in[1];

for (var i = 0; i < 128; i++){
out[2*i] <== lower_num_to_bits.out[i];
out[2*i + 1] <== 0;
}
for (var i = 128; i < 256; i++){
out[2*i] <== upper_num_to_bits.out[i - 128];
out[2*i + 1] <== 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include "add.circom";
include "mul.circom";
include "templates/128bit/divider.circom";
include "../node_modules/circomlib/circuits/bitify.circom";
//deprecated
//Deprecated. Replaced with subexp. See Synthesizer documentation.
template Exp () {
signal input in1[2], in2[2];
signal output out[2];
Expand Down
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.
1,115 changes: 0 additions & 1,115 deletions packages/frontend/qap-compiler/outputs/constraints/DIV/DIV_constraints.json

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

11 changes: 0 additions & 11 deletions packages/frontend/qap-compiler/outputs/constraints/EQ/EQ_info.txt

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 4fd1a37

Please sign in to comment.