Skip to content

Commit 4fd7e1e

Browse files
Merge #197: fix include paths in all the -zkp modules
347f96d fix include paths in all the -zkp modules (Andrew Poelstra) Pull request description: This is causing out-of-tree build failures in Elements. ACKs for top commit: real-or-random: utACK 347f96d Tree-SHA512: 7d6211f3b8d5612f95bcb3085c22458e7ceaa79f1ee74e37404cc6d1fdf0fbc02b4443b02623b9b6c1225437c1a1954b6d36a953d52b020ac7913326404894e0
2 parents d1d6e47 + 347f96d commit 4fd7e1e

20 files changed

+77
-78
lines changed

src/modules/ecdsa_adaptor/main_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#ifndef SECP256K1_MODULE_ECDSA_ADAPTOR_MAIN_H
88
#define SECP256K1_MODULE_ECDSA_ADAPTOR_MAIN_H
99

10-
#include "include/secp256k1_ecdsa_adaptor.h"
11-
#include "modules/ecdsa_adaptor/dleq_impl.h"
10+
#include "../../../include/secp256k1_ecdsa_adaptor.h"
11+
#include "dleq_impl.h"
1212

1313
/* (R, R', s', dleq_proof) */
1414
static int secp256k1_ecdsa_adaptor_sig_serialize(unsigned char *adaptor_sig162, secp256k1_ge *r, secp256k1_ge *rp, const secp256k1_scalar *sp, const secp256k1_scalar *dleq_proof_e, const secp256k1_scalar *dleq_proof_s) {

src/modules/ecdsa_adaptor/tests_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef SECP256K1_MODULE_ECDSA_ADAPTOR_TESTS_H
22
#define SECP256K1_MODULE_ECDSA_ADAPTOR_TESTS_H
33

4-
#include "include/secp256k1_ecdsa_adaptor.h"
4+
#include "../../../include/secp256k1_ecdsa_adaptor.h"
55

66
void rand_scalar(secp256k1_scalar *scalar) {
77
unsigned char buf32[32];

src/modules/ecdsa_s2c/main_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#ifndef SECP256K1_MODULE_ECDSA_S2C_MAIN_H
88
#define SECP256K1_MODULE_ECDSA_S2C_MAIN_H
99

10-
#include "include/secp256k1.h"
11-
#include "include/secp256k1_ecdsa_s2c.h"
10+
#include "../../../include/secp256k1.h"
11+
#include "../../../include/secp256k1_ecdsa_s2c.h"
1212

1313
static void secp256k1_ecdsa_s2c_opening_save(secp256k1_ecdsa_s2c_opening* opening, secp256k1_ge* ge) {
1414
secp256k1_pubkey_save((secp256k1_pubkey*) opening, ge);

src/modules/ecdsa_s2c/tests_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef SECP256K1_MODULE_ECDSA_S2C_TESTS_H
88
#define SECP256K1_MODULE_ECDSA_S2C_TESTS_H
99

10-
#include "include/secp256k1_ecdsa_s2c.h"
10+
#include "../../../include/secp256k1_ecdsa_s2c.h"
1111

1212
static void test_ecdsa_s2c_tagged_hash(void) {
1313
unsigned char tag_data[14] = "s2c/ecdsa/data";

src/modules/generator/main_impl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
#include <stdio.h>
1111

12-
#include "field.h"
13-
#include "group.h"
14-
#include "hash.h"
15-
#include "scalar.h"
12+
#include "../../field.h"
13+
#include "../../group.h"
14+
#include "../../hash.h"
15+
#include "../../scalar.h"
1616

1717
static void secp256k1_generator_load(secp256k1_ge* ge, const secp256k1_generator* gen) {
1818
int succeed;

src/modules/generator/tests_impl.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
#include <string.h>
1111
#include <stdio.h>
1212

13-
#include "group.h"
14-
#include "scalar.h"
15-
#include "testrand.h"
16-
#include "util.h"
13+
#include "../../group.h"
14+
#include "../../scalar.h"
15+
#include "../../testrand.h"
16+
#include "../../util.h"
1717

18-
#include "include/secp256k1_generator.h"
18+
#include "../../../include/secp256k1_generator.h"
1919

2020
void test_generator_api(void) {
2121
unsigned char key[32];

src/modules/rangeproof/borromean.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
#ifndef _SECP256K1_BORROMEAN_H_
99
#define _SECP256K1_BORROMEAN_H_
1010

11-
#include "scalar.h"
12-
#include "field.h"
13-
#include "group.h"
14-
#include "ecmult.h"
15-
#include "ecmult_gen.h"
11+
#include "../../scalar.h"
12+
#include "../../field.h"
13+
#include "../../group.h"
14+
#include "../../ecmult.h"
15+
#include "../../ecmult_gen.h"
1616

1717
int secp256k1_borromean_verify(secp256k1_scalar *evalues, const unsigned char *e0, const secp256k1_scalar *s,
1818
const secp256k1_gej *pubs, const size_t *rsizes, size_t nrings, const unsigned char *m, size_t mlen);

src/modules/rangeproof/borromean_impl.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
#ifndef _SECP256K1_BORROMEAN_IMPL_H_
99
#define _SECP256K1_BORROMEAN_IMPL_H_
1010

11-
#include "scalar.h"
12-
#include "field.h"
13-
#include "group.h"
14-
#include "hash.h"
15-
#include "eckey.h"
16-
#include "ecmult.h"
17-
#include "ecmult_gen.h"
11+
#include "../../scalar.h"
12+
#include "../../field.h"
13+
#include "../../group.h"
14+
#include "../../hash.h"
15+
#include "../../eckey.h"
16+
#include "../../ecmult.h"
17+
#include "../../ecmult_gen.h"
1818
#include "borromean.h"
1919

2020
#include <limits.h>

src/modules/rangeproof/main_impl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
#ifndef SECP256K1_MODULE_RANGEPROOF_MAIN
88
#define SECP256K1_MODULE_RANGEPROOF_MAIN
99

10-
#include "group.h"
10+
#include "../../group.h"
1111

12-
#include "modules/rangeproof/pedersen_impl.h"
13-
#include "modules/rangeproof/borromean_impl.h"
14-
#include "modules/rangeproof/rangeproof_impl.h"
12+
#include "pedersen_impl.h"
13+
#include "borromean_impl.h"
14+
#include "rangeproof_impl.h"
1515

1616
/** Alternative generator for secp256k1.
1717
* This is the sha256 of 'g' after standard encoding (without compression),

src/modules/rangeproof/pedersen.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
#ifndef _SECP256K1_PEDERSEN_H_
88
#define _SECP256K1_PEDERSEN_H_
99

10-
#include "ecmult_gen.h"
11-
#include "group.h"
12-
#include "scalar.h"
10+
#include "../../ecmult_gen.h"
11+
#include "../../group.h"
12+
#include "../../scalar.h"
1313

1414
#include <stdint.h>
1515

0 commit comments

Comments
 (0)