http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/src/ea1e8d1228db50c9776998ff50d270af52b35540/extmod/secp256k1mod.c
privkey_check(ctx, tweak_bytes, tweak_bytes_len, "Tweak")) { return NULL; } /* checks for point-at-infinity (via secp256k1_pubkey_save) */ if (secp256k1_ec_pubkey_tweak_add(ctx, &pubkey, tweak_bytes) != 1) { PyErr_SetString(PyExc_RuntimeError, "Adding public key points failed or result was point-at-infinity"); return NULL; } unsigned char new_pubkey_bytes[pubkey_bytes_len]; if (secp256k1_ec_pubkey_serialize( ctx, new_pubkey_bytes, (size_t*) &pubkey_bytes_len, &pubkey,...