Test check.c
This commit is contained in:
@@ -580,37 +580,7 @@ uint256 juint256(cJSON *obj)
|
||||
|
||||
#else
|
||||
#include "sudoku.cpp"
|
||||
|
||||
/*
|
||||
#include "../secp256k1/src/util.h"
|
||||
#include "../secp256k1/src/num_impl.h"
|
||||
#include "../secp256k1/src/field_impl.h"
|
||||
#include "../secp256k1/src/scalar_impl.h"
|
||||
#include "../secp256k1/src/group_impl.h"
|
||||
#include "../secp256k1/src/scratch_impl.h"
|
||||
#include "../secp256k1/src/ecmult_impl.h"
|
||||
#include "../secp256k1/src/ecmult_const_impl.h"
|
||||
#include "../secp256k1/src/ecmult_gen_impl.h"
|
||||
#include "../secp256k1/src/ecdsa_impl.h"
|
||||
#include "../secp256k1/src/eckey_impl.h"
|
||||
#include "../secp256k1/src/hash_impl.h"
|
||||
|
||||
|
||||
|
||||
typedef int (secp256k1_ecmult_multi_callback)(secp256k1_scalar *sc, secp256k1_ge *pt, size_t idx, void *data);
|
||||
extern "C" void secp256k1_pubkey_save(secp256k1_pubkey* pubkey, secp256k1_ge* ge);
|
||||
extern "C" int secp256k1_nonce_function_bipschnorr(unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *algo16, void *data, unsigned int counter);
|
||||
extern "C" int secp256k1_pubkey_load(const secp256k1_context* ctx, secp256k1_ge* ge, const secp256k1_pubkey* pubkey);
|
||||
extern "C" void secp256k1_scalar_chacha20(secp256k1_scalar *r1, secp256k1_scalar *r2, const unsigned char *seed, uint64_t idx);
|
||||
|
||||
#define ARG_CHECK(cond) do { \
|
||||
if (EXPECT(!(cond), 0)) { \
|
||||
secp256k1_callback_call(&ctx->illegal_callback, #cond); \
|
||||
return 0; \
|
||||
} \
|
||||
} while(0)*/
|
||||
|
||||
//#include "../secp256k1/src/secp256k1.c"
|
||||
#include "musig.cpp"
|
||||
#include "../secp256k1/modules/musig/check.c"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
* Additionally, see the documentation in include/secp256k1_musig.h.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
/*#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <secp256k1.h>
|
||||
#include <secp256k1_schnorrsig.h>
|
||||
#include <secp256k1_musig.h>
|
||||
#include <secp256k1_musig.h>*/
|
||||
|
||||
/* Number of public keys involved in creating the aggregate signature */
|
||||
#define N_SIGNERS 3
|
||||
@@ -122,7 +122,7 @@ int sign(const secp256k1_context* ctx, unsigned char seckeys[][32], const secp25
|
||||
return secp256k1_musig_partial_sig_combine(ctx, &musig_session[0], sig, partial_sig, N_SIGNERS);
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
int testmain(void) {
|
||||
secp256k1_context* ctx;
|
||||
int i;
|
||||
unsigned char seckeys[N_SIGNERS][32];
|
||||
|
||||
Reference in New Issue
Block a user