Skip to main content

parse_ed25519_key

Function parse_ed25519_key 

Source
pub fn parse_ed25519_key(pem: &str) -> Result<([u8; 32], [u8; 32]), Error>
Expand description

The raw 32-byte seed and public key of a PKCS#8 PEM Ed25519 key.

ยงErrors

Returns an error if the PEM is not a PKCS#8 Ed25519 private key.