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.

Tinychain: a pocket-sized implementation of Bitcoin

250 pointsby jobeirnealmost 8 years ago

11 comments

_xhokalmost 8 years ago
There should be one of those awesome-* Github repos with a list of lightweight, readable implementations of various protocols/technologies.
评论 #14955573 未加载
评论 #14954876 未加载
billconanalmost 8 years ago
I have a similar project in 1000 lines or so c++, called bingot<p><a href="https:&#x2F;&#x2F;github.com&#x2F;shi-yan&#x2F;bingot" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;shi-yan&#x2F;bingot</a><p>It was inspired by another simple crypto currency called basiccoin<p><a href="https:&#x2F;&#x2F;github.com&#x2F;zack-bitcoin&#x2F;basiccoin" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zack-bitcoin&#x2F;basiccoin</a><p>at the time, basic coin was only 600 lines of python.
PaulBGD_almost 8 years ago
I&#x27;m working on my own blockchain (not specifically bitcoin) implementation just to wrap my head around everything. One thing I&#x27;m not getting that also wasn&#x27;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&#x27;m a bit fuzzy on how you check timestamps on previous blocks when you&#x27;re initially downloading the chain. How do you know that you need to check the timestamp if you can&#x27;t know if you&#x27;re on the latest block?
评论 #14951576 未加载
评论 #14951225 未加载
评论 #14950931 未加载
评论 #14951283 未加载
评论 #14951226 未加载
评论 #14950526 未加载
h4l0almost 8 years ago
I&#x27;m also working on my own cryptocurrency implementation forked from known basiccoin of Zack Hess. Simply I&#x27;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:&#x2F;&#x2F;github.com&#x2F;halilozercan&#x2F;halocoin" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;halilozercan&#x2F;halocoin</a>
评论 #14959313 未加载
bhalp1almost 8 years ago
Reminds me of this post: <a href="https:&#x2F;&#x2F;dev.to&#x2F;aunyks&#x2F;lets-build-the-tiniest-blockchain" rel="nofollow">https:&#x2F;&#x2F;dev.to&#x2F;aunyks&#x2F;lets-build-the-tiniest-blockchain</a>
throwaway413almost 8 years ago
Props for the killer README!
评论 #14951172 未加载
Hortinsteinalmost 8 years ago
nice work, this is really cool. Source is very readable, great resource for those looking to understand bitcoin. Can&#x27;t wait to play around with it and deploy it on my little raspberry pi swarm!
评论 #14950460 未加载
erikpukinskisalmost 8 years ago
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&#x27;t come across much good writing on the mechanics of the Ethereum protocol. All of the intro texts I&#x27;ve seen are about like &quot;Step 1: install the client&quot; kind of stuff.<p>I&#x27;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!
评论 #14951600 未加载
评论 #14951534 未加载
gaetanrickteralmost 8 years ago
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:&#x2F;&#x2F;news.bitcoin.com&#x2F;hedge-funds-investing-in-cryptocurrencies-exploding-62-in-pipeline&#x2F;" rel="nofollow">https:&#x2F;&#x2F;news.bitcoin.com&#x2F;hedge-funds-investing-in-cryptocurr...</a>
wireminealmost 8 years ago
Currently reading through a book on bitcoin, so this is extremely timely!<p>Got me thinking, what are some solid bitcoin&#x2F;cryptocurrency resources that the HN community would recommend?
评论 #14951168 未加载
评论 #14950811 未加载
评论 #14951379 未加载
leipavoialmost 8 years ago
Cool project! Reminds me of Naivechain, a blockchain in 200 lines of code<p><a href="https:&#x2F;&#x2F;github.com&#x2F;lhartikk&#x2F;naivechain" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lhartikk&#x2F;naivechain</a>