MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / byte_span_to_hex_string_reversed

Function byte_span_to_hex_string_reversed

src/test/kernel/test_kernel.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65std::string byte_span_to_hex_string_reversed(std::span<const std::byte> bytes)
66{
67 std::ostringstream oss;
68
69 // Iterate in reverse order
70 for (auto it = bytes.rbegin(); it != bytes.rend(); ++it) {
71 oss << std::hex << std::setw(2) << std::setfill('0')
72 << static_cast<unsigned int>(static_cast<uint8_t>(*it));
73 }
74
75 return oss.str();
76}
77
78constexpr auto VERIFY_ALL_PRE_SEGWIT{ScriptVerificationFlags::P2SH | ScriptVerificationFlags::DERSIG |
79 ScriptVerificationFlags::NULLDUMMY | ScriptVerificationFlags::CHECKLOCKTIMEVERIFY |

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 3

rbeginMethod · 0.80
rendMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected