News for hackers. Stuff that matters.
Re:A from-scratch tour of Bitcoin in Python by msgilligan on Tuesday June 22, 2021 @02:02PM (#27594943)
This is reminds me of Ken Shirriff's 2014 "Bitcoins the Hard Way" blog post that also used Python to build a Bitcoin transaction from scratch: http://www.righto.com/2014/02/bitcoins-hard-way-using-raw-bi...

(The subtitle of the blog is "Computer history, restoring vintage computers, IC reverse engineering, and whatever" and it is full of fascinating articles, several of which have been featured here on HN)

Re:A from-scratch tour of Bitcoin in Python by kens on Tuesday June 22, 2021 @07:38PM (#27598807)
Thanks for the nice mention of my blog. I was wondering if anyone remembered my old bitcoin article :-)
Re:A from-scratch tour of Bitcoin in Python by arthurcolle on Tuesday June 22, 2021 @10:39PM (#27600178)
It's a classic. You will be forever remembered for your timeless contributions to the collective consciousness!
Re:A from-scratch tour of Bitcoin in Python by audiometry on Tuesday June 22, 2021 @10:42PM (#27600198)
The retro-computing stuff I see you guys doing on CuriousMarc's youtube channel blows my mind.
Re:A from-scratch tour of Bitcoin in Python by martindale on Wednesday June 23, 2021 @11:44AM (#27605832)
I go back to it twice yearly
Re:A from-scratch tour of Bitcoin in Python by ngcc_hk on Wednesday June 23, 2021 @04:17AM (#27602103)
We do
Re:A from-scratch tour of Bitcoin in Python by samlewis on Tuesday June 22, 2021 @07:30PM (#27598723)
Shameless self-promotion but there's also this post I wrote in 2017 if anyone interested in a slightly different take (but a very similar write up to the OP): https://www.samlewis.me/2017/06/a-peek-under-bitcoins-hood/

Cool that this article implements the cryptography primitives, though!

e: Funnily, like the article, I also stored some BTC in a wallet and challenged people to (manually) take/steal it. At the time it was worth $10 USD.. now it's worth $123 USD!

Re:A from-scratch tour of Bitcoin in Python by westurner on Wednesday June 23, 2021 @09:23PM (#27612780)
> The 'dumbcoin' jupyter notebook is also a good reference: "Dumbcoin - An educational python implementation of a bitcoin-like blockchain" https://nbviewer.jupyter.org/github/julienr/ipynb_playground...

https://github.com/yjjnls/awesome-blockchain#implementation-... and https://github.com/openblockchains/awesome-blockchains#pytho... list a few more ~"blockchain from scratch" [in Python] examples.

... FWIU, Ethereum has the better Python story. There was a reference implementation of Ethereum in Python? https://ethereum.org/en/developers/docs/programming-language...

Re:A from-scratch tour of Bitcoin in Python by NextHendrix on Wednesday June 23, 2021 @04:15AM (#27602095)
Ken's blog is great, as well as his work with CuriousMarc. Here's when he tried mining bitcoins by hand.

http://www.righto.com/2014/09/mining-bitcoin-with-pencil-and...

Re:A from-scratch tour of Bitcoin in Python by animex on Tuesday June 22, 2021 @02:06PM (#27595002)
No, the hardest way is using pencil and paper to mine a block :)

https://gizmodo.com/mining-bitcoin-with-pencil-and-paper-164...

Re:A from-scratch tour of Bitcoin in Python by alpb on Tuesday June 22, 2021 @07:03PM (#27598446)
That's basically just a SHA256 hashing on pen and paper, doesn't have much to do with how bitcoin works.
Re:A from-scratch tour of Bitcoin in Python by jazzyjackson on Wednesday June 23, 2021 @04:48PM (#27610131)
To be fair, performing sha256 hashing is kind of the only work that Bitcoin is doing, from a kilowatt hour’s perspective.
Re:A from-scratch tour of Bitcoin in Python by rantwasp on Tuesday June 22, 2021 @05:21PM (#27597386)
technically it said “the hard way” not “the hardest way”. also, computing a hash != mining. mining needs forming the block and computing the hash
Re:A from-scratch tour of Bitcoin in Python by Saig6 on Wednesday June 23, 2021 @03:48AM (#27601914)
Same guy, Ken Shirriff