Understanding how a blockchain works, with Php and Json

1. Structure of a blockchain

2. Read the blockchain

  • read our blockchain
  • read data about the last block in the blockchain
  • calculate a valid hash to be used by a new block, and insert it in the blockchain

3. Write a new block

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Simone Ricci

Simone Ricci

95 Followers

I work as a full stack web developer in the company that I co-founded. I live in Turin, Italy. I love bikes, Sardinia, cameras, mountains, free software.