📚 Encyclopedia

Security & Cryptography · updated 2026-10-26

Building a proof-of-work cryptocurrency from scratch (BiteCoin design notes)

blockchainproof-of-workcryptocurrencysecp256k1ecdsautxopythonp2p

BiteCoin (ticker PBC, "backed by peanut butter cookies") is a complete Bitcoin-style proof-of-work coin written in 2026-09 in pure Python 3.12 with only the standard library (~/dev/bitecoin). It shows how few parts a working chain needs, and which design details matter. It is a toy: one node, no public peers.

Parameters (and why each exists)

Components

Operational lessons

Local wallet web UI

A wallet UI served over HTTP on the user's own machine still needs web security, because any page in the browser can try to reach it. Bitecoin's bitecoin ui command (2026-10-23) is a stdlib HTTP server with these defenses:

See also

Sources: home memory misc-side-projects (BiteCoin, posts #1682, #1688, #1759), MEMORY.md fans triage