PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Macros | Functions
tests_impl.h File Reference
#include <string.h>
#include "group.h"
#include "scalar.h"
#include "testrand.h"
#include "util.h"
#include "include/secp256k1_bulletproofs.h"
Include dependency graph for tests_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  test_bulletproof_ecmult_context
 
struct  test_bulletproof_offset_context
 
struct  secp256k1_bulletproof_ip_test_abgh_data
 

Macros

#define MAX_WIDTH   (1ul << 20)
 

Functions

void build_proof (const uint64_t *value, int size, unsigned char *proof, size_t *plen, secp256k1_pedersen_commitment *pcommit)
 
void verify_proof (unsigned char *proof, size_t plen, secp256k1_pedersen_commitment *pcommit)
 
void test_bulletproof_inner_product (size_t n, const secp256k1_bulletproof_generators *gens)
 
void test_bulletproof_rangeproof (size_t nbits, size_t expected_size, const secp256k1_bulletproof_generators *gens)
 
void build_bulletproof_rangeproof_aggregate (size_t nbits, size_t n_commits)
 
void test_bulletproof_rangeproof_aggregate (size_t nbits, size_t n_commits, size_t expected_size, const secp256k1_bulletproof_generators *gens)
 
void test_bulletproof_circuit (const secp256k1_bulletproof_generators *gens)
 
void run_bulletproofs_tests (void)
 

Macro Definition Documentation

◆ MAX_WIDTH

#define MAX_WIDTH   (1ul << 20)

Definition at line 579 of file tests_impl.h.

Function Documentation

◆ build_bulletproof_rangeproof_aggregate()

void build_bulletproof_rangeproof_aggregate ( size_t  nbits,
size_t  n_commits 
)

Definition at line 857 of file tests_impl.h.

Here is the call graph for this function:

◆ build_proof()

void build_proof ( const uint64_t *  value,
int  size,
unsigned char *  proof,
size_t *  plen,
secp256k1_pedersen_commitment pcommit 
)

Definition at line 123 of file tests_impl.h.

Here is the call graph for this function:

◆ run_bulletproofs_tests()

void run_bulletproofs_tests ( void  )

Definition at line 1137 of file tests_impl.h.

Here is the call graph for this function:

◆ test_bulletproof_circuit()

void test_bulletproof_circuit ( const secp256k1_bulletproof_generators gens)

Definition at line 947 of file tests_impl.h.

◆ test_bulletproof_inner_product()

void test_bulletproof_inner_product ( size_t  n,
const secp256k1_bulletproof_generators gens 
)

Definition at line 651 of file tests_impl.h.

◆ test_bulletproof_rangeproof()

void test_bulletproof_rangeproof ( size_t  nbits,
size_t  expected_size,
const secp256k1_bulletproof_generators gens 
)

Definition at line 783 of file tests_impl.h.

Here is the call graph for this function:

◆ test_bulletproof_rangeproof_aggregate()

void test_bulletproof_rangeproof_aggregate ( size_t  nbits,
size_t  n_commits,
size_t  expected_size,
const secp256k1_bulletproof_generators gens 
)

Definition at line 900 of file tests_impl.h.

Here is the call graph for this function:

◆ verify_proof()

void verify_proof ( unsigned char *  proof,
size_t  plen,
secp256k1_pedersen_commitment pcommit 
)

Definition at line 153 of file tests_impl.h.

Here is the call graph for this function: