mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-02-17 04:27:08 +00:00
Tidy up include files
This commit is contained in:
parent
66c50a49b1
commit
c10e1f40f1
@ -16,7 +16,6 @@
|
||||
|
||||
#include <time.h> // CLOCK_REALTIME, clock_gettime(), timespec
|
||||
#include "c_kzg.h"
|
||||
#include "bls12_381.h"
|
||||
|
||||
typedef struct timespec timespec_t;
|
||||
|
||||
|
@ -23,8 +23,8 @@
|
||||
#ifndef BLS12_381_H
|
||||
#define BLS12_381_H
|
||||
|
||||
#include "stdint.h"
|
||||
#include "c_kzg.h"
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
// BLST is our only option for now
|
||||
#ifndef BLST
|
||||
|
@ -16,7 +16,6 @@
|
||||
|
||||
#include "../inc/acutest.h"
|
||||
#include "test_util.h"
|
||||
#include "bls12_381.h"
|
||||
|
||||
// This is -1 (the second root of unity)
|
||||
uint64_t m1[] = {0xffffffff00000000L, 0x53bda402fffe5bfeL, 0x3339d80809a1d805L, 0x73eda753299d7d48L};
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef C_KZG_H
|
||||
#define C_KZG_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "bls12_381.h"
|
||||
|
||||
/**
|
||||
* The common return type for all routines in which something can go wrong.
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
#include <stdlib.h> // free()
|
||||
#include "c_kzg.h"
|
||||
#include "bls12_381.h"
|
||||
|
||||
C_KZG_RET c_kzg_malloc(void **p, size_t n);
|
||||
C_KZG_RET new_fr(fr_t **x, size_t n);
|
||||
|
@ -16,7 +16,6 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include "c_kzg.h"
|
||||
#include "bls12_381.h"
|
||||
|
||||
// Fr utilities
|
||||
void print_fr(const fr_t *a);
|
||||
|
@ -20,7 +20,6 @@
|
||||
#define FFT_COMMON
|
||||
|
||||
#include "c_kzg.h"
|
||||
#include "bls12_381.h"
|
||||
|
||||
/**
|
||||
* The first 32 roots of unity in the finite field F_r.
|
||||
|
@ -16,7 +16,6 @@
|
||||
|
||||
/** @file kzg_proofs.h */
|
||||
|
||||
#include "c_kzg.h"
|
||||
#include "fft_fr.h"
|
||||
#include "poly.h"
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
/** @file poly.h */
|
||||
|
||||
#include "c_kzg.h"
|
||||
#include "bls12_381.h"
|
||||
|
||||
/**
|
||||
* Defines a polynomial whose coefficients are members of the finite field F_r.
|
||||
|
@ -14,9 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <stdlib.h> // malloc()
|
||||
#include "test_util.h"
|
||||
#include "bls12_381.h"
|
||||
|
||||
void generate_trusted_setup(g1_t *s1, g2_t *s2, const scalar_t *secret, const uint64_t n) {
|
||||
fr_t s_pow, s;
|
||||
|
@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include "c_kzg.h"
|
||||
#include "bls12_381.h"
|
||||
|
||||
// The generator for our "trusted" setup
|
||||
static const scalar_t secret = {0xa4, 0x73, 0x31, 0x95, 0x28, 0xc8, 0xb6, 0xea, 0x4d, 0x08, 0xcc,
|
||||
|
Loading…
x
Reference in New Issue
Block a user