Functions | |
| bool | isValid (const char *str, size_t str_size) noexcept |
| bool | isValid (std::string_view str) noexcept |
| size_t | sizeEncoded (std::span< const uint8_t > data) |
| 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) |
| std::string | encode (std::span< const uint8_t > data) |
| size_t | decode (const char *str, size_t str_size, uint8_t *data, size_t data_size) |
| std::vector< uint8_t > | decode (std::string_view str) |
| std::string | encodeCheck (std::span< const uint8_t > data) |
| std::vector< uint8_t > | decodeCheck (std::string_view str) |
Variables | |
| const char | digits [59] |
| bitcoin alphabet | |
| const uint8_t | map [256] |
|
noexcept |
|
noexcept |
| str | string or string_view which you want to decode |
| size_t base58::sizeEncoded | ( | std::span< const uint8_t > | data | ) |
| data | vector or span of data which you want to encode |
| basen::Exception(OVERFLOW) | from baseN::sizeEncoded |
|
noexcept |
| str | string or string_view which you want to decode |
| size_t base58::encode | ( | const uint8_t * | data, |
| size_t | data_size, | ||
| char * | str, | ||
| size_t | str_size ) |
| data | [in] pointer to data which you want encode |
| str | [out] pointer to string for encoded data output |
| basen::Exception(OVERFLOW) | from base58::sizeEncoded |
| std::string base58::encode | ( | std::span< const uint8_t > | data | ) |
| data | vector or span of data which you want to encode |
| basen::Exception(OVERFLOW) | from base58::sizeEncoded |
| size_t base58::decode | ( | const char * | str, |
| size_t | str_size, | ||
| uint8_t * | data, | ||
| size_t | data_size ) |
| str | [in] pointer to string which you want decode |
| data | [out] pointer to data for encoded string output |
| basen::Exception(OUT_OF_ALPH) | from baseN::decode |
| std::vector< uint8_t > base58::decode | ( | std::string_view | str | ) |
| str | string or string_view which you want to decode |
| basen::Exception(OUT_OF_ALPH) | from baseN::decode |
| std::string base58::encodeCheck | ( | std::span< const uint8_t > | data | ) |
| data | vector or span of data which you want to encode |
| basen::Exception(OVERFLOW) | from base58::encode |
| std::vector< uint8_t > base58::decodeCheck | ( | std::string_view | str | ) |
| str | encoded string or string_view + 4 first bytes of double sha256 |
| basen::Exception(OUT_OF_ALPH) | from base58::decode |
| basen::Exception(PADDING) | if str size < 4 |
| basen::Exception(CHECKSUM) | if checksum incorrect |
|
extern |
bitcoin alphabet
|
extern |