-
Notifications
You must be signed in to change notification settings - Fork 200
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
Document the #[oracle]
attribute
#3971
Comments
@signorecello would you like to pair with @TomAFrench and @sirasistant to work on this? |
Relatedly is |
|
Does that mean Noir devs are intended to use |
Noir devs should not use any of those I think in most cases -- oracles are for people who want to have their own runtimes like aztec, ie I can't depend on a library that has an oracle in it unless it is an oracle from the Noir runtime, like println |
Right, perhaps an advanced rather than general use case but would for example #3767 be where Noir devs could find |
#[foreign_call]
attribute#[oracle]
attribute
|
Generally agree although I can see an argument for allowing them in |
This is where diátaxis framework shines: we don't have to not document something, as it is delegated to reference material. It is still there, but not surfaced as something that works out-of-the-box. To work, I'll be doing a how-to guide which will come with its own section on the runtime part. This should be documented in reference, though. I'll try to find a nice place for it, and we can follow the same pattern for future situations like this. |
… of oracles (#4002) # Description This PR adds some more in-depth documentation on oracles, what they are and how to use them. ## Problem\* Closes #3971 Oracles can now be resolved with JSON RPC calls, which is a powerful feature for developers. This PR attempts to provide some information on how they can be part of a development flow ## Summary\* - [ ] Adds the nargo commands for oracles - [ ] Adds an explainer on what are oracles and what can you do with them - [ ] Adds a how-to guide on using oracles - [ ] Adds a tutorial on a small project using oracles --------- Co-authored-by: Savio <72797635+Savio-Sou@users.noreply.github.com> Co-authored-by: josh crites <jc@joshcrites.com>
Problem
The
#[foreign_call]
attribute has been surfaced in multiple discussions as a feature for fetching information outside of the Noir program, but we don't currently have written explanations of how it is used.Happy Case
Document how is
#[foreign_call]
used in the Noir docs with examples.Alternatives Considered
No response
Additional Context
Non-exhausive / potentially inaccurate list of reference PRs I came across:
execute_circuit
#3506Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: