This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "keccak-tiny.h" | |
#include "secp256k1.h" | |
#include "secp256k1_recovery.h" | |
std::string bytes_to_hex_string(const uint8_t *str, const uint64_t s) | |
{ | |
std::ostringstream ret; | |
for (size_t i = 0; i < s; ++i) | |
ret << std::hex << std::setfill('0') << std::setw(2) << std::nouppercase << (int) str[i]; |