l0rinc
5b74a849cf
util: Add consteval ""_hex[_v][_u8] literals
""_hex is a compile-time user-defined literal returning std::array<std::byte>, equivalent of ParseHex.
Variants:
- ""_hex_v returns std::vector<std::byte>
- ""_hex_u8 returns std::array<uint8_t>
- ""_hex_v_u8 returns std::vector<uint8_t> - Directly serializable as a size-prefixed OP_PUSH CScript payload using operator<<.
Also extracts from_hex into shared util::ConstevalHexDigit function.
Co-Authored-By: hodlinator <172445034+hodlinator@users.noreply.github.com>
Co-Authored-By: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
Co-Authored-By: Ryan Ofsky <ryan@ofsky.org>
Co-Authored-By: stickies-v <stickies-v@protonmail.com>
2024-08-28 19:09:51 +02:00
..
2024-02-26 16:13:12 +00:00
2024-04-28 07:11:24 +01:00
2024-06-10 07:54:48 -04:00
2024-07-01 12:39:53 -04:00
2024-08-06 01:38:10 +02:00
2024-08-06 01:38:10 +02:00
2024-05-01 08:33:04 +02:00
2024-08-16 19:27:38 +01:00
2024-04-22 09:36:36 -04:00
2024-04-22 09:36:36 -04:00
2024-06-27 14:55:10 +01:00
2024-06-27 14:55:10 +01:00
2024-07-01 12:39:53 -04:00
2024-05-16 10:16:08 -05:00
2024-01-05 11:22:31 +01:00
2024-04-25 16:08:24 -04:00
2024-08-23 13:53:40 +01:00
2024-08-28 19:09:51 +02:00
2024-05-16 10:16:08 -05:00
2024-07-19 15:09:00 +02:00
2024-07-08 11:12:01 +02:00
2024-05-01 08:33:04 +02:00
2024-07-08 11:12:01 +02:00
2024-05-21 10:29:51 +01:00
2024-05-16 18:16:46 +02:00
2024-04-15 13:34:31 +02:00
2024-03-18 16:01:08 +01:00
2024-05-01 08:33:04 +02:00
2024-05-01 08:33:04 +02:00
2024-07-31 16:47:39 +01:00
2024-07-10 09:40:47 +02:00
2024-01-05 11:22:31 +01:00
2024-06-11 16:28:11 +00:00