Blog
The technical content top engineers rely on to level up.
7 min read
Testing Revert Call In Certora
In this chapter, we will learn how to use method tags (@withrevert and @norevert) and the special variable lastReverted in CVL to verify expected reverts…
6 min read
Formally Verifying Ownable.sol
Ownable is an abstract contract that provides owner-based access control.
8 min read
Introduction to Parametric Rules
Until now, in previous chapters, we have written rules to verify the behavior of specific methods and their impact on a contract’s state.
4 min read
Formally verifying Initializable.sol
This article describes how Certora formally verified the Initializable.sol OpenZeppelin contract.
9 min read
Conditional Statements in CVL and Formally Verifying Parts of Solady and Solmate
Some contract behaviors (properties) are inherently conditional, and using constructs like if/else in CVL is one way to capture conditional behavior…
8 min read
Introduction to Method Properties
In the previous chapter, we learned about parametric rules, which allow us to formally verify properties that are expected to hold regardless of which…
13 min read
Certora Require, Assert, and Satisfy
In the previous chapter, we learned that a specification is a piece of code written in CVL that describes the expected behavior of a smart contract.
7 min read
Understanding the Spec File in Certora CVL
In the last chapter, we saw that to perform formal verification using Certora Prover, we need to provide the Prover with the following key items.
5 min read
Biconditional Operator
The biconditional operator enables us to assert if-and-only-if relationships between boolean values.
5 min read
Testing msg.sender and msg.value in CVL
In this chapter, we introduce the env variable in CVL, which enables us to make rules for functions that depend on msg.sender, msg.value, and other…
10 min read
Implication Operator
The implication operator is frequently used as a substitute for the if statement since it is cleaner.
5 min read
Overflow and Mathint
In CVL, the type mathint represents unbounded integers, unlike Solidity’s fixed-size types such as uint256.