Live data from Hacker News

Tinychain: a pocket-sized implementation of Bitcoin

github.com

1–10 of 45 posts

Re: Tinychain: a pocket-sized implementation of Bitcoin

#3

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!

Thanks! It's definitely meant for forking, hacking on, and experimentation. A few ideas:

- use dns for peer discovery

- implement Script language subset

- implement SegWit

Re: Tinychain: a pocket-sized implementation of Bitcoin

#4
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.

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?

Re: Tinychain: a pocket-sized implementation of Bitcoin

#5
post #4

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. 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 t…

Couldn't you just do everything in UTC?

Re: Tinychain: a pocket-sized implementation of Bitcoin

#6
post #5
post #4

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. 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 t…

Couldn't you just do everything in UTC?

I'm not sure how that solves anything, since UTC would have the same issues as a UNIX timestamp.

Re: Tinychain: a pocket-sized implementation of Bitcoin

#9
post #8

Currently reading through a book on bitcoin, so this is extremely timely! Got me thinking, what are some solid bitcoin/cryptocurrency resources that the HN community would recommend?

The original bitcoin paper is fantastic, as well as the wiki.
Post reply on HN