This repo contains a minimal python implementation of blockchain for reference purposes It uses the same hash and elliptic curve functions as Bitcoin but uses an account-based ledger for simplicity.
To see it in action, clone the repo and use python3 to run testrun.py