mirror of
https://github.com/arnaucube/miksi-core.git
synced 2026-02-07 03:26:41 +01:00
Move tests to root dir
This commit is contained in:
1
circuits/.gitignore → .gitignore
vendored
1
circuits/.gitignore → .gitignore
vendored
@@ -1,3 +1,2 @@
|
|||||||
node_modules
|
node_modules
|
||||||
build
|
build
|
||||||
.github
|
|
||||||
8
README.md
Normal file
8
README.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# miksilo
|
||||||
|
|
||||||
|
### Compile circom circuit & generate Groth16 verifier contract
|
||||||
|
|
||||||
|
```
|
||||||
|
./compile-circuits.sh
|
||||||
|
```
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# circuits [](https://github.com/miksi/miksi/circuits/actions?query=workflow%3ATests)
|
# circuits
|
||||||
|
|
||||||
Circuits used by miksi.
|
Circuits used by miksi.
|
||||||
|
|
||||||
|
|||||||
@@ -15,12 +15,12 @@ PRI_secret+--------->+ |
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include "../node_modules/circomlib/circuits/babyjub.circom";
|
include "../../node_modules/circomlib/circuits/babyjub.circom";
|
||||||
include "../node_modules/circomlib/circuits/comparators.circom";
|
include "../../node_modules/circomlib/circuits/comparators.circom";
|
||||||
include "../node_modules/circomlib/circuits/poseidon.circom";
|
include "../../node_modules/circomlib/circuits/poseidon.circom";
|
||||||
include "../node_modules/circomlib/circuits/bitify.circom";
|
include "../../node_modules/circomlib/circuits/bitify.circom";
|
||||||
include "../node_modules/circomlib/circuits/smt/smtverifier.circom";
|
include "../../node_modules/circomlib/circuits/smt/smtverifier.circom";
|
||||||
include "../node_modules/circomlib/circuits/smt/smtprocessor.circom";
|
include "../../node_modules/circomlib/circuits/smt/smtprocessor.circom";
|
||||||
|
|
||||||
template Withdraw() {
|
template Withdraw() {
|
||||||
signal input coinCode;
|
signal input coinCode;
|
||||||
|
|||||||
2
circuits/package-lock.json → package-lock.json
generated
2
circuits/package-lock.json → package-lock.json
generated
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "circuits",
|
"name": "miksi-core",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "circuits",
|
"name": "miksi-core",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "miksilo circuits",
|
"description": "miksi-core",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -fR dist",
|
"clean": "rm -fR dist",
|
||||||
@@ -12,7 +12,7 @@ describe("withdraw test", function () {
|
|||||||
|
|
||||||
it("Test Withdraw", async () => {
|
it("Test Withdraw", async () => {
|
||||||
const circuit = await tester(
|
const circuit = await tester(
|
||||||
path.join(__dirname, "../circuits", "withdraw.circom"),
|
path.join(__dirname, "../circuits/circuits", "withdraw.circom"),
|
||||||
{reduceConstraints: false}
|
{reduceConstraints: false}
|
||||||
);
|
);
|
||||||
|
|
||||||
Reference in New Issue
Block a user