-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from tokamak-network/dev
v0.1.1
- Loading branch information
Showing
1,162 changed files
with
39,657 additions
and
215,987 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
272 changes: 0 additions & 272 deletions
272
packages/frontend/qap-compiler/outputs/constraints/ADD/ADD_constraints.json
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/frontend/qap-compiler/outputs/constraints/ADD/ADD_info.txt
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-239 KB
packages/frontend/qap-compiler/outputs/constraints/ADDMOD/ADDMOD.r1cs
Binary file not shown.
1,529 changes: 0 additions & 1,529 deletions
1,529
packages/frontend/qap-compiler/outputs/constraints/ADDMOD/ADDMOD_constraints.json
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/frontend/qap-compiler/outputs/constraints/ADDMOD/ADDMOD_info.txt
This file was deleted.
Oops, something went wrong.
Binary file not shown.
778 changes: 0 additions & 778 deletions
778
packages/frontend/qap-compiler/outputs/constraints/AND/AND_constraints.json
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/frontend/qap-compiler/outputs/constraints/AND/AND_info.txt
This file was deleted.
Oops, something went wrong.
Binary file not shown.
353 changes: 0 additions & 353 deletions
353
packages/frontend/qap-compiler/outputs/constraints/BYTE/BYTE_constraints.json
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/frontend/qap-compiler/outputs/constraints/BYTE/BYTE_info.txt
This file was deleted.
Oops, something went wrong.
Binary file not shown.
1,115 changes: 0 additions & 1,115 deletions
1,115
packages/frontend/qap-compiler/outputs/constraints/DIV/DIV_constraints.json
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/frontend/qap-compiler/outputs/constraints/DIV/DIV_info.txt
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-41.2 KB
packages/frontend/qap-compiler/outputs/constraints/DecToBit/DecToBit.r1cs
Binary file not shown.
261 changes: 0 additions & 261 deletions
261
packages/frontend/qap-compiler/outputs/constraints/DecToBit/DecToBit_constraints.json
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/frontend/qap-compiler/outputs/constraints/DecToBit/DecToBit_info.txt
This file was deleted.
Oops, something went wrong.
Binary file not shown.
12 changes: 0 additions & 12 deletions
12
packages/frontend/qap-compiler/outputs/constraints/EQ/EQ_constraints.json
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/frontend/qap-compiler/outputs/constraints/EQ/EQ_info.txt
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.