Series: BIP by BIP
Proposals for improvement of Bitcoin, some of which can be found at bitcoin/bips, tend to be written in a very concise, schematic and specification-style way. Mortal people may struggle to understand the details after seven, thirteen or even twenty three readings. For me the best way to understand a BIP is to try implement it.
In this series, I am looking at various BIPs and metamorphose them into code in order to understand them better. Sections of the original BIPs are quoted extensively but usually not in the same order of appearance; posts in this series are not guides to line-by-line bipreading.
Warning: do not use the code in anything important. It is only meant for educational purposes.