Skip to content

discv5::EnrTreeResolver

Resolve EIP-1459 DNS discovery trees into ENR URI seed records.

#include <enr_tree.hpp>

Public Functions

Name
EnrTreeResolver(DnsTxtLookupFn lookup ={})
std::vector< std::string > resolve(const std::vector< std::string > & urls, size_t max_records =128U) const
bool is_enr_tree_url(const std::string & value)
bool parse_url(const std::string & value, EnrTreeUrl & out)
std::vector< std::string > system_txt_lookup(const std::string & name)

Public Functions Documentation

function EnrTreeResolver

explicit EnrTreeResolver(
    DnsTxtLookupFn lookup ={}
)

function resolve

std::vector< std::string > resolve(
    const std::vector< std::string > & urls,
    size_t max_records =128U
) const

function is_enr_tree_url

static bool is_enr_tree_url(
    const std::string & value
)

function parse_url

static bool parse_url(
    const std::string & value,
    EnrTreeUrl & out
)

function system_txt_lookup

static std::vector< std::string > system_txt_lookup(
    const std::string & name
)

Updated on 2026-06-05 at 17:22:18 -0700