This is probably the best mini implementation I've seen so far. The code is hosted at <a href="https://github.com/Haseeb-Qureshi/lets-build-a-blockchain" rel="nofollow">https://github.com/Haseeb-Qureshi/lets-build-a-blockchain</a><p>He's missed one thing though, which a lot of these small implmentations miss, its the code for chain re-org.<p><a href="https://en.bitcoin.it/wiki/Chain_Reorganization" rel="nofollow">https://en.bitcoin.it/wiki/Chain_Reorganization</a><p>This is a crucial piece of code that figures out which chain is correct if 1 or more blocks arrive that have a greater proof of work than your current best chain.<p>But otherwise, a very good attempt.