module

Hop::Discovery

Discovery: bind a name to a Hop address using the domain's TLS cert (WebPKI) plus a self-certifying reachability record served at /.well-known/hop. See docs/endpoint-sdk.md.

Constants

WELL_KNOWN_PATH = "/.well-known/hop"

Class methods

resolve(base_url : String, insecure_tls : Bool = false)

Fetch + verify base_url's well-known. Returns {address, address_bytes, wss_url}. Raises on a missing/malformed/unverified record.

Source
well_known_body(endpoint : Endpoint, public_url : String, ttl_secs : UInt32 = 3600_u32) : String
Source