Skip to main content

ssh_pubkey_ed25519_bytes

Function ssh_pubkey_ed25519_bytes 

Source
pub fn ssh_pubkey_ed25519_bytes(pub_key: &PublicKey) -> Result<[u8; 32]>
Expand description

Extract the raw 32-byte ed25519 public key from a parsed SSH public key. Returns MeshError::InvalidKey for non-ed25519 keys.