Skip to main content
Version: v0.27.0

Oracles

Noir has support for Oracles via RPC calls. This means Noir will make an RPC call and use the return value for proof generation.

Since Oracles are not resolved by Noir, they are unconstrained functions

You can declare an Oracle through the #[oracle(<name>)] flag. Example:

#[oracle(get_number_sequence)]
unconstrained fn get_number_sequence(_size: Field) -> [Field] {}