Hello everyone,
I'm a computer science teacher from the interior of Maranhão, Brazil. Over the past months I wrote a technical book called Código Fonte Bitcoin — a complete, line-by-line study of the Bitcoin source code, written in Portuguese. It walks through the codebase from Satoshi's original 2009 client to the modern Bitcoin Core, file by file, covering transactions, blocks, consensus, the script interpreter, the P2P network, mining, the wallet, and the historical evolution — including the 2010 value-overflow incident, the 2013 fork, the migration from OpenSSL to libsecp256k1, SegWit, and Taproot.
The complete table of contents is available in this PDF, so you can see the full structure and depth of the work in detail:
https://drive.google.com/file/d/1YR_tFuNG5y4r9vaRDHVmDqxW_mY-e2sX/view?usp=drive_linkI'm sharing this here as a contribution to the community, with two goals in mind:
1. I would genuinely value technical review. This forum is home to people who understand the code better than anyone. If any of you finds inaccuracies in how I describe the code or the protocol, I want to correct them. Accuracy matters to me more than anything else.
2. I hope the material can serve as a study and teaching resource. In-depth technical material about Bitcoin's code is scarce in Portuguese. I wrote it hoping it could help students, developers, and educators — and especially those who want to study the codebase closely, line by line.
I'm happy to answer any questions about the content, methodology, or any specific chapter. Any feedback, critical or otherwise, is truly welcome.
Thank you for building and maintaining this space.
— Português — PT-BR
Olá a todos,
Sou professor de computação do interior do Maranhão, Brasil. Nos últimos meses escrevi um livro técnico chamado Código Fonte Bitcoin — um estudo completo, linha por linha, do código-fonte do Bitcoin, em português. A obra percorre o código do cliente original de Satoshi, de 2009, até o Bitcoin Core moderno, arquivo por arquivo, cobrindo transações, blocos, consenso, o interpretador de script, a rede P2P, a mineração, a carteira e a evolução histórica — incluindo o incidente de overflow de 2010, o fork de 2013, a migração do OpenSSL para a libsecp256k1, o SegWit e o Taproot.
O sumário completo da obra está disponível neste PDF, para que possam ver a estrutura e a profundidade do trabalho em detalhe:
https://drive.google.com/file/d/1YR_tFuNG5y4r9vaRDHVmDqxW_mY-e2sX/view?usp=drive_linkCompartilho isto aqui como uma contribuição à comunidade, com dois objetivos: primeiro, porque valorizo profundamente a revisão técnica deste fórum — se alguém encontrar imprecisões na forma como descrevo o código ou o protocolo, quero corrigi-las, pois a precisão me importa acima de tudo. Segundo, porque espero que o material sirva como recurso de estudo e ensino, já que há pouquíssimo material técnico aprofundado sobre o código do Bitcoin em português — especialmente para quem deseja analisar o código de forma minuciosa, linha por linha.
Fico à disposição para responder qualquer dúvida sobre o conteúdo ou capítulos específicos. Toda crítica é bem-vinda.
Obrigado por construir e manter este espaço.