proc sendChallenge(self: AutotlsBroker; peerInfo: PeerInfo;
addrs: seq[MultiAddress]; keyAuth: KeyAuthorization): InternalRaisesFuture[
void, (AutoTLSError, PeerIDAuthError, CancelledError)] {....stackTrace: false,
raises: [], gcsafe, raises: [], tags: [RootEffect], forbids: [].}
Authenticates with the AutoTLS broker and registers the ACME DNS-01 challenge for the given addresses. All request construction, the broker URL, bearer-token handling and response validation are kept internal: the caller only learns whether the challenge was accepted (no error) or not (an exception).
Source
Edit