TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Let's build a blockchain – A mini-cryptocurrency in Ruby [video]

62 pointsby seoguruover 7 years ago

4 comments

1ba9115454over 7 years ago
This is probably the best mini implementation I&#x27;ve seen so far. The code is hosted at <a href="https:&#x2F;&#x2F;github.com&#x2F;Haseeb-Qureshi&#x2F;lets-build-a-blockchain" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Haseeb-Qureshi&#x2F;lets-build-a-blockchain</a><p>He&#x27;s missed one thing though, which a lot of these small implmentations miss, its the code for chain re-org.<p><a href="https:&#x2F;&#x2F;en.bitcoin.it&#x2F;wiki&#x2F;Chain_Reorganization" rel="nofollow">https:&#x2F;&#x2F;en.bitcoin.it&#x2F;wiki&#x2F;Chain_Reorganization</a><p>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.<p>But otherwise, a very good attempt.
评论 #15539944 未加载
giancarlostoroover 7 years ago
I want to see &quot;let&#x27;s build a blockchain&quot; 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?
jschulenklopperover 7 years ago
Here&#x27;s an earlier example I found, building a tiny blockchain in Python: <a href="https:&#x2F;&#x2F;hackernoon.com&#x2F;learn-blockchains-by-building-one-117428612f46" rel="nofollow">https:&#x2F;&#x2F;hackernoon.com&#x2F;learn-blockchains-by-building-one-117...</a>.<p>Long, but accessible introduction. &quot;The fastest way to learn how Blockchains work is to build one.&quot;
arizaover 7 years ago
wanna learn it