5#ifndef BITCOIN_KERNEL_SIGNET_H
6#define BITCOIN_KERNEL_SIGNET_H
21 "512103ad5e0edad18cb1f0fc0d28a3d4f1f3e445640337489abb10404f2d1e086be430210359ef5021964fe22d6f8e05b2463c9540ce96883fe3b278760f048f5189f2e6c452ae"_hex_v_u8};
30 h << signet_challenge;
31 const uint256 hash = h.GetHash();
33 std::copy_n(hash.
begin(), 4, msg_start.begin());
A writer stream (for serialization) that computes a 256-bit hash.
constexpr unsigned char * begin()
std::array< uint8_t, 4 > MessageStartChars
MessageStartChars GetSignetMessageStart(const std::vector< uint8_t > &signet_challenge)
Return the message start bytes for a signet: the first four bytes of the double-SHA256 hash of the se...
const std::vector< uint8_t > SIGNET_DEFAULT_CHALLENGE
""_hex is a compile-time user-defined literal returning a std::array<std::byte>, equivalent to ParseH...