# Oracle

## ConfidentialOracle Contract

The `ConfidentialOracle` contract provides functionalities to store and retrieve arbitrary key-value data from a confidential mapping. A zkSNARKs proof is required to set the values, ensuring privacy and security.

### Public Functions

* **getValue**: This function returns the value stored against a given key for a particular owner.

```solidity
function getValue(
    address owner,
    uint256 key
) 
public view 
returns (uint256);
```

* **setValue**: This function allows an owner to set a value against a key in the mapping. The function verifies the zkSNARKs proof before updating the value.

```solidity
function setValue(
    bytes calldata proof,
    uint[2] memory input
)
public;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.notcentralised.com/contracts/oracle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
