XRP Ledger Verification Uses Math to Prove Lending Protocol Safety
Common Prefix is formally verifying the XRP Ledger Lending Protocol to mathematically prove that it cannot be drained, become insolvent, or break its rules. The work focuses on the Lending Protocol introduced through XLS-66.
The verification process uses formal methods, which go beyond conventional software testing by using mathematics to prove a system works correctly in all possible situations.
According to Vet, an XRP Ledger validator, formal verification is used in high-risk systems such as military technology and nuclear power plants. It shows that a system remains valid across all possible inputs, not just the scenarios developers have tested.
The team chose Lean 4 for the verification process because it does not rely on an SMT solver and allows for more flexibility compared to other tools like Dafny. Lean also works well with C-based software, allowing the team to compare its mathematical model with the actual lending protocol.