From dfa65790760dcdd9e9af216a2e9e27dedb79a31f Mon Sep 17 00:00:00 2001 From: rcxpony Date: Sun, 2 Mar 2025 17:47:08 +0500 Subject: [PATCH] moved --- sources/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sources/main.cpp b/sources/main.cpp index 7da1d13..9618747 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -49,11 +49,6 @@ void displayConfig() { std::cout << " Threads: " << conf.proc << ", " << "high addresses (2" << std::setw(2) << std::setfill('0') << std::hex << conf.high << "+)" << std::dec << std::endl; } using Address = unsigned char[16]; -using Key = unsigned char[32]; -struct KeysBox { - Key PublicKey; - Key PrivateKey; -}; std::string getAddress(const Address& rawAddr) { char ipStrBuf[46]; inet_ntop(AF_INET6, rawAddr, ipStrBuf, 46); @@ -69,6 +64,11 @@ inline std::string keyToString(const unsigned char* key) { } return result; } +using Key = unsigned char[32]; +struct KeysBox { + Key PublicKey; + Key PrivateKey; +}; inline void bitwiseInverse(const unsigned char* key, Key& inverted) noexcept { __m256i chunk = _mm256_loadu_si256(reinterpret_cast(key)); chunk = _mm256_xor_si256(chunk, _mm256_set1_epi8(0xFF));