Just 200 lines of code: blockchain will disrupt every company by 2027

What is it and how does it work?

  1. Once data is stored in the database, it can never be modified or deleted. Every record on a blockchain is permanent for eternity. If anything is changed, a number (hash) associated with the block changes too, and it is obvious that the data has been manipulated.
  2. No single individual or organization maintains the database; several thousand individuals do, and everyone has a copy of the database themselves.

Still don’t get it, what exactly is it like in real life?

Makes sense, how does this all work in code?

Block structure

(Setting up the general structure)
(The Hash is this example is SHA256)

Generating a block

Storing the blocks

Validating the integrity of blocks

Choosing the longest chain

Controlling the node

  • List all blocks
  • Create a new block with a content given by the user
  • List or add peers

Node Architecture

(Components of NaiveChain)

If by 2027 blockchain will be used by every company, where can they actually use it?

  1. Contracts
  2. Payments
  3. Cloud Storage

1) SmartContracts

2) Payments

3) Cloud Storage

Blockchain is just a tap away…

--

--

--

I’m a developer & innovator who enjoys building products and researching ways we can use AI, Blockchain & robotics to solve problems in healthcare and energy!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Tutorial for HurricaneSwap Testnet

Blockchain: A Quick Primer

A DApp alone is not enough…

The first (?) startup fund powered by blockchain?

Experiencing Amberdata in my DApp

Blockchain Scalability: Limitations and Solutions

Blockchain Scalability

Key concepts of Blockchain:

How can we get benefited by DeFi?

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
Alishba Imran

Alishba Imran

I’m a developer & innovator who enjoys building products and researching ways we can use AI, Blockchain & robotics to solve problems in healthcare and energy!

More from Medium

A Decentralised Web3 possible without Blockchain

Bitcoin development 101

The Developer’s Bull Case for Solana

Updates on bots mitigation measures — April gas fee burn and gas price reduction