5#ifndef BITCOIN_UTIL_ASMAP_H
6#define BITCOIN_UTIL_ASMAP_H
16uint32_t
Interpret(std::span<const std::byte> asmap, std::span<const std::byte>
ip);
std::vector< std::byte > DecodeAsmap(fs::path path)
Read and check asmap from provided binary file.
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.
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.
bool SanityCheckAsmap(std::span< const std::byte > asmap, int bits)
Validates ASMap structure by simulating all possible execution paths.
static CService ip(uint32_t i)