Blog
The technical content top engineers rely on to level up.
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 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.
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 a Counter
In the previous chapter, we learned the theoretical side of formal verification, including what it is and how it works.
4 min read
Formally Verifying Nonces.Sol in OpenZeppelin
Nonces, which stands for "number used once" are used in digital signature schemes to prevent replay attacks.
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.
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.
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
Certora Prover: Formal Verification of Smart Contracts
Formal verification proves a smart contract meets its specification. Learn how it works, how it compares to fuzzing, and its limits, in the Certora book.
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…
4 min read
Formally verifying Initializable.sol
This article describes how Certora formally verified the Initializable.sol OpenZeppelin contract.