DEV Community

A blockchain for dummies

Zohaib Sibte Hassan on September 03, 2018

While crypto-currencies are having bad time financially these days, it obviously has inspired and spun up a lot of applications. Blockchain and p...
Collapse
 
e4emre profile image
Emre

I doubt anyone reading this will understand at all what a blockchain is. It's like asking what's a an apple? You answer by saying "it's a pomme-de-terre in English."
This code doesn't even implement a blockchain... you simply import a pre-made blockchain library.

Try something like:
dev.to/belevatini/blockchain-expla...

Collapse
 
mjb2kmn profile image
MN Mark

Thanks for this. I've only understood blockchain enough to have a general idea of how it works, this helps me understand it well enough to explain it to others.

Now I'm wondering how close this is to actual implementations; also why on earth people put their money into this...

Collapse
 
zohaibility profile image
Zohaib Sibte Hassan

In terms of fundamental concept it should describe core concepts really well; however this is still far from being production ready. I've not implemented stuff like verify and syncing chains across the nodes. If you imagine this chain is distributed across machines around the world it's really hard for someone to do a fake entry in it without really doing a proof of work.

This is expensive for clients mining (or trying to add entry) however it's really cheap to verify it (just look at the proof and proof_claim); which leads to multiple applications including putting virtual currency in it.

Collapse
 
leadegroot profile image
Lea de Groot

... have you just gotten us to mine blockchain for you?
Clever.
Not very nice, but clever.