All Projects

Clearbit

Bitcoin full node in Zig

Zig

About

A Bitcoin full node written in Zig, emphasizing compile-time safety, manual memory management, and zero hidden allocations.

Completion 100%

Mainnet sync

Initial Block Download
12%
Block height
113,000
Sync rate
~9,800 blk/hr
ETA to tip
~85 hours
Test vectors
1222/1222

Tech stack

Language
Zig
Storage
RocksDB
Crypto
libsecp256k1 (C FFI)
Lines of code
66,690

Quick start

terminal
$ git clone https://github.com/hashhog/clearbit.git
$ cd clearbit
$ zig build -Doptimize=ReleaseFast

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