Blog
The technical content top engineers rely on to level up.
15 min read
Introduction to Storage Hooks and Ghosts
It often becomes necessary to inspect changes at specific storage locations to prove that a property or invariant holds, especially when the storage is…
12 min read
Partially Parametric Rules for ERC-721
This chapter is the final part (5/5) of the code walkthrough of OpenZeppelin’s ERC-721 CVL specification which formally verifies the following rules.
13 min read
Formally Verify Solady WETH
ETH, widely used in DeFi for swaps, liquidity provision, staking, and collateral, needs an ERC-20-compatible version so protocols can interact with it…
7 min read
Using Sstore Hooks with Storage Mappings
In the chapter “Introduction to Storage Hooks And Ghosts”, we covered storage hooks and ghosts with simple storage variables.
10 min read
Constraining Ghosts in Invariants
In the previous chapter, we saw how unconstrained ghost variables can lead to false positives.
14 min read
Invariants for ERC-721
In previous chapters, we explored how CVL invariants work: properties that must hold throughout all contract execution.
17 min read
Preserved Block and Its Role in Invariant Verification
An invariant is a property that must always hold true after a smart contract is deployed and throughout its execution.
10 min read
Mint and Burn Rules for ERC-721
ERC-721 is the Ethereum standard for non-fungible tokens, widely used to represent digital property.
8 min read
Constraining the Ghost Values in Rules
In the previous chapter, we learned how ghost variables allow information to flow from hooks into rules.
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.
6 min read
Formally Verifying Ownable.sol
Ownable is an abstract contract that provides owner-based access control.
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…