A blockchain in 200 lines of code (

The basic concept of blockchain is quite simple: a distributed database that maintains a continuously growing list of ordered records…

“This makes understanding blockchains a necessarily harder task, than it must be. Especially source-code-wisely. Here I will go through a super-simple blockchain I implemented in 200 lines of Javascript called NaiveChain.”

  • Block structure
  • Block hash
  • Generating a block
  • Storing the blocks
  • Validating the integrity of blocks
  • Choosing the longest chain
  • Communicating with other nodes
  • Controlling the nodes

What do you think?

Posted by Christophe Langlois

Based in London for almost a decade, Christophe is an entertaining fintech marketing keynote speaker and a trusted advisor to the global financial services industry on the topics of digital marketing, innovation and B2B social media.

Christophe has contributed to over 140 events in 18 countries.

Currently, Christophe is advising a number of fintech startups on marketing and growth hacking and he is the Chief Marketing Officer of The Fintech Power 50, an exclusive annual programme helping fintech scale-ups to accelerate their growth globally.

Christophe's views on are his own.

China Launches National Blockchain Network in 100 Cities (

World’s Best Future Of Work Thinkers on COVID-19 (