NotCentralised
  • Introduction
  • Technical Overview
  • Workflows
    • Files
    • Credentials
    • Tokens
    • Deals
    • Service Bus
  • SDK
    • Initialise
    • Register and Generate Keys
    • Files
    • Credentials
    • Tokens
    • Deals
    • Service Bus
  • Contracts
    • Wallet
    • Vault
    • Deal
    • Oracle
    • Service Bus
  • Circuits
    • DataVerifier
    • HashApprover
    • HashMinCommitment
    • HashReceiver
    • HashSender
Powered by GitBook
On this page
  • ConfidentialOracle Contract
  • Public Functions
  1. Contracts

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.

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.

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

Last updated 1 year ago