Oracles #3767
marekkirejczyk
started this conversation in
Ideas
Oracles
#3767
Replies: 1 comment
-
Two possible approaches off the top of my head:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
We would like to create an Ethereum History API library, which would allow developers to access Ethereum data from within Noir circuit. The library would verify data with storage proofs. Data would be then submitted on-chain.
To do so, we would like to leverage unconstrained functions that would query an Ethereum node for data via Oracles. Oracles are mentioned in the Aztec documentation, but not yet implemented in pure Noir.
The goal is to reduce complexity for the developer, using the lib. With this approach, developers can manipulate data from Noir, without the need to write additional helper code in JS.
Happy Case
Noir user pseudocode:
User javascript pseudocode:
Library javascript pseudocode:
Noir lib pseudocode:
Alternatives Considered
One common approach would be to fetch data from javascript and pass results to Noir code.
This is a perfectly correct solution. However, it adds to complexity on the developer side.
In this scenario, the developer needs to write code in 3 languages: js, Noir and Solidity.
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
Beta Was this translation helpful? Give feedback.
All reactions