fix(baseN): sizeEnc/Dec: zeros counting

This commit is contained in:
2024-09-19 07:54:46 +03:00
parent 817f6c4fb1
commit f49c0463d4
4 changed files with 31 additions and 7 deletions

View File

@ -41,7 +41,7 @@ namespace base58
}
uint64_t sizeDecoded(std::string_view str) noexcept
{
return baseN::sizeDecoded(str, 58);
return baseN::sizeDecoded(str, 58, digits);
}
void encode(const uint8_t *data, uint64_t data_size, char *str, uint64_t str_size) noexcept
{