News for hackers. Stuff that matters.
Re:Let's build a blockchain – A mini-cryptocurrency in Ruby ... by 1ba9115454 on Monday October 23, 2017 @06:42AM (#15532124)
This is probably the best mini implementation I've seen so far. The code is hosted at https://github.com/Haseeb-Qureshi/lets-build-a-blockchain

He's missed one thing though, which a lot of these small implmentations miss, its the code for chain re-org.

https://en.bitcoin.it/wiki/Chain_Reorganization

This is a crucial piece of code that figures out which chain is correct if 1 or more blocks arrive that have a greater proof of work than your current best chain.

But otherwise, a very good attempt.

Re:Let's build a blockchain – A mini-cryptocurrency in Ruby ... by xiphias on Tuesday October 24, 2017 @03:58AM (#15539944)
As far as I saw the whole blockhain is serialized and sent to the peers, so taking care of chair reorgs is trivial (and done in the video). What's really missing is difficulty retargeting.
Re:Let's build a blockchain – A mini-cryptocurrency in Ruby ... by giancarlostoro on Monday October 23, 2017 @07:18AM (#15532276)
I want to see "let's build a blockchain" minus the cryptocurrency. My understanding was that Medical and Financial institutions were more interested in the ledger not so much the currencies behind bitcoin and other cryptocurrencies. Or am I looking at this all wrong?
Re:Let's build a blockchain – A mini-cryptocurrency in Ruby ... by jschulenklopper on Monday October 23, 2017 @07:19AM (#15532285)
Here's an earlier example I found, building a tiny blockchain in Python: https://hackernoon.com/learn-blockchains-by-building-one-117....

Long, but accessible introduction. "The fastest way to learn how Blockchains work is to build one."

Re:Let's build a blockchain – A mini-cryptocurrency in Ruby ... by ariza on Monday October 23, 2017 @05:59AM (#15531965)
wanna learn it