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.
https://gizmodo.com/mining-bitcoin-with-pencil-and-paper-164...