diff --git a/circuits/.gitignore b/.gitignore similarity index 70% rename from circuits/.gitignore rename to .gitignore index 85f10f2..dd87e2d 100644 --- a/circuits/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules build -.github diff --git a/README.md b/README.md new file mode 100644 index 0000000..f76690b --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# miksilo + +### Compile circom circuit & generate Groth16 verifier contract + +``` +./compile-circuits.sh +``` + diff --git a/circuits/README.md b/circuits/README.md index 9e1d0bd..846f1e1 100644 --- a/circuits/README.md +++ b/circuits/README.md @@ -1,4 +1,4 @@ -# circuits [![Tests](https://github.com/miksi/miksi/circuits/workflows/Tests/badge.svg)](https://github.com/miksi/miksi/circuits/actions?query=workflow%3ATests) +# circuits Circuits used by miksi. diff --git a/circuits/circuits/withdraw.circom b/circuits/circuits/withdraw.circom index f331220..efa4c45 100644 --- a/circuits/circuits/withdraw.circom +++ b/circuits/circuits/withdraw.circom @@ -15,12 +15,12 @@ PRI_secret+--------->+ | */ -include "../node_modules/circomlib/circuits/babyjub.circom"; -include "../node_modules/circomlib/circuits/comparators.circom"; -include "../node_modules/circomlib/circuits/poseidon.circom"; -include "../node_modules/circomlib/circuits/bitify.circom"; -include "../node_modules/circomlib/circuits/smt/smtverifier.circom"; -include "../node_modules/circomlib/circuits/smt/smtprocessor.circom"; +include "../../node_modules/circomlib/circuits/babyjub.circom"; +include "../../node_modules/circomlib/circuits/comparators.circom"; +include "../../node_modules/circomlib/circuits/poseidon.circom"; +include "../../node_modules/circomlib/circuits/bitify.circom"; +include "../../node_modules/circomlib/circuits/smt/smtverifier.circom"; +include "../../node_modules/circomlib/circuits/smt/smtprocessor.circom"; template Withdraw() { signal input coinCode; diff --git a/circuits/package-lock.json b/package-lock.json similarity index 99% rename from circuits/package-lock.json rename to package-lock.json index 501356c..d06b1a2 100644 --- a/circuits/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "circuits", + "name": "miksi-core", "version": "0.0.1", "lockfileVersion": 1, "requires": true, diff --git a/circuits/package.json b/package.json similarity index 91% rename from circuits/package.json rename to package.json index 02fbd0a..36ad5ae 100644 --- a/circuits/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "circuits", + "name": "miksi-core", "version": "0.0.1", - "description": "miksilo circuits", + "description": "miksi-core", "main": "index.js", "scripts": { "clean": "rm -fR dist", diff --git a/circuits/test/withdraw.test.ts b/test/withdraw.test.ts similarity index 92% rename from circuits/test/withdraw.test.ts rename to test/withdraw.test.ts index 6f34b62..64cebe8 100644 --- a/circuits/test/withdraw.test.ts +++ b/test/withdraw.test.ts @@ -12,7 +12,7 @@ describe("withdraw test", function () { it("Test Withdraw", async () => { const circuit = await tester( - path.join(__dirname, "../circuits", "withdraw.circom"), + path.join(__dirname, "../circuits/circuits", "withdraw.circom"), {reduceConstraints: false} ); diff --git a/circuits/tsconfig.json b/tsconfig.json similarity index 100% rename from circuits/tsconfig.json rename to tsconfig.json diff --git a/circuits/tslint.json b/tslint.json similarity index 100% rename from circuits/tslint.json rename to tslint.json