// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CRYPTO_HEX_BASE_H #define BITCOIN_CRYPTO_HEX_BASE_H #include #include #include #include /** * Convert a span of bytes to a lower-case hexadecimal string. */ std::string HexStr(const Span s); inline std::string HexStr(const Span s) { return HexStr(MakeUCharSpan(s)); } inline std::string HexStr(const Span s) { return HexStr(MakeUCharSpan(s)); } signed char HexDigit(char c); #endif // BITCOIN_CRYPTO_HEX_BASE_H