github.com/snowblossomcoin/go-ethereum@v1.9.25/crypto/secp256k1/libsecp256k1/src/java/org_bitcoin_Secp256k1Context.c (about)

     1  #include <stdlib.h>
     2  #include <stdint.h>
     3  #include "org_bitcoin_Secp256k1Context.h"
     4  #include "include/secp256k1.h"
     5  
     6  SECP256K1_API jlong JNICALL Java_org_bitcoin_Secp256k1Context_secp256k1_1init_1context
     7    (JNIEnv* env, jclass classObject)
     8  {
     9    secp256k1_context *ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY);
    10  
    11    (void)classObject;(void)env;
    12  
    13    return (uintptr_t)ctx;
    14  }
    15