A C++ port of picocoin's ccoin