Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ all: snark-jwt-verify node_modules
test: snark-jwt-verify node_modules
yarn exec mocha

snark-jwt-verify/:
snark-jwt-verify:
git clone --recurse-submodules https://github.com/TheFrozenFire/snark-jwt-verify

node_modules/:
node_modules:
yarn

clean:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ Measured on a Mac
| BlockSpace=3 | 24.241 | 350.22 | 1738150 |
| BlockSpace=4 | 51.843 | 1356.917 | 3475234 |

## Install
- Run `make`
## Tests
- Run `make test`
2 changes: 1 addition & 1 deletion circuits/sha256InputBlock1_test.circom
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pragma circom 2.0.3;

include "./Sha256Input.circom";
include "./sha256Input.circom";

component main = Sha256Input(1);
2 changes: 1 addition & 1 deletion circuits/sha256InputBlock2_test.circom
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pragma circom 2.0.3;

include "./Sha256Input.circom";
include "./sha256Input.circom";

component main = Sha256Input(2);
2 changes: 1 addition & 1 deletion circuits/sha256InputBlock3_test.circom
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pragma circom 2.0.3;

include "./Sha256Input.circom";
include "./sha256Input.circom";

component main = Sha256Input(3);
2 changes: 1 addition & 1 deletion circuits/sha256Var.circom
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma circom 2.0.3;

include "./Sha256Input.circom";
include "./sha256Input.circom";
include "../snark-jwt-verify/circomlib/circuits/mux1.circom";
include "../snark-jwt-verify/circomlib/circuits/mux2.circom";
include "../snark-jwt-verify/circomlib/circuits/mux3.circom";
Expand Down
2 changes: 1 addition & 1 deletion circuits/sha256VarSpace1_test.circom
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pragma circom 2.0.3;

include "./Sha256Var.circom";
include "./sha256Var.circom";

component main = Sha256Var(1);
2 changes: 1 addition & 1 deletion circuits/sha256VarSpace2_test.circom
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pragma circom 2.0.3;

include "./Sha256Var.circom";
include "./sha256Var.circom";

component main = Sha256Var(2);
2 changes: 1 addition & 1 deletion circuits/sha256VarSpace3_test.circom
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pragma circom 2.0.3;

include "./Sha256Var.circom";
include "./sha256Var.circom";

component main = Sha256Var(3);
2 changes: 1 addition & 1 deletion circuits/sha256VarSpace4_test.circom
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pragma circom 2.0.3;

include "./Sha256Var.circom";
include "./sha256Var.circom";

component main = Sha256Var(4);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "MIT",
"devDependencies": {
"chai": "^4.3.6",
"circom_tester": "^0.0.9",
"circom_tester": "^0.0.20",
"mocha": "^9.2.0"
}
}
2 changes: 1 addition & 1 deletion test/sha256var.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function testBlockSpace(block_space) {
const max_len = (blocks * 512 - 64) / 8;
console.log('block_space', block_space, 'blocks', blocks, 'max_len', max_len);

const p = path.join(__dirname, `../circuits/Sha256VarSpace${block_space}_test.circom`)
const p = path.join(__dirname, `../circuits/sha256VarSpace${block_space}_test.circom`)
const cir = await wasm_tester(p);

for(let i = 0; i < max_len; i++) {
Expand Down
Loading