13 extern const char digits[59];
14 extern const uint8_t
map[256];
16 bool isValid(
const char *str,
size_t str_size)
noexcept;
17 bool isValid(std::string_view str)
noexcept;
29 size_t encode(
const uint8_t *data,
size_t data_size,
char *str,
size_t str_size);
30 std::string
encode(std::span<const uint8_t> data);
36 size_t decode(
const char *str,
size_t str_size, uint8_t *data,
size_t data_size);
37 std::vector<uint8_t>
decode(std::string_view str);
std::vector< uint8_t > decodeCheck(std::string_view str)
std::string encodeCheck(std::span< const uint8_t > data)
size_t decode(const char *str, size_t str_size, uint8_t *data, size_t data_size)
bool isValid(const char *str, size_t str_size) noexcept
const char digits[59]
bitcoin alphabet
size_t sizeDecoded(std::string_view str) noexcept
size_t encode(const uint8_t *data, size_t data_size, char *str, size_t str_size)
size_t sizeEncoded(std::span< const uint8_t > data)