Skip to content

The ledger that keeps its books when the network does not

Mezgeb is an open-source double-entry ledger in Rust on PostgreSQL, with offline payments and cryptographically signed transactions.

Every entry balances

Double entry is enforced three times: by Rust types, by the posting engine, and by the database itself. Posted entries never change; corrections are reversals.

Offline is a first-class case

Funds for offline use sit in escrow. Each offline payment is a signed, hash-chained receipt that the ledger settles exactly once, whatever order devices sync in.

Tamper-evident history

The journal is hash-chained with signed checkpoints, and every change lands in an append-only audit log. Balances are re-proven against the journal.

Safe to retry, safe under load

Idempotent posting means a retry never charges twice. Row-level locking means the same balance cannot be spent twice. Money is integer minor units, never floats.

Start reading

Apache-2.0 licensed. Docs built fromatronsa/mezgeb @ main.