-
Notifications
You must be signed in to change notification settings - Fork 19
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
example code of recursive proof #207
Conversation
Related: noir-lang/noir#4563 |
Modifying to be recursive |
This reverts commit 8120d96.
Closes #197 |
hey @jzaki this is for this repo - https://github.com/noir-lang/noir-examples/tree/master/recursion/packages/noir/recursion right now it does something similar to your example here - although yours is much more concise :) I think @signorecello's idea was to have a more practical example, eg a game |
@catmcgee They are quite different. |
Would be great to get you guys' help on updating https://noir-lang.org/docs/how_to/how-to-recursion, perhaps following the review and merging of this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jzaki wdyt about adding some more detail to the README (e.g. about the structure of the repo)? I think it'd be helpful to give a short description of what sumLib
, sum
, recurseNode
, and recurseLeaf
all do, and how they fit together in main.ts
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
pure ts module to show recursive proof. Intended to use export+codegen via scripts, but execution doesn't verify inner proofs. A future pr will extract the export+codegen example for it's own example.