Building a Bitcoin Full Node in Elixir/OTP: Architecture, Trade-offs, and Verification in `exnode`
The author built exnode, an experimental Bitcoin full node in Elixir/OTP, to experiment with the BEAM runtime's concurrency, fault tolerance, and supervision trees. The system uses an archive-first storage model with RocksDB and delegates script verification to Bitcoin Core's libbitcoinkernel via a C NIF, while employing static architectural ratchets, Lean 4 proofs, and TLA+ specifications for correctness. Open article →