Browse Source

Move tests to root dir

pull/1/head
arnaucube 4 years ago
parent
commit
ea8f423a44
9 changed files with 19 additions and 12 deletions
  1. +0
    -1
      .gitignore
  2. +8
    -0
      README.md
  3. +1
    -1
      circuits/README.md
  4. +6
    -6
      circuits/circuits/withdraw.circom
  5. +1
    -1
      package-lock.json
  6. +2
    -2
      package.json
  7. +1
    -1
      test/withdraw.test.ts
  8. +0
    -0
      tsconfig.json
  9. +0
    -0
      tslint.json

circuits/.gitignore → .gitignore

@ -1,3 +1,2 @@
node_modules
build
.github

+ 8
- 0
README.md

@ -0,0 +1,8 @@
# miksilo
### Compile circom circuit & generate Groth16 verifier contract
```
./compile-circuits.sh
```

+ 1
- 1
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.

+ 6
- 6
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;

circuits/package-lock.json → package-lock.json

@ -1,5 +1,5 @@
{
"name": "circuits",
"name": "miksi-core",
"version": "0.0.1",
"lockfileVersion": 1,
"requires": true,

circuits/package.json → 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",

circuits/test/withdraw.test.ts → 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}
);

circuits/tsconfig.json → tsconfig.json


circuits/tslint.json → tslint.json


Loading…
Cancel
Save