MIT-licensed C implementation of getblocktemplate (BIP 22) for Primecoin