Bitcoin ABC
0.32.7
P2P Digital Currency
src
secp256k1
src
precomputed_ecmult.h
Go to the documentation of this file.
1
/*****************************************************************************************************
2
* Copyright (c) 2013, 2014, 2017, 2021 Pieter Wuille, Andrew Poelstra, Jonas Nick, Russell O'Connor *
3
* Distributed under the MIT software license, see the accompanying *
4
* file COPYING or https://www.opensource.org/licenses/mit-license.php. *
5
*****************************************************************************************************/
6
7
#ifndef SECP256K1_PRECOMPUTED_ECMULT_H
8
#define SECP256K1_PRECOMPUTED_ECMULT_H
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
#include "
group.h
"
15
#if defined(EXHAUSTIVE_TEST_ORDER)
16
#if EXHAUSTIVE_TEST_ORDER == 13
17
# define WINDOW_G 4
18
# elif EXHAUSTIVE_TEST_ORDER == 199
19
# define WINDOW_G 8
20
# else
21
# error No known generator for the specified exhaustive test group order.
22
# endif
23
static
secp256k1_ge_storage
secp256k1_pre_g
[
ECMULT_TABLE_SIZE
(
WINDOW_G
)];
24
static
secp256k1_ge_storage
secp256k1_pre_g_128
[
ECMULT_TABLE_SIZE
(
WINDOW_G
)];
25
#else
/* !defined(EXHAUSTIVE_TEST_ORDER) */
26
# define WINDOW_G ECMULT_WINDOW_SIZE
27
extern
const
secp256k1_ge_storage
secp256k1_pre_g
[
ECMULT_TABLE_SIZE
(
WINDOW_G
)];
28
extern
const
secp256k1_ge_storage
secp256k1_pre_g_128
[
ECMULT_TABLE_SIZE
(
WINDOW_G
)];
29
#endif
/* defined(EXHAUSTIVE_TEST_ORDER) */
30
31
#ifdef __cplusplus
32
}
33
#endif
34
35
#endif
/* SECP256K1_PRECOMPUTED_ECMULT_H */
ECMULT_TABLE_SIZE
#define ECMULT_TABLE_SIZE(w)
The number of entries a table with precomputed multiples needs to have.
Definition:
ecmult.h:33
group.h
secp256k1_pre_g_128
const secp256k1_ge_storage secp256k1_pre_g_128[ECMULT_TABLE_SIZE(WINDOW_G)]
Definition:
precomputed_ecmult.c:8240
secp256k1_pre_g
const secp256k1_ge_storage secp256k1_pre_g[ECMULT_TABLE_SIZE(WINDOW_G)]
Definition:
precomputed_ecmult.c:20
WINDOW_G
#define WINDOW_G
Definition:
precomputed_ecmult.h:26
secp256k1_ge_storage
Definition:
group.h:33
Generated on Mon Jan 26 2026 20:04:57 for Bitcoin ABC by
1.9.4