Not sure if this is the right place to ask this but i guess quite some people here are familliar with sipa's version of secp256k1
https://github.com/bitcoin/secp256k1when i try to run this code:
unsigned char privateKeyBytes[33];
// some code to fill privateKeyBytes[]
unsigned char publicKeyBytes[33];
int length;
int* l;
l = &length;
unsigned char* pubkeyptr;
unsigned char* privkeyptr;
pubkeyptr = &publicKeyBytes[0];
privkeyptr = &privateKeyBytes[0];
secp256k1_ecdsa_pubkey_create(pubkeyptr, l, privkeyptr, 1);
I get Segmentation fault (core dumped)
stuck at this for some time now....any ideas?