crypto.ssh_parse_privkey

crypto

ssh_parse_privkey(pem) -> seed, pubkey

Parse an OpenSSH Ed25519 private key from PEM content

Parses an unencrypted OpenSSH Ed25519 private key (PEM format with -----BEGIN OPENSSH PRIVATE KEY----- armor). Returns the 32-byte seed and 32-byte public key, or nil and an error message.