2022-09-09 06:47:49 +00:00
|
|
|
#ifndef __DEBUGPRINT_H_
|
|
|
|
#define __DEBUGPRINT_H_
|
2024-07-06 14:48:18 +00:00
|
|
|
#include "blst/bindings/blst.h"
|
2022-09-09 06:47:49 +00:00
|
|
|
|
|
|
|
// Uncomment the line below to enable debug prints (including private keys!) - use for development only, this is insecure
|
|
|
|
#define INSECURE_CTM_DEBUG_PRINT
|
|
|
|
|
2022-11-24 06:49:46 +00:00
|
|
|
void print_bytes(const char* label, void *toprint, int length, char separator);
|
2022-09-09 08:48:16 +00:00
|
|
|
void debug_print_bytes(__attribute__((unused)) const char* label, __attribute__((unused)) void *toprint, __attribute__((unused)) int length);
|
2022-09-09 06:47:49 +00:00
|
|
|
void print_scalar(const char* label, blst_scalar *toprint);
|
|
|
|
void debug_print_scalar(__attribute__((unused)) const char* label, __attribute__((unused)) blst_scalar *toprint);
|
2022-11-24 06:49:46 +00:00
|
|
|
void print_base64(void *toprint, int input_len);
|
2022-09-09 06:47:49 +00:00
|
|
|
|
|
|
|
#endif
|