How to Build Your Own Blockchain Part 3 – Writing Nodes That Mine and Talk
bigishdata.com
bigishdata.com
I mention this in the post, but the reason I started this is to learn more about how blockchains operate. I've never been that into them, I don't invest in the coins that the big ones operate with, but am more interested in how they work and other use cases. As with everything, the best way to learn is to write one yourself. I definitely don't consider myself an expert, but when I go back and read the Satoshi paper and Ethereum's white paper, it makes way more sense than before.
Let me know if you have questions, or if you don't agree with something I wrote. Want to make sure people reading this can get more info out of it than many of the other articles on this topic.
What I've found is that it's pretty easy to build out the basics, but then very complicated to cover all of the hard cases (specifically, resolving disparate chains between nodes). The deeper I dig the more appreciation I have out there for the "real" blockchain implementations and implementors.
I can think of a reasonable blockchain-like implementation for logs, actually: chunk up the log, sign, include the hash of the prior sig as the first log message in the new chunk. Boom, blockchain! Throw in Merkle trees somehow and you’ve got yourself a VC-funded startup. You’re welcome.