diff --git a/Makefile b/Makefile index c3ed456..f0297a8 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,10 @@ build: clean: npm run clean +.PHONY: deploy_circuit +deploy_circuit: + npm run deploy:circuit + .PHONY: test test: npm run test diff --git a/README.md b/README.md index 49a3877..fcd7e95 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ - React Native - TypeScript - Expo +- Noir - Sindri API for Zero-Knowledge Proof generation ## Getting Started @@ -33,7 +34,13 @@ Follow these steps to run the project locally: make install ``` -3. **Start the Application** +3. **Deploy Circuit** + + ```bash + make deploy_circuit + ``` + +4. **Start the Application** ```bash make run_frontend diff --git a/package.json b/package.json index 6574e93..40c66d2 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "dev": "cd packages/frontend && npm run dev", "build": "cd packages/backend && npm run build", "clean": "npx rimraf node_modules out && cd packages/frontend && npx rimraf node_modules out dist coverage && cd ../backend && npx rimraf node_modules out dist coverage", + "deploy:circuit": "cd packages/circuit && make deploy", "test": "cd packages/frontend && npm run test && cd ../backend && npm run test", "test:coverage": "cd packages/frontend && npm run test:coverage && cd ../backend && npm run test:coverage", "test:watch": "cd packages/frontend && npm run test:watch && cd ../backend && npm run test:watch", diff --git a/packages/circuit/Makefile b/packages/circuit/Makefile new file mode 100644 index 0000000..e0aebec --- /dev/null +++ b/packages/circuit/Makefile @@ -0,0 +1,11 @@ +.PHONY: login +deploy: + npx sindri login + +.PHONY: deploy +deploy: + npx sindri deploy + +.PHONY: lint +lint: + npx sindri lint diff --git a/packages/circuit/src/main.nr b/packages/circuit/src/main.nr index 10fdbe6..568e89e 100644 --- a/packages/circuit/src/main.nr +++ b/packages/circuit/src/main.nr @@ -1,5 +1,5 @@ -fn main(input: u8) { - assert(input >= 20); +fn main(input: u8) -> pub bool { + input >= 20 } #[test]