TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Tinychain: a pocket-sized implementation of Bitcoin

250 点作者 jobeirne将近 8 年前

11 条评论

_xhok将近 8 年前
There should be one of those awesome-* Github repos with a list of lightweight, readable implementations of various protocols/technologies.
评论 #14955573 未加载
评论 #14954876 未加载
billconan将近 8 年前
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_将近 8 年前
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 未加载
h4l0将近 8 年前
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 未加载
bhalp1将近 8 年前
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>
throwaway413将近 8 年前
Props for the killer README!
评论 #14951172 未加载
Hortinstein将近 8 年前
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 未加载
erikpukinskis将近 8 年前
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 未加载
gaetanrickter将近 8 年前
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>
wiremine将近 8 年前
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 未加载
leipavoi将近 8 年前
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>