This repository provides an example of how to use Certora Prover for formal verification of smart contracts. Follow the steps below to install Certora, obtain an API key, and execute certoraRun on the configuration file.
Ensure you have the following installed:
- Python 3 and
pip3 - A Solidity compiler compatible with your contract version
You need to install the Certora CLI to interact with the Certora Prover. Run the following command:
pip3 install certora-cliVerify the installation:
certoraRun --helpTo use Certora Prover, you must have an API key. Sign up or log in to Certora's website. Finally, set up your API key in your environment variables:
export CERTORAKEY=<your_api_key>To verify the smart contract, execute certoraRun with the provided configuration file:
certoraRun certora/VaultERC.confIf you are using a Solidity contract, ensure your configuration file correctly specifies the contract paths and verification rules.