bulletproofs: add new empty module

This commit is contained in:
Andrew Poelstra
2022-08-27 15:02:44 +00:00
committed by sanket1729
parent 6162d577fe
commit 048f9f8642
11 changed files with 128 additions and 1 deletions

38
src/bench_bulletproofs.c Normal file
View File

@@ -0,0 +1,38 @@
/**********************************************************************
* Copyright (c) 2020 Andrew Poelstra *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
**********************************************************************/
#include <stdint.h>
#include "include/secp256k1_bulletproofs.h"
#include "util.h"
#include "bench.h"
typedef struct {
secp256k1_context* ctx;
} bench_bulletproofs_data;
static void bench_bulletproofs_setup(void* arg) {
(void) arg;
}
static void bench_bulletproofs(void* arg, int iters) {
bench_bulletproofs_data *data = (bench_bulletproofs_data*)arg;
(void) data;
(void) iters;
}
int main(void) {
bench_bulletproofs_data data;
int iters = get_iters(32);
data.ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY);
run_benchmark("bulletproofs_verify_bit", bench_bulletproofs, bench_bulletproofs_setup, NULL, &data, 10, iters);
secp256k1_context_destroy(data.ctx);
return 0;
}