pub async fn get_endpoint(secret_key: SecretKey) -> Result<Endpoint>Expand description
Creates an Iroh endpoint configured for fastn networking.
This function creates an Iroh endpoint with:
- Local network discovery enabled
- N0 discovery (DHT-based) enabled
- ALPN set to
/fastn/identity/0.1 - The provided secret key for identity
ยงErrors
Returns an error if the endpoint fails to bind to the network.