// Copyright (c) 2019-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_UTIL_ASMAP_H #define BITCOIN_UTIL_ASMAP_H #include #include #include #include #include #include uint32_t Interpret(std::span asmap, std::span ip); bool SanityCheckAsmap(std::span asmap, int bits); /** Check standard asmap data (128 bits for IPv6) */ bool CheckStandardAsmap(std::span data); /** Read and check asmap from provided binary file */ std::vector DecodeAsmap(fs::path path); /** Calculate the asmap version, a checksum identifying the asmap being used. */ uint256 AsmapVersion(std::span data); #endif // BITCOIN_UTIL_ASMAP_H