variable rename: priv2pub -> pubkey_gen

This commit is contained in:
The MMGen Project 2023-12-12 10:19:52 +00:00
commit 4de9924f93
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 15 additions and 10 deletions

View file

@ -20,7 +20,7 @@
#include <Python.h>
#include <secp256k1.h>
static PyObject * priv2pub(PyObject *self, PyObject *args) {
static PyObject * pubkey_gen(PyObject *self, PyObject *args) {
const unsigned char * privkey;
const int klen;
const int compressed;
@ -65,7 +65,12 @@ struct module_state {
#define GETSTATE(m) ((struct module_state*)PyModule_GetState(m))
static PyMethodDef secp256k1_methods[] = {
{"priv2pub", priv2pub, METH_VARARGS, "Generate pubkey from privkey using libsecp256k1"},
{
"pubkey_gen",
pubkey_gen,
METH_VARARGS,
"Generate a serialized pubkey from privkey bytes"
},
{NULL, NULL}
};