| 24 | namespace util { |
| 25 | |
| 26 | std::string FormatHex128(const AccountUid user_id) { |
| 27 | auto ptr = reinterpret_cast<const u8*>(user_id.uid); |
| 28 | std::stringstream strm; |
| 29 | strm << std::hex << std::uppercase; |
| 30 | for(u32 i = 0; i < sizeof(AccountUid); i++) { |
| 31 | strm << static_cast<u32>(ptr[i]); |
| 32 | } |
| 33 | return strm.str(); |
| 34 | } |
| 35 | |
| 36 | std::string FormatResult(const Result rc) { |
| 37 | char res_err[0x20] = {}; |