All Projects
Camlcoin
Bitcoin full node in OCaml
OCaml
About
A Bitcoin full node in OCaml using the Dune build system and opam package management, bringing functional programming rigor to consensus code.
Completion 100%
Mainnet sync
Initial Block Download
92.2% Block height
871,000
Sync rate
~1,800 blk/hr
ETA to tip
~41 hours
Test vectors
1222/1222
Tech stack
Language
OCaml
Storage
Custom + SQLite (wallet)
Crypto
libsecp256k1 (C FFI)
Lines of code
63,918
Quick start
terminal
$ git clone https://github.com/hashhog/camlcoin.git
$ cd camlcoin
$ opam install . --deps-only
$ dune build
Features
✓ Wire serialization
✓ Cryptographic primitives
✓ Script interpreter
✓ P2P networking
✓ Block validation
✓ UTXO set management
✓ Header sync
✓ Block sync (IBD)
✓ Mempool
✓ RPC server
✓ Wallet
✓ Mining/block templates
✓ Script test vectors (1222/1222)
✓ Testnet4 sync
✓ Mainnet sync
✓ BIP324 v2 transport