ERC-8087 Decryption Oracle: Encrypted Hashed Arguments and Calls
⚠️ Before you continue: Please read the Disclaimer.
By using this site, software, or contracts, you acknowledge that you have read and accepted it.
Introduction
The finmath call decryption-oracle project provides open source implementations of the ERC-8087 decryption oracle (for secure stateless decryption of function calls).
Interfaces
The interface to the decryption oracle proxy contract and the decryption oracle callback
are available via npm at @finmath.net/encall.
Deployments and demos
Deploy the call oracle and demo router together using the Foundry and Docker deployment guide. Addresses below come from the deployment registry, populated from confirmed receipts. Use the matching router with the demo walkthrough.
See the deployment registry for confirmed addresses. Enable JavaScript to display the network table.
The router's demo target is a public sandbox for encrypted calls. Use a separate, appropriately authorized target for production operations.
Using the Decryption Oracle Contract
Send your request to an instance (address) of the decryption oracle contract using one of the following two functions…
interface ICallDecryptionOracle {
// Encrypted arguments, but plain call descriptor (target contract)
function requestCall(
CallDescriptor calldata callDescriptor,
EncryptedHashedArguments calldata encArgs,
bytes calldata secondFactor
) external payable returns (uint256 requestId);
// Encrypted arguments, and encrypted call descriptor
function requestEncryptedCall(
EncryptedCallDescriptor calldata encCall,
EncryptedHashedArguments calldata encArgs,
bytes calldata secondFactor
) external payable returns (uint256 requestId);
}
For a step-by-step introduction see the usage page.
A request may require a fee to cover fulfillment gas. Read feeCall or
feeEncryptedCall from the deployed oracle; the values are in ETH or POL wei.
For example:
oracle.requestCall{value: CallDecryptionOracle(payable(address(oracle))).feeCall()}(
callDescriptor, encArgs, secondFactor
);
Standards (Protocols)
ICallDecryptionOracle
For the exact interface definition see the solidity page.
ERC-8087
See ERC 8087.
License
Repository-owned code and documentation are distributed under the Apache License 2.0. Explicitly licensed files and third-party components keep their own terms. See the licensing guide for scope, attribution notices, and optional academic citation.
