← Back to all work
GitHubLearning and foundations

Blockchain Development

A Python/Flask learning prototype for linked blocks, SHA-256 hashes, proof of work, and in-memory chain inspection.

STATUSEducational prototype with a known non-terminating mining check.
FOCUSLearning and foundations
DIAGRAM SCOPEWorkflow overview

THE PROBLEM

What it sets out
to solve.

A small inspectable implementation helps explain how block references, proof-of-work checks, and chain validation relate.

THE APPROACH

How it comes
together.

One Python file defines a Blockchain class and Flask GET routes. A genesis block initializes an in-memory list; mining is intended to find a proof and append a hash-linked block, while a chain route returns the stored state.

UNDER THE HOOD

Follow the workflow.

Trace the components.
Select a node for its role in the system.

Intended block workflow with a known mining defect5 COMPONENTS
INTERACTIVE 3DBlockchain Development
PythonFlaskhashlib
Move to tilt · Drag to rotate · Arrow keysDrag to rotate · Tap a component5 components · 5 connections
2D diagram
Trace connections 5 relationships
  1. Flask GET requestIn-memory Blockchaininspect chain
  2. In-memory BlockchainJSON response/get_chain
  3. Flask GET requestProof-of-work loop/mine_block
  4. Proof-of-work loopHash-linked block creationintended; currently blocked
  5. Hash-linked block creationIn-memory Blockchain

Select a component to see how it fits into the system.

CAPABILITIES

What’s inside.

  • 01

    Genesis block and in-memory chain model

  • 02

    SHA-256 block hashing and previous-hash references

  • 03

    Proof-of-work and chain-validation routines

  • 04

    GET /get_chain inspection and GET /mine_block route

Let’s build something useful.

Start a conversation ↗