Found in 2 comments on Hacker News
jimmysong · 2019-10-07 · Original thread
Tooting my own horn just a little bit, I spend the first 3 chapters of my book on exactly this topic: https://www.amazon.com/Programming-Bitcoin-Learn-Program-Scr...

There are exercises that can help you learn it from scratch.

Fresh book recommendations delivered straight to your inbox every Thursday.