| 63 | } |
| 64 | |
| 65 | std::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 | |
| 78 | constexpr auto VERIFY_ALL_PRE_SEGWIT{ScriptVerificationFlags::P2SH | ScriptVerificationFlags::DERSIG | |
| 79 | ScriptVerificationFlags::NULLDUMMY | ScriptVerificationFlags::CHECKLOCKTIMEVERIFY | |
no test coverage detected