csecp256k1

Haskell FFI bindings to bitcoin-core/secp256k1 (docs.ppad.tech/csecp256k1).
git clone git://git.ppad.tech/csecp256k1.git
Log | Files | Refs | README | LICENSE

ecmult_compute_table.h (1185B)


      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_ECMULT_COMPUTE_TABLE_H
      8 #define SECP256K1_ECMULT_COMPUTE_TABLE_H
      9 
     10 /* Construct table of all odd multiples of gen in range 1..(2**(window_g-1)-1). */
     11 static void haskellsecp256k1_v0_1_0_ecmult_compute_table(haskellsecp256k1_v0_1_0_ge_storage* table, int window_g, const haskellsecp256k1_v0_1_0_gej* gen);
     12 
     13 /* Like haskellsecp256k1_v0_1_0_ecmult_compute_table, but one for both gen and gen*2^128. */
     14 static void haskellsecp256k1_v0_1_0_ecmult_compute_two_tables(haskellsecp256k1_v0_1_0_ge_storage* table, haskellsecp256k1_v0_1_0_ge_storage* table_128, int window_g, const haskellsecp256k1_v0_1_0_ge* gen);
     15 
     16 #endif /* SECP256K1_ECMULT_COMPUTE_TABLE_H */