plebble
base58.cpp File Reference
#include "base58.h"
#include <assert.h>
#include <iostream>
#include <iomanip>
#include <stdint.h>
#include <string.h>
#include <vector>
#include <string>
#include <us/gov/likely.h>
#include <us/gov/gov.h>
Include dependency graph for base58.cpp:

Namespaces

 us
 
 us::gov
 
 us::gov::crypto
 
 us::gov::crypto::b58
 

Macros

#define loglevel   "crypto"
 
#define logclass   "base58"
 

Functions

std::string us::gov::crypto::b58::decode_string (const std::string &s)
 
std::vector< unsigned char > us::gov::crypto::b58::decode (const std::string &s)
 
std::string us::gov::crypto::b58::encode (const std::string &s)
 
constexpr bool us::gov::crypto::b58::is_space (char c) noexcept
 
bool us::gov::crypto::b58::decode (const char *psz, std::vector< unsigned char > &vch)
 
bool us::gov::crypto::b58::decode (const char *psz, std::array< unsigned char, 32 > &vch)
 
std::string us::gov::crypto::b58::encode (const unsigned char *pbegin, const unsigned char *pend)
 
std::string us::gov::crypto::b58::encode (const std::vector< unsigned char > &vch)
 
bool us::gov::crypto::b58::decode (const std::string &str, std::vector< unsigned char > &vchRet)
 

Variables

static const char * us::gov::crypto::b58::pszBase58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
 
static const int8_t us::gov::crypto::b58::mapBase58 [256]
 

Macro Definition Documentation

◆ logclass

#define logclass   "base58"

◆ loglevel

#define loglevel   "crypto"