This commit is contained in:
rcxpony 2025-03-10 21:24:29 +05:00
parent 18a2371883
commit 4c8e35e0f8

View File

@ -59,7 +59,7 @@ inline std::string getAddress(const Address& rawAddr) noexcept {
inline std::string KeyToString(const unsigned char* key) noexcept {
char result[65];
const char* hexDigits = "0123456789abcdef";
for (size_t i = 0; i < 32; ++i) {
for (unsigned char i = 0; i < 32; i++) {
result[2 * i] = hexDigits[key[i] >> 4];
result[2 * i + 1] = hexDigits[key[i] & 0x0F];
}