Book of Knowledge (BOK)
Verifies Solana and Anchor program arithmetic and economic invariants using formal proofs and property-based testing.
The Book of Knowledge (BOK) is a specialized verification framework designed for Solana developers to ensure the mathematical integrity and economic stability of their smart contracts. It employs a multi-layered verification strategy—utilizing Kani for formal proofs, LiteSVM for runtime testing, and Proptest for property-based stress testing—to detect critical vulnerabilities like overflows, rounding errors, and broken conservation of value logic. By automating the identification of math-heavy code and generating isolated verification worktrees, BOK provides a rigorous security pipeline that translates complex formal methods into actionable insights and exploit scenarios for DeFi protocols.