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 #10 from kendricktan/master
Added Encryption, flow, repository + code cleanup
- Loading branch information
Showing
38 changed files
with
74,259 additions
and
1,297,632 deletions.
There are no files selected for viewing
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,3 @@ | ||
{ | ||
"presets": ["flow", "@babel/preset-flow"] | ||
} |
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,101 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# Stuff we can auto-generate | ||
proving_key.json | ||
verification_key.json | ||
witness.json | ||
public.json | ||
proof.json | ||
circuit.json | ||
input.json | ||
|
||
app/circuits/ | ||
|
||
.vscode/ |
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,73 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"plugins": [ | ||
"flowtype" | ||
], | ||
"extends": [ | ||
"plugin:flowtype/recommended", | ||
"standard", | ||
"standard-flow" | ||
], | ||
"globals": { | ||
"BigInt": "readonly" | ||
}, | ||
"rules": { | ||
"flowtype/boolean-style": [ | ||
2, | ||
"boolean" | ||
], | ||
"flowtype/define-flow-type": 1, | ||
"flowtype/delimiter-dangle": [ | ||
2, | ||
"never" | ||
], | ||
"flowtype/generic-spacing": [ | ||
2, | ||
"never" | ||
], | ||
"flowtype/no-mixed": 2, | ||
"flowtype/no-types-missing-file-annotation": 2, | ||
"flowtype/no-weak-types": 2, | ||
"flowtype/object-type-delimiter": [ | ||
2, | ||
"comma" | ||
], | ||
"flowtype/require-parameter-type": 2, | ||
"flowtype/require-readonly-react-props": 0, | ||
"flowtype/require-return-type": [ | ||
2, | ||
"always", | ||
{ | ||
"annotateUndefined": "never" | ||
} | ||
], | ||
"flowtype/require-valid-file-annotation": 2, | ||
"flowtype/semi": [ | ||
2, | ||
"always" | ||
], | ||
"flowtype/space-after-type-colon": [ | ||
2, | ||
"always" | ||
], | ||
"flowtype/space-before-generic-bracket": [ | ||
2, | ||
"never" | ||
], | ||
"flowtype/space-before-type-colon": [ | ||
2, | ||
"never" | ||
], | ||
"flowtype/union-intersection-spacing": [ | ||
2, | ||
"always" | ||
], | ||
"flowtype/use-flow-type": 1, | ||
"flowtype/valid-syntax": 1 | ||
}, | ||
"settings": { | ||
"flowtype": { | ||
"onlyFilesWithFlowAnnotation": false | ||
} | ||
} | ||
} |
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,14 @@ | ||
[ignore] | ||
.*/node_modules/.* | ||
|
||
[include] | ||
|
||
[libs] | ||
flow-typed | ||
|
||
[lints] | ||
|
||
[options] | ||
all=true | ||
|
||
[strict] |
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,101 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# Stuff we can auto-generate | ||
proving_key.json | ||
verification_key.json | ||
witness.json | ||
public.json | ||
proof.json | ||
circuit.json | ||
input.json | ||
|
||
app/circuits/ | ||
|
||
.vscode/ |
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,13 @@ | ||
FROM node:10.16.3-jessie | ||
|
||
COPY . /maci | ||
|
||
WORKDIR /maci | ||
|
||
RUN yarn install | ||
|
||
# RUN yarn circuit:compile | ||
# RUN yarn circuit:setup | ||
# RUN yarn circuit:generatewitness | ||
|
||
ENTRYPOINT [ "/bin/bash", "-c", "sleep 10000" ] |
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
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 |
---|---|---|
@@ -1,12 +1,38 @@ | ||
# maci | ||
Minimal anti collusion infrastructure | ||
|
||
# Intro | ||
# MACI | ||
Minimal Anti-Collusion Infrastructure | ||
|
||
This project is based upon https://ethresear.ch/t/minimal-anti-collusion-infrastructure | ||
|
||
# Contribution | ||
# Developing on MACI | ||
|
||
MACI is tested with `node v10.16.3` | ||
|
||
```bash | ||
yarn install | ||
|
||
yarn circuit:compile | ||
yarn circuit:setup | ||
yarn circuit:generateverifier | ||
|
||
# Runs app/utils/crypto.js .... for now .... | ||
# Will make it prettier dw | ||
yarn circuit:test | ||
``` | ||
|
||
## With Docker | ||
|
||
```bash | ||
docker build -t maci . | ||
docker exec -it $(docker run -t -d maci) /bin/bash | ||
|
||
yarn circuit:compile | ||
yarn circuit:setup | ||
yarn circuit:generateverifier | ||
|
||
yarn circuit:test # app/utils/crypto.js | ||
``` | ||
|
||
# Contribution | ||
We are actively seeking help on implementing this project please join https://t.me/joinchat/LUgOpE7J2gstRcZqdERyvw and ask about contributions | ||
|
||
And check the help wanted issues. | ||
And check the help wanted issues. |
Oops, something went wrong.