5 #ifndef BITCOIN_UTIL_ASMAP_H 6 #define BITCOIN_UTIL_ASMAP_H 16 uint32_t
Interpret(std::span<const std::byte> asmap, std::span<const std::byte>
ip);
27 #endif // BITCOIN_UTIL_ASMAP_H bool SanityCheckAsmap(std::span< const std::byte > asmap, int bits)
Validates ASMap structure by simulating all possible execution paths.
bool CheckStandardAsmap(std::span< const std::byte > data)
Check standard asmap data (128 bits for IPv6)
uint256 AsmapVersion(std::span< const std::byte > data)
Calculate the asmap version, a checksum identifying the asmap being used.
std::vector< std::byte > DecodeAsmap(fs::path path)
Read and check asmap from provided binary file.
static CService ip(uint32_t i)
uint32_t Interpret(std::span< const std::byte > asmap, std::span< const std::byte > ip)
Execute the ASMap bytecode to find the ASN for an IP.
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...