DEV Community

Lukas Lukac
Lukas Lukac

Posted on

GoLang implementation of how blockchain achieves immutability

In my previous article, I theoreticized on How blockchain achieves immutability.

Time to focus on practice.

Liquid error: internal

Let me know if you have any questions or doubts about the theory or this particular Go code, I am happy to help, answer!

For more blocks checkout my Twitter-chain: https://twitter.com/BlocksByLukas

Top comments (3)

Collapse
 
bgadrian profile image
Adrian B.G.

Very nice. The CS behind block chains is very cool.

But the "immutable" part dissapear if someone gets 51% of the network with a far superior computing power and rewrites the blocks. There are also other ways of cheating but is not the point

Collapse
 
web3coach profile image
Lukas Lukac

Hey Adrian, I am glad you like it! Yea what you are saying is true, technically speaking you can also remove your blocks locally or re-write them before distributing but doesn't mean it's not immutable. In another words, all documents in your google drive are safe before they are hacked :)

Collapse
 
der_gopher profile image
Alex Pliutau