The ledger

A blockchain, built from scratch

Signed transactions, proof-of-work blocks, Merkle proofs, a mempool and peer-to-peer sync, written in Python. It records one thing: fingerprints of the receipts I issue.

0 block height
0 receipt fingerprints recorded
16bits proof-of-work difficulty
Chain intact re-validated from the genesis block just now

Latest blocks

Each block is locked to the one before

A block's hash covers the hash of the block before it. Change any old block and every hash after it stops matching.

  1. #0

    887fc8ebaaf121895e75ac8d3ae89fac52932e1dd0d5c08462274c57354945b7

    Fixed starting point 0 transactions

    Genesis

How it works

From a payment to a provable receipt

  1. Fingerprint

    The receipt's data fields are hashed with SHA-256. Only that hash leaves the database; names and amounts stay private.

  2. Sign

    The hash becomes a transaction signed with my private key using ECDSA on the secp256k1 curve.

  3. Mine

    The transaction waits in the mempool until a miner finds a nonce that gives the block a hash under the difficulty target.

  4. Prove

    A Merkle tree ties every transaction to the block header, so one receipt can be proven without revealing the others.

  5. Sync

    Nodes share transactions and blocks over HTTP and each validates everything independently.

  6. Resolve

    If two versions of the chain exist, nodes follow the valid one with the most accumulated proof-of-work.

An honest note. I run all the nodes myself, so this chain is not decentralized. What it gives you today is tamper-evidence: a receipt, or any block, cannot be edited without the change being detected. It becomes stronger if independent nodes join, or if the latest block hash is anchored to a public network.

Portfolio Assistant
A small AI trained from scratch. It only knows public information.