![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <crypto/common.h>#include <span.h>#include <util/strencodings.h>#include <util/string.h>#include <algorithm>#include <array>#include <cassert>#include <cstdint>#include <cstring>#include <optional>#include <string>#include <string_view>Go to the source code of this file.
Classes | |
| class | base_blob< BITS > |
| Template base class for fixed-sized opaque blobs. More... | |
| class | uint160 |
| 160-bit opaque blob. More... | |
| class | uint256 |
| 256-bit opaque blob. More... | |
Namespaces | |
| namespace | detail |
Functions | |
| template<class uintN_t > | |
| std::optional< uintN_t > | detail::FromHex (std::string_view str) |
| Writes the hex string (in reverse byte order) into a new uintN_t object and only returns a value iff all of the checks pass: | |
| template<class uintN_t > | |
| std::optional< uintN_t > | detail::FromUserHex (std::string_view input) |
| Like FromHex(std::string_view str), but allows an "0x" prefix and pads the input with leading zeroes if it is shorter than the expected length of uintN_t::size()*2. | |