Skip to main content

convert_expanded_ed25519_pk

Function convert_expanded_ed25519_pk 

Source
fn convert_expanded_ed25519_pk(_key: &OpaquePublicKey) -> Result<PublicKey>
Expand description

Try to convert an OpaquePublicKey to an ed25519::PublicKey.

This function always returns an error because the custom ed25519-expanded@spec.torproject.org SSH algorithm should not be used for ed25519 public keys (only for expanded ed25519 key pairs). This function is needed for the ssh_to_internal_erased! macro.