Skip to main content

fetch_keys

Function fetch_keys 

Source
pub fn fetch_keys(
    username: &str,
) -> Result<Vec<(MurkRecipient, String)>, GitHubError>
Expand description

Fetch all SSH public keys for a GitHub user.

Hits https://github.com/{username}.keys (no auth needed) and parses each line as an SSH public key. Returns all valid keys as recipients paired with the key type string (e.g., “ssh-ed25519”).

Filters to supported types only (ed25519 and rsa). Unsupported key types (ecdsa, sk-ssh-*) are silently skipped.