7#ifndef SECP256K1_ECMULT_H
8#define SECP256K1_ECMULT_H
14#ifndef ECMULT_WINDOW_SIZE
15# define ECMULT_WINDOW_SIZE 15
17# pragma message DEBUG_CONFIG_MSG("ECMULT_WINDOW_SIZE undefined, assuming default value")
22# pragma message DEBUG_CONFIG_DEF(ECMULT_WINDOW_SIZE)
36#if ECMULT_WINDOW_SIZE < 2 || ECMULT_WINDOW_SIZE > 24
37# error Set ECMULT_WINDOW_SIZE to an integer in range [2..24].
41#define ECMULT_TABLE_SIZE(w) (1L << ((w)-2))
static int secp256k1_ecmult_multi_var(const secp256k1_callback *error_callback, secp256k1_scratch *scratch, secp256k1_gej *r, const secp256k1_scalar *inp_g_sc, secp256k1_ecmult_multi_callback cb, void *cbdata, size_t n)
Multi-multiply: R = inp_g_sc * G + sum_i ni * Ai.
static void secp256k1_ecmult(secp256k1_gej *r, const secp256k1_gej *a, const secp256k1_scalar *na, const secp256k1_scalar *ng)
Double multiply: R = na*A + ng*G.
int() secp256k1_ecmult_multi_callback(secp256k1_scalar *sc, secp256k1_ge *pt, size_t idx, void *data)
A group element in affine coordinates on the secp256k1 curve, or occasionally on an isomorphic curve ...
A group element of the secp256k1 curve, in jacobian coordinates.
A scalar modulo the group order of the secp256k1 curve.