I have a similar project in 1000 lines or so c++, called bingot<p><a href="https://github.com/shi-yan/bingot" rel="nofollow">https://github.com/shi-yan/bingot</a><p>It was inspired by another simple crypto currency called basiccoin<p><a href="https://github.com/zack-bitcoin/basiccoin" rel="nofollow">https://github.com/zack-bitcoin/basiccoin</a><p>at the time, basic coin was only 600 lines of python.
I'm working on my own blockchain (not specifically bitcoin) implementation just to wrap my head around everything. One thing I'm not getting that also wasn't answered by the source code is how you check timestamps.<p>I understand the whole network time = median offset + local time thing, however I'm a bit fuzzy on how you check timestamps on previous blocks when you're initially downloading the chain. How do you know that you need to check the timestamp if you can't know if you're on the latest block?
I'm also working on my own cryptocurrency implementation forked from known basiccoin of Zack Hess. Simply I'm trying to make the code more readable, fix bugs and provide better API. Currently I do not have a fine README that explains my intentions but going through the whole code and rewriting most parts made me realize how simple actually blockchain is. Thinking about fine details like how synchronization of blockchain should work is really inspiring. If you want to take a look at the code it is on <a href="https://github.com/halilozercan/halocoin" rel="nofollow">https://github.com/halilozercan/halocoin</a>
Reminds me of this post: <a href="https://dev.to/aunyks/lets-build-the-tiniest-blockchain" rel="nofollow">https://dev.to/aunyks/lets-build-the-tiniest-blockchain</a>
nice work, this is really cool. Source is very readable, great resource for those looking to understand bitcoin. Can't wait to play around with it and deploy it on my little raspberry pi swarm!
I would love to see this for Ethereum. I was able to understand the Bitcoin protocol fairly quickly with a little reading, but I haven't come across much good writing on the mechanics of the Ethereum protocol. All of the intro texts I've seen are about like "Step 1: install the client" kind of stuff.<p>I'm not interested so much in how to write smart contracts, so much as how the miners work, how conflicts are resolved, and how the incentive schemes play out.<p>Would love to get some reading suggestions!
I can see this useful for all cryptocurrencies as well as alleviating some of the need for hedge funds investing in cryptocurrencies for their clients as brought out here ...Hedge Funds Investing in Cryptocurrencies ‘Exploding’ – 62 in Pipeline <a href="https://news.bitcoin.com/hedge-funds-investing-in-cryptocurrencies-exploding-62-in-pipeline/" rel="nofollow">https://news.bitcoin.com/hedge-funds-investing-in-cryptocurr...</a>
Currently reading through a book on bitcoin, so this is extremely timely!<p>Got me thinking, what are some solid bitcoin/cryptocurrency resources that the HN community would recommend?
Cool project!
Reminds me of Naivechain, a blockchain in 200 lines of code<p><a href="https://github.com/lhartikk/naivechain" rel="nofollow">https://github.com/lhartikk/naivechain</a>