Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DON'T MERGE : Updating to 0.23.0 #14

Merged
merged 8 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 4 additions & 45 deletions recursion/.gitignore
Original file line number Diff line number Diff line change
@@ -1,48 +1,4 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

.env
.tmp

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts


# artifacts
proofs

# other
.vscode
crs
.DS_Store
Expand All @@ -51,4 +7,7 @@ artifacts
.target
typechain-types
cache
.target
target
.next
node_modules
next-env.d.types
Binary file added recursion/.yarn/install-state.gz
Binary file not shown.
893 changes: 893 additions & 0 deletions recursion/.yarn/releases/yarn-4.1.0.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions recursion/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarnPath: .yarn/releases/yarn-4.1.0.cjs
nodeLinker: node-modules
11 changes: 6 additions & 5 deletions recursion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ Recursive proofs mean you prove that another proof is correct. A bit of a proofi
- You pick that proof and send it to another circuit (the "outer" proof)
- You generate the outer proof and verify it

Why is this useful? In this example, it doesn't do much. But you could verify two proofs within a proof, which can be incredibly useful. You could also avoid verifying stuff on-chain for turn-based games, for example.
Why is this useful? In this example, it doesn't do much. But you could verify two proofs within a proof, which can be incredibly useful.

You could also avoid verifying stuff on-chain for turn-based games, for example. Check out the [Noir Docs](https://noir-lang.org/docs/explainers/explainer-recursion) for a high-level explanation.

## Getting Started

1. [Install nargo](https://noir-lang.org/getting_started/nargo_installation#option-1-noirup) version 0.17.0 with `noirup -v 0.17.0`
2. Install dependencies by running `yarn`
3. Compile the project with `yarn compile`
4. Run `yarn dev`
1. Install dependencies by running `yarn`
2. For on-chain verification, open another terminal and run `npx hardhat node`
3. Run `yarn dev`

## Testing

Expand Down
2,647 changes: 0 additions & 2,647 deletions recursion/circuits/main/contract/main/plonk_vk.sol

This file was deleted.

1 change: 0 additions & 1 deletion recursion/circuits/main/target/main.json

This file was deleted.

18 changes: 0 additions & 18 deletions recursion/circuits/recursion/src/recursion.nr

This file was deleted.

1 change: 0 additions & 1 deletion recursion/circuits/recursion/target/recursion.json

This file was deleted.

239 changes: 0 additions & 239 deletions recursion/components/component.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions recursion/components/connect.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions recursion/components/connected.tsx

This file was deleted.

Loading