Book of Knowledge (BOK)

•
9
•

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.

Key Features

01Isolated worktree execution to protect production source code during testing
02Formal verification of arithmetic logic and rounding precision using Kani
039 GitHub stars
04Economic invariant proving for DeFi logic via LiteSVM and Proptest
05Comprehensive reporting with plain-English exploit scenarios and fix suggestions
06Automated codebase scanning to identify risky math-heavy code sections

Use Cases

01Pre-deployment mathematical review of swaps, fees, and staking logic
02Verifying economic invariants and share fairness in liquidity provider protocols
03Formally proving conservation of value in complex token bonding curves