The Bitcoin protocol and blockchains explained from the viewpoint of stumbling into inventing your own cryptocurrency.