pub async fn download_key_certificates(
v3idents: Option<&[&str]>,
endpoints: Option<&[DirPort]>,
request_timeout: Option<Duration>,
) -> Result<DownloadResult, Error>Expand description
Downloads authority key certificates.
Key certificates bind directory authority identity keys to their signing keys. They are needed to verify consensus signatures.
§Arguments
v3idents- Optional list of v3 authority identities to fetch. IfNone, downloads all key certificates.endpoints- Optional list of endpoints to try.request_timeout- Optional timeout for each download attempt.
§Returns
A DownloadResult containing the key certificates.
§Errors
Returns Error::Download if all endpoints fail.
§See Also
super::key_cert::KeyCertificatefor parsing the downloaded certificates